<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.pyobjc.devel">
    <title>gmane.comp.python.pyobjc.devel</title>
    <link>http://blog.gmane.org/gmane.comp.python.pyobjc.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984">
    <title>Question on Bridging/Integration</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984</link>
    <description>&lt;pre&gt;Hi there,

I'm new the whole PyObjC thing and have a simple document-bases app for which my goal is to all the user (personal project, so actually just me :P) to provide his/her (my) own filtering logic on a per-document basis.

I basically have an NSSet of objects which need to be filtered based on a user-provided logic.
As the logic should not be limited to rather primitive NSPredicates I'd like to provide a barebones in-app Python editor in which the user can define his/her logic.

There is however still one question that remained unanswered:
Being able to instantiate an Objective-C object from Python is neat, but still isolated. How do I expose a particular object instance from one language to the other?
After all I need to pass my Objective-C object to Python for evaluation and receive an answer from it in respose. 

A minimal sample function (as provided by the user at runtime) would look something like this:

def shallRejectObject(object)
if object.foo():
return True
return False

Being totally new to PyObjC I'm thinking of some kind of reverse "objc.lookUpClass(…)" to allow me to instantiate my Python subclass from within Objective-C. Or how else would one approach this?

Any hints?

Thanks in advance,
Vincent
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
&lt;/pre&gt;</description>
    <dc:creator>Vincent</dc:creator>
    <dc:date>2012-05-20T20:12:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979">
    <title>Is there an Xcode Cocoa sample that calls Python?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979</link>
    <description>&lt;pre&gt;Hi PyObjC People,


I'm interested in calling Python routines from within a Cocoa/ObjC program.

Is there a sample Xcode project that does this?

I did see Bill Bumgarner's "Calling Python from Objective-C" example and it's helpful. But I'm hoping for a Cocoa sample in an Xcode context to work from if one is available.

I realize that this isn't purely a PyObjC question but I thought this list would be a good place to ask it on.

Sincerely,
Joel
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Joel Norvell</dc:creator>
    <dc:date>2012-04-10T07:43:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974">
    <title>Garbage collection in Python/Pyobjc</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974</link>
    <description>&lt;pre&gt;I'm working on a script to convert each page of a large directory of pdfs to jpgs, using a version of this script:
http://files.macscripter.net/joy/files/pdflib.py

I am walking through a directory in Python, and calling the below function on each file. It seems that there is no garbage collection being performed on any of the objects being created below, and my searches through the docs don't seem to show an explicit way of performing garbage collection on these rather large objects. How to ensure that the below code, if called thousands of times within a Python loop isn't going to consume the entire system's memory?


def pdf2jpgs(pdfpath, pages_dir, resolution=72):
    """I am converting all pages of a PDF file to JPG images."""
    
    pdfdata = NSData.dataWithContentsOfFile_(pdfpath)
    pdfrep = NSPDFImageRep.imageRepWithData_(pdfdata)
    pagecount = pdfrep.pageCount()
    for i in range(0, pagecount):
        pdfrep.setCurrentPage_(i)
        pdfimage = NSImage.alloc().init()
        pdfimage.addRepresentation_(pdfrep)
        origsize = pdfimage.size()
        width, height = origsize
        pdfimage.setScalesWhenResized_(YES)
        rf = resolution / 72.0
        pdfimage.setSize_((width*rf, height*rf))
        
        tiffimg = pdfimage.TIFFRepresentation()
        bmpimg = NSBitmapImageRep.imageRepWithData_(tiffimg)
        data = bmpimg.representationUsingType_properties_(NSJPEGFileType, {NSImageCompressionFactor: 1.0})
        pagenum = i + 1
        jpgpath = "%s/pg%d.jpg" % (pages_dir, pagenum)
        if not os.path.exists(jpgpath):
            data.writeToFile_atomically_(jpgpath, False)
    return ''
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
&lt;/pre&gt;</description>
    <dc:creator>Peter Bernheim</dc:creator>
    <dc:date>2012-01-02T20:14:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969">
    <title>Getting a better stack trace with PyObjc possible?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969</link>
    <description>&lt;pre&gt;hi,

I looked around the web and more specific stack overflow: I was hoping if
there is something I can do to have a better stack trace from pyobjc/python.

For example my end users send me this, after a hard crash.

0 libobjc.A.dylib 0x99b51c22 (anonymous
namespace)::AutoreleasePoolPage::pop(void*) + 350
1 com.apple.CoreFoundation 0x97b2c515 _CFAutoreleasePoolPop + 53
2 com.apple.Foundation 0x96316b87 -[NSAutoreleasePool release] + 131
3 com.apple.CoreFoundation 0x97b01749 CFRelease + 169
4 _objc.so 0x04019c21 object_dealloc + 257
5 org.python.python 0x01c6e2cf subtype_dealloc + 575
6 org.python.python 0x01c3a041 frame_dealloc + 385
7 org.python.python 0x01ced87c tb_dealloc + 156
8 org.python.python 0x01ced88c tb_dealloc + 172
9 org.python.python 0x01c52179 PyDict_DelItem + 249
10 org.python.python 0x01c52251 PyDict_DelItemString + 49
11 org.python.python 0x01cb940a PyEval_EvalFrameEx + 4810
12 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862
13 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862
14 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862
15 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862
16 org.python.python 0x01cbee9d PyEval_EvalCodeEx + 2109
17 org.python.python 0x01c3ba36 function_call + 166
18 org.python.python 0x01c0a315 PyObject_Call + 85
19 org.python.python 0x01c1c8e6 instancemethod_call + 422
20 org.python.python 0x01c0a315 PyObject_Call + 85
21 org.python.python 0x01cb717e PyEval_CallObjectWithKeywords + 78
22 org.python.python 0x01cf89d6 t_bootstrap + 70
23 libsystem_c.dylib 0x957c2ed9 _pthread_start + 335
24 libsystem_c.dylib 0x957c66de thread_start + 34


Would be nice to know which method and object was called at

PyEval_EvalFrameEx + 21862

for example.

Marc
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Marc Van Olmen</dc:creator>
    <dc:date>2011-12-27T21:08:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965">
    <title>PyObjC and multiprocessing module</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965</link>
    <description>&lt;pre&gt;I found a bunch of hits for this on Google, but no answers:

I am working on a Python application that uses the multiprocessing library.
 I am trying to spawn a process and perform text-to-speech with pyttsx, but
I get the
dreaded  __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
 error.

Is there any way to get this working, short of switching back to threads?
 I see that the 'correct' way is to fork() and exec(), but I don't see any
way to make that compatible with the multiprocessing module's API.

Thanks,

-Trevor
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Trevor Bentley</dc:creator>
    <dc:date>2011-12-07T22:54:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960">
    <title>Lion and pyobjc 2.2b3 Decimal compares with NSDecimalNumber compare goes in endless recursive call..</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960</link>
    <description>&lt;pre&gt;hi,

for our project we haven't upgraded to latest version of pyobjc I just
notice we run with 2.2b3 but we have the following bug on Lion Only:

When bindings try to compare a decimal number that originally came from
Python code. It goes in endless recursive calls...

.... (this last few lines are repeated over and over again...

#3515 0x02edf84d in _ffi_call_SYSV at x86-darwin.S:74
#3516 0x02edfc01 in ffi_call
#3517 0x02ef8d79 in PyObjCFFI_Caller
#3518 0x02f1ddbd in objcsel_call
#3519 0x0289f315 in PyObject_Call
#3520 0x02950677 in PyEval_EvalFrameEx
#3521 0x02953e9d in PyEval_EvalCodeEx
#3522 0x028d0a36 in function_call
#3523 0x0289f315 in PyObject_Call
#3524 0x028b18e6 in instancemethod_call
#3525 0x0289f315 in PyObject_Call
#3526 0x0290706b in half_richcompare
#3527 0x0290714b in slot_tp_richcompare
#3528 0x028e8dd7 in try_rich_compare
#3529 0x028eb60e in PyObject_Compare
#3530 0x02f11f14 in -[OC_PythonNumber compare:]
#3531 0x94ea8f68 in -[NSDecimalNumber compare:]
#3532 0x94f0dc7c in -[NSDecimalNumber isEqual:]
#3533 0x02edf84d in _ffi_call_SYSV at x86-darwin.S:74
#3534 0x02edfc01 in ffi_call
#3535 0x02ef8d79 in PyObjCFFI_Caller
#3536 0x02f1ddbd in objcsel_call
#3537 0x0289f315 in PyObject_Call
#3538 0x02950677 in PyEval_EvalFrameEx
#3539 0x02953e9d in PyEval_EvalCodeEx
#3540 0x028d0a36 in function_call
#3541 0x0289f315 in PyObject_Call
#3542 0x028b18e6 in instancemethod_call
#3543 0x0289f315 in PyObject_Call
#3544 0x0290706b in half_richcompare
#3545 0x0290714b in slot_tp_richcompare
#3546 0x028e8dd7 in try_rich_compare
#3547 0x028eb60e in PyObject_Compare
#3548 0x02f11f14 in -[OC_PythonNumber compare:]
#3549 0x94ea8f68 in -[NSDecimalNumber compare:]
#3550 0x94f0dc7c in -[NSDecimalNumber isEqual:]
#3551 0x02edf84d in _ffi_call_SYSV at x86-darwin.S:74
#3552 0x02edfc01 in ffi_call
#3553 0x02ef8d79 in PyObjCFFI_Caller
#3554 0x02f1ddbd in objcsel_call
#3555 0x0289f315 in PyObject_Call
#3556 0x02950677 in PyEval_EvalFrameEx
#3557 0x02953e9d in PyEval_EvalCodeEx
#3558 0x028d0a36 in function_call
#3559 0x0289f315 in PyObject_Call
#3560 0x028b18e6 in instancemethod_call
#3561 0x0289f315 in PyObject_Call
#3562 0x0290706b in half_richcompare
#3563 0x0290714b in slot_tp_richcompare
#3564 0x028e8dd7 in try_rich_compare
#3565 0x028eb60e in PyObject_Compare
#3566 0x02f11f14 in -[OC_PythonNumber compare:]
#3567 0x94ea8f68 in -[NSDecimalNumber compare:]
#3568 0x94f0dc7c in -[NSDecimalNumber isEqual:]
#3569 0x02edf84d in _ffi_call_SYSV at x86-darwin.S:74
#3570 0x02edfc01 in ffi_call
#3571 0x02ef8d79 in PyObjCFFI_Caller
#3572 0x02f1ddbd in objcsel_call
#3573 0x0289f315 in PyObject_Call
#3574 0x02950677 in PyEval_EvalFrameEx
#3575 0x02953e9d in PyEval_EvalCodeEx
#3576 0x028d0a36 in function_call
#3577 0x0289f315 in PyObject_Call
#3578 0x028b18e6 in instancemethod_call
#3579 0x0289f315 in PyObject_Call
#3580 0x0290706b in half_richcompare
#3581 0x0290714b in slot_tp_richcompare
#3582 0x028e8dd7 in try_rich_compare
#3583 0x028eb60e in PyObject_Compare
#3584 0x02f11f14 in -[OC_PythonNumber compare:]
#3585 0x94ea8f68 in -[NSDecimalNumber compare:]
#3586 0x94f0dc7c in -[NSDecimalNumber isEqual:]
#3587 0x98cc98cd in _NSValuesAreEqual
#3588 0x993a6ccb in -[NSValueBinder _validateDisplayValue]
#3589 0x993a5471 in -[NSValueBinder
validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:]
#3590 0x993ea198 in -[_NSBindingAdaptor
_validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:bindingAdaptor:]
#3591 0x993ea2bf in -[_NSBindingAdaptor
validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:]
#3592 0x992f343e in -[NSTextField textShouldEndEditing:]

Was this bug addressed already in subsequently releases?

Thanks

Marc Van Olmen
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Marc Van Olmen</dc:creator>
    <dc:date>2011-11-22T17:37:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956">
    <title>strange problem using NSWorkspace/NSTask to startPyObjC apps</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956</link>
    <description>&lt;pre&gt;Hey all,

I'm running into a strange problem with PyObjC-based apps.

The situation: I'm working on a .mailbundle (a plug-in for Apple Mail). From that plug-in, I want to start a PyObjC-based application. No matter what, this fails: the application gets a SIGSEGV (I'll post some more information below).

I've used pretty much all methods of starting the application (NSWorkspace, NSTask, even executing "open -a APP" from the Python subprocess module), and it keeps failing. Of course, the app works without problems when started manually. Starting the app from a Python-shell using [NSWorkspace launchApplication:] works, too. Just not from within the plug-in.

Even the simplest 'app' fails:
-snip-
from Foundation import *

class MyTestClass(NSObject): pass
-snip-

Same thing: SIGSEGV.

Starting other apps (like Safari) isn't a problem, so it doesn't seem to be some sandbox-type blocking.

Below is the relevant part of the crashlog. All I've been able to find out is that objc_msgSend_vtable3 is an Objective-C runtime shortcut for getting 'self'. It smells like a memory issue, but I'd be grateful if anyone could help me out.

-snip-
Process:         App1 [797]
Path:            /Users/USER/*/App1.app/Contents/MacOS/App1
Identifier:      name.klep.app1
Version:         0.0.0 (0.0.0)
Code Type:       X86-64 (Native)
Parent Process:  launchd [301]

Date/Time:       2011-11-21 06:49:06.394 +0100
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00007fc2dac50c60

VM Regions Near 0x7fc2dac50c60:
    MALLOC_TINY            0000000104e00000-0000000104f00000 [ 1024K] rw-/rwx SM=PRV  
--&amp;gt; 
    STACK GUARD            00007fff5bc00000-00007fff5f400000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0

Application Specific Information:
objc_msgSend() selector name: self
objc[797]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff8c84c0cd objc_msgSend_vtable3 + 13
1   _objc.so                        0x0000000101ba5a71 pythonify_c_value + 573
2   _objc.so                        0x0000000101b9d92e 0x101b80000 + 121134
3   org.python.python               0x0000000101a87b58 PyEval_EvalFrameEx + 13318
4   org.python.python               0x0000000101a8acd8 PyEval_EvalCodeEx + 1996
5   org.python.python               0x0000000101a8ae6c PyEval_EvalCode + 341
6   org.python.python               0x0000000101a87e0a PyEval_EvalFrameEx + 14008
7   org.python.python               0x0000000101a8acd8 PyEval_EvalCodeEx + 1996
8   org.python.python               0x0000000101a28abf PyClassMethod_New + 1378
9   org.python.python               0x0000000101a07d32 PyObject_Call + 97
10  org.python.python               0x0000000101a83c40 PyEval_CallObjectWithKeywords + 180
11  _objc.so                        0x0000000101ba0bd3 0x101b80000 + 134099
12  org.python.python               0x0000000101a4cafa PyType_Modified + 891
13  org.python.python               0x0000000101a07d32 PyObject_Call + 97
14  org.python.python               0x0000000101a07eed PyObject_CallFunctionObjArgs + 178
15  org.python.python               0x0000000101a8576b PyEval_EvalFrameEx + 4121
16  org.python.python               0x0000000101a8acd8 PyEval_EvalCodeEx + 1996
17  org.python.python               0x0000000101a8ad4d PyEval_EvalCode + 54
18  org.python.python               0x0000000101aa208f Py_CompileString + 62
19  org.python.python               0x0000000101aa214f PyRun_FileExFlags + 157
20  org.python.python               0x0000000101a801f6 _PyBuiltin_Init + 4630
21  org.python.python               0x0000000101a87d77 PyEval_EvalFrameEx + 13861
22  org.python.python               0x0000000101a8acd8 PyEval_EvalCodeEx + 1996
23  org.python.python               0x0000000101a8ae6c PyEval_EvalCode + 341
24  org.python.python               0x0000000101a87e0a PyEval_EvalFrameEx + 14008
25  org.python.python               0x0000000101a8acd8 PyEval_EvalCodeEx + 1996
26  org.python.python               0x0000000101a8ad4d PyEval_EvalCode + 54
27  org.python.python               0x0000000101aa208f Py_CompileString + 62
28  org.python.python               0x0000000101aa214f PyRun_FileExFlags + 157
29  org.python.python               0x0000000101aa32a2 PyRun_SimpleFileExFlags + 392
30  name.klep.app1                  0x0000000100004476 start + 12854
31  name.klep.app1                  0x0000000100004a96 main + 1465
32  name.klep.app1                  0x0000000100001274 start + 52
-snip-

&lt;/pre&gt;</description>
    <dc:creator>Robert Klep</dc:creator>
    <dc:date>2011-11-21T06:08:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955">
    <title>What version of Xcode for lion?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955</link>
    <description>&lt;pre&gt;Hi,

I just installed and Lion in Snow Leopard xoode pyobjc runs in 4.1,which
version should install Xcode?

Thanks

&lt;/pre&gt;</description>
    <dc:creator>Jair Gaxiola</dc:creator>
    <dc:date>2011-11-12T00:57:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954">
    <title>QuickLook.framework</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954</link>
    <description>&lt;pre&gt;Are there going to be any bindings implemented for this framework?

Thanks
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Lee Treveil</dc:creator>
    <dc:date>2011-11-11T00:52:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952">
    <title>PyObjC on Lion</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952</link>
    <description>&lt;pre&gt;Hi,

Short version: Does there exsit a working version of PyObcC and AddressBook
for Lion?

Long version: ...

I have been using the AddressBook 2.3 wrapper with Python 2.6.6, PyObjC v2.3
(all built using MacPorts) on OS X 10.6 Snow Leopard. After upgrading to OS
X 10.7.1 Lion, although most of AddressBook seems to continue working, it no
longer reads the postal address fields.

So, I tried reinstalling a fresh version (using MacPorts): Python
2.7.2, PyObjC v2.3 and AddressBook 2.3

I have tried Ronald Oussoren's latest work on bitbucket, but I haven't been
able to figure out how to install it.

Thanks so much for any help.

Gordon
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Gordon Watson</dc:creator>
    <dc:date>2011-08-28T15:31:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950">
    <title>selector in pyobjc</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950</link>
    <description>&lt;pre&gt;Hello,

Try to translate the following code to PyObjC
(https://github.com/shpakovski/Popup/blob/master/Popup/MenubarController.m),
but I have a question about how to translate the line number 20 of the
selector

_statusItemView.action = &amp;lt; at &amp;gt; selector (togglePanel:);

Does not work with

statusItemView.action (selector (togglePanel))

Thanks

&lt;/pre&gt;</description>
    <dc:creator>Jair Gaxiola</dc:creator>
    <dc:date>2011-08-10T06:56:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949">
    <title>[ pyobjc-Bugs-3387767 ] NSLog raises exception onnon-ascii text</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949</link>
    <description>&lt;pre&gt;Bugs item #3387767, was opened at 2011-08-07 14:28
Message generated for change (Tracker Item Submitted) made by eaganjr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3387767&amp;amp;group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James Eagan (eaganjr)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSLog raises exception on non-ascii text

Initial Comment:
It looks like the fix for bug ID 3085651 broke support for non-ascii (e.g., UTF8) strings for NSLog.


[Using the standard system Python in 10.7.0]

Frog:~ $ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
2011-08-07 13:22:46.578 Python[9268:1507] Foo
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)


For reference, here’s the same thing using the standard system Python in 10.6.7:

Jagaroth:~ $ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
2011-08-07 13:24:14.206 Python[44733:b07] Foo
2011-08-07 13:24:27.737 Python[44733:b07] é

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3387767&amp;amp;group_id=14534

------------------------------------------------------------------------------
BlackBerry&amp;amp;reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos &amp;amp; much more. Register early &amp;amp; save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>SourceForge.net</dc:creator>
    <dc:date>2011-08-07T12:28:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947">
    <title>Patch for GNUstep support</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947</link>
    <description>&lt;pre&gt;Hello,

Over the past few days, we've ported PyObjC (trunk) to GNUstep. It's 
known to compile and work on:

   1. GCC Objective-C runtime &amp;lt; 4.6
   2. GCC Objective-C runtime &amp;gt;= 4.6
   3. GNUstep Objective-C runtime (libobjc-2-1.5).

To get this to work, you need GNUstep base and corebase from trunk.

We've also integrated successfully PyObjC in the SOGo code (www.sogo.nu) 
- so it's now possible to fully extend SOGo's code using Python.

Here is the patch - which could hopefully be included.

Thanks,

&lt;/pre&gt;</description>
    <dc:creator>Ludovic Marcotte</dc:creator>
    <dc:date>2011-08-01T14:40:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936">
    <title>Cocoa, httplib and threads?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936</link>
    <description>&lt;pre&gt;I'm trying to use httplib to send an http request in
a background thread. It works fine on its own, but when
I do it inside a Cocoa application, the thread hangs
as soon as it tries to send the request.

It doesn't seem to be a GIL problem, because I can do
other things in the thread leading up to that point.
It's just sending the request that seems to block.

Is there anything I should be aware of when using
the threading module in conjunction with pyobjc?

&lt;/pre&gt;</description>
    <dc:creator>Greg Ewing</dc:creator>
    <dc:date>2011-07-15T01:43:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933">
    <title>Using delegates on iOS</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933</link>
    <description>&lt;pre&gt;  Hi.
    When I load UIKit with
        myUIKit = objc.loadBundle("UIKit", globals(),
"/System/Library/Frameworks/UIKit.framework")
      I import a lot of symbols, but a few protocols such as
UIImagePickerControllerDelegate and UINavigationControllerDelegate are not
loaded with this occasion (probably because they are not used in any any
other place).

    Could you please tell me if you have an idea on what goes wrong when
using UIImagePickerController with UIImagePickerControllerDelegate in the
code below.
    The symptom is the following: none of the methods of MyDelegate don't
get called, although ipc.takePicture() should call them.
    Documentation on how to use UIImagePickerController at:
        -
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406
        -
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/occ/cl/UIImagePickerController

"""
Following
http://pyobjc.sourceforge.net/documentation/pyobjc-core/wrapping.html:
"If the framework defines any (informal) protocols you should add
objc.informal_protocol objects for those protocols to your module. These can
be defined in a submodule, as long as you arrange for that module to be
loaded whenever someone imports your package."
"""
UIImagePickerControllerDelegate =
objc.informal_protocol("UIImagePickerControllerDelegate", [
    #- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
    objc.selector(None,
selector="imagePickerController:didFinishPickingMediaWithInfo:",
signature="v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;"),
    #- (void)imagePickerControllerDidCancel:(UIImagePickerController
*)picker
    objc.selector(None, selector="imagePickerControllerDidCancel:",
signature="v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;"),
    #- (void) imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary
*)editingInfo
    objc.selector(None,
selector="imagePickerController:didFinishPickingImage:editingInfo:",
signature="v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;")
    #objc.selector(None, selector="testMethod", signature="I&amp;lt; at &amp;gt;:",
isRequired=1), #isClassMethod=1
])
UINavigationControllerDelegate =
objc.formal_protocol("UINavigationControllerDelegate",
(objc.protocolNamed("NSObject"), ), [
    #The protocol defines methods that the delegate CAN implement (NOT
mandatory)
    #- (void)navigationController:(UINavigationController
*)navigationController didShowViewController:(UIViewController
*)viewController animated:(BOOL)animated
    #- (void)navigationController:(UINavigationController
*)navigationController willShowViewController:(UIViewController
*)viewController animated:(BOOL)animated
])

#class MyDelegate(UINavigationControllerDelegate): #function takes at most 1
argument (3 given). ANYHOW BAD BECAUSE I MISTAKED AND USED
UINavigationControllerDelegate
class MyDelegate(NSObject, UIImagePickerControllerDelegate):
    #- (void) imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
    &amp;lt; at &amp;gt;objc.signature("v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;")
    def imagePickerController_didFinishPickingMediaWithInfo_(self, picker,
info):
        try:
            print "Entered
imagePickerController_didFinishPickingMediaWithInfo_(self, picker = %s, info
= %s)." % (str(picker), str(info))
            sys.stdout.flush()

            picker.release()
        except:
            traceback.print_exc()
            sys.stderr.flush()

    #Provide 2.x compliance
    #- (void) imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary
*)editingInfo
    &amp;lt; at &amp;gt;objc.signature("v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;&amp;lt; at &amp;gt;")
    def imagePickerController_didFinishPickingImage_editingInfo_(self,
picker, image, editingInfo):
        try:
            print "Entered
imagePickerController_didFinishPickingImage_editingInfo_(self, picker = %s,
image = %s, editingInfo = %s)." % (str(picker), str(image),
str(editingInfo))
            sys.stdout.flush()

            #NSDictionary *dict = [NSDictionary dictionaryWithObject:image
forKey:&amp;lt; at &amp;gt;"UIImagePickerControllerOriginalImage"];

self.imagePickerController_didFinishPickingMediaWithInfo_(picker, dict)
        except:
            traceback.print_exc()
            sys.stderr.flush()

    #- (void) imagePickerControllerDidCancel:
    &amp;lt; at &amp;gt;objc.signature("v&amp;lt; at &amp;gt;:&amp;lt; at &amp;gt;")
    def imagePickerControllerDidCancel_(self, picker):
        try:
            print "Entered imagePickerControllerDidCancel_(self, picker =
%s)." % (str(picker))
            sys.stdout.flush()

            self.dismissModalViewControllerAnimated_(objc.YES)
            picker.release()
        except:
            traceback.print_exc()
            sys.stderr.flush()

ipcDelegate = MyDelegate.alloc().init()

...
ipc = UIImagePickerController.alloc().init()
...
ipc.takePicture()


  Thank you.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>ender123&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2011-07-08T21:54:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925">
    <title>PyObjC on iOS - access camera APIs</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925</link>
    <description>&lt;pre&gt; Hi.
   I am trying to implement in PyObjC the program available at

https://github.com/erica/iphone-3.0-cookbook-/tree/b8ca8905d17015839a0917e1dcd407d055890236/C07-Images/04-Snapping%20Images.

   Although I am a "beginner" in PyObjC, I spent a couple of days trying to
very seriously translate this script to PyObjC and tried my best to find out
all errors.
   However, it doesn't work: the application doesn't execute normally after
entering viewDidLoad() - it doesn't change appearance of UI as specified
there. I guess it has to do with the fact I am not loading (or using the
specification) of the TestBedViewController.xib file, which describes
properties of TestBedViewController - I translated only the main.m and did
not use by any means the TestBedViewController.xib - I do not know how can I
load this file in PyObjC on iOS...
   Please find the PyObjC code I wrote so far here:
http://mobile-revival.110mb.com/ReVival/HelloPython.py .

   I run my PyObjC scripts on iOS version 3.1.2. PyObjC is version 1946-4,
Python is version 2.5.1-5 (obtained with Cydia 1.1.1; and libffi is version
130618-4).

   Best regards.
        Alex
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>ender123&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2011-06-29T22:48:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922">
    <title>NSWindow</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922</link>
    <description>&lt;pre&gt;Hello,
I'm starting with PyObjC and am having some trouble creating windows
I am not a beginner at either python or cocoa by the way.

Here is what i am trying (both with macports python 2.6 and builtin python 2.6) on 10.6.8

from AppKit import *
a=NSWindow.alloc().init()

simply this returns an error:

Wed Jun 29 16:23:09 TCi7.local python[10060] &amp;lt;Error&amp;gt;: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
Wed Jun 29 16:23:09 TCi7.local python[10060] &amp;lt;Error&amp;gt;: kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
objc.error: NSInternalInconsistencyException - Error (1002) creating CGSWindow


Would anyone have any recommendations?
T.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
&lt;/pre&gt;</description>
    <dc:creator>Thomas Cool</dc:creator>
    <dc:date>2011-06-29T21:23:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920">
    <title>Font rendering weirdness with Courier New</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920</link>
    <description>&lt;pre&gt;When I draw text in PyGUI using Courier New, it comes
out too far down by about half the height of the lower
case letters.

The problem only seems to affect this particular font;
all the other fonts I've tried are positioned correctly.

This is the code I'm using to get the baseline of the
text positioned at (x, y):

   h = ns_font.defaultLineHeightForFont()
   d = -ns_font.descender()
   ns_point = NSPoint(x, y - h + d)
   ns_string.drawAtPoint_withAttributes_(ns_point, ns_attrs)

Am I doing anything wrong here? I've checked the values
that Cocoa is getting for defaultLineHeightForFont and
descender, and they seem to be correct, but the text comes
out in the wrong place when using that font.

&lt;/pre&gt;</description>
    <dc:creator>Greg Ewing</dc:creator>
    <dc:date>2011-06-26T07:55:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916">
    <title>New Bitbucket/Mercurial copy of the SVN repository</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916</link>
    <description>&lt;pre&gt;I notice that at the end of last year Ronald said he intended to move the PyObjC repository from SVN to mercurial, to join py2app and friends which have already been transferred.

In an attempt to be helpful and for my own purposes I have successfully (I hope) created a copy of the PyObjC SVN repository using mercurial at bitbucket: https://bitbucket.org/lakka/pyobjc

All history/branches/tags have been preserved (though some of them might usefully be closed off), but please open an issue if you find any problems. I would be delighted if Ronald wanted to move/clone this into his account!  

I hope soon to be able to contribute to the project some work I have done reorganising the Sphinx documentation and updating the examples.

Lawrence
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>Lawrence Akka</dc:creator>
    <dc:date>2011-06-19T10:39:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909">
    <title>Problem with NSText:setString</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909</link>
    <description>&lt;pre&gt;Hello,

I have a GUI application built with interface builder. One of the windows has a NSTextView in it. I connected it to an object also referenced in the interface builder file.
The goal is to write to the NSTextView from a background trhead that does some task. I launch the thread with a call to 

NSThread.alloc().initWithTarget_selector_object_()

The behaviour I am getting is erratic. Most times it blocks on the call to the NSTextView's setString_() method and the application hangs. If I run the code on the main thread it runs fine.

How do I do this from a background thread ? The idea is to keep the application responsive.

I am on :
snow leopard (10.6.7)
pyObjc (I think it is 2.2b3 (can you tell me how to really check the version ?))

Many thanks
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>Daniel Luis dos Santos</dc:creator>
    <dc:date>2011-06-13T12:07:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5908">
    <title>[ pyobjc-Bugs-3313601 ] NSBezierPath memory leak</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5908</link>
    <description>&lt;pre&gt;Bugs item #3313601, was opened at 2011-06-08 20:14
Message generated for change (Tracker Item Submitted) made by gcewing
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3313601&amp;amp;group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gregory Ewing (gcewing)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSBezierPath memory leak

Initial Comment:
NZBezierPath.appendBezierPathWithPoints_count_ appears to leak memory
under some circumstances depending on the type of object passed in.

Observed using MacOSX 10.6.4, Python 2.7, PyObjC 2.3

Here are two test cases, one of which leaks and the other doesn't.

#  Case 1 - Passing a list of tuples
#  This one leaks

from AppKit import NSBezierPath, NSAutoreleasePool

def test():
    path = NSBezierPath.bezierPath()
    while 1:
        pool = NSAutoreleasePool.alloc().init()
        points = [(x, x) for x in xrange(10)]
        path.appendBezierPathWithPoints_count_(points, len(points))
        path.removeAllPoints()
        pool = None

test()

#  Case 2 - Passing an array.array of type 'f'
#  This one does NOT leak, apparently because it is able to pass the
#  contents of the array directly to ObjC without any conversion.

#  Does not leak

from AppKit import NSBezierPath
import array

def test():
    path = NSBezierPath.bezierPath()
    while 1:
        ar_points = array.array('f', xrange(2000))
        p = ar_points
        n = len(p) // 2
        path.appendBezierPathWithPoints_count_(p, n)
        path.removeAllPoints()

test()


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3313601&amp;amp;group_id=14534

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>SourceForge.net</dc:creator>
    <dc:date>2011-06-08T08:14:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.pyobjc.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.pyobjc.devel</link>
  </textinput>
</rdf:RDF>

