Haoyu Bai | 5 Aug 10:57

GSoC Python 3.0 Support Weekly Status Report #15

Hello,

Last week I finished the Python 3.0's abstract base class support.
(See PEP 3119 -- Introducing Abstract Base Classes for detail of the
ABC: http://www.python.org/dev/peps/pep-3119/)

If you have ever used SWIG to wrap STL classes, now you can try to add
an include line in your interface file:

%include<pyabc.i>

Then your std::list, std::vector, std::set, std::map and other STL
containers will automatically gain an ABC base class. For example, you
can try:

issubclass(IntSet, collections.MutableSet)  #True
issubclass(IntVector, collections.MutableSequence) #also True

At this point, almost all the proposed Python 3 related features are
implemented. Though there still codes need to review and polish, also
some documentation works. Hopefully we can merge the code back to
trunk at the end of GSoC.

--

-- 
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
(Continue reading)


Gmane