30 Jul 07:28
GSoC Python 3.0 Support Weekly Status Report #14
From: Haoyu Bai <divinekid <at> gmail.com>
Subject: GSoC Python 3.0 Support Weekly Status Report #14
Newsgroups: gmane.comp.programming.swig.devel
Date: 2008-07-30 05:32:42 GMT
Subject: GSoC Python 3.0 Support Weekly Status Report #14
Newsgroups: gmane.comp.programming.swig.devel
Date: 2008-07-30 05:32:42 GMT
Hi, In last week I finished the Python buffer typemap. After digging into the Python buffer interface, I found it is hard for SWIG wrapped class to expose a buffer interface, because SWIG wrapped C++ class as plain Python object but not a 'type' object implemented in C extension module - the Python buffer interface hooks can only be implemented in C extension module! So, SWIG can only provide some buffer typemap, which can be used as 'consumer' of the protocol. Then, for function annotation, there's a lot of discussion about providing an __annotation__ attribute for built-in and C extension functions: http://bugs.python.org/issue3208 I'd like to work out a patch for it. But now I still thinking about the feasibility of implementing it. Finally, I started a Python wiki page by summarizing my experience of SWIG's Python 3 migration. You can see it here: http://wiki.python.org/moin/Py3kExtensionModules Thanks! -- -- Haoyu Bai ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/(Continue reading)
RSS Feed