[Pyobjc-dev] PyObjC status for Python 3.x
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-04-05 11:46:02
|
Hi, This is a quick status-update for the Py3k support in PyObjC: pyobjc-core and the framework wrappers can be build with Python 3.2 and most tests pass. I haven't looked at py2app yet, that probably requires some work to get it to work propertly, although with some luck it will work as is. I'm not entirely happy yet though, the Python-compatible interface for NSDictionary and other collection classes don't conform to the interface of the corresponding python types yet (that is, "anNSDictionary.keys()" is not a view object but returns a list just as in Python 2.x). My plan to fix this is to first write unittests for this and then implement the required support code. PyObjC also don't do anything with the Abstract Base Class machinery yet (see <http://docs.python.org/py3k/library/abc.html>). I plan to add that later on, both by registering Cocoa subclasses with the ABCs and by looking at the ABCs to see how a class should be proxied. BTW. A side-effect of the py3k port is that the version of pyobjc in the repository requires python 2.6 because I use byte literals ( b"hello") to tweak the output from the 2to3 tool. I have no plans to reintroduce support for python 2.5, especially because I'd like to make some changes to the bridge that will require python 2.6. Ronald |