[python-crypto] porting of m2crypto on python 3

Antoine Pitrou solipsis at pitrou.net
Sun Jan 20 13:11:55 CET 2013


Le dimanche 20 janvier 2013 à 08:23 +0100, Matej Cepl a écrit :
> On 20/01/13 00:10, Antoine Pitrou wrote:
> > I'm not sure SWIG is Python 3-enabled.
> 
> I will investigate that but there are some rumours it is.
> 
> > It means that if m2crypto relies on FILE pointer-accepting OpenSSL
> > functions, some amount of rewriting is needed.
> 
> That object is added to the generated C code by swig, it is not in
> m2crypto’s *.i files.

Well, look at
http://www.swig.org/Doc2.0/SWIGDocumentation.html#Python_python3support

        There is a list of known-to-be-broken features in Python 3:
        
        * No more support for FILE* typemaps, because PyFile_AsFile has
        been dropped in Python 3.
        [...]
        
;-)

Regards

Antoine.




More information about the python-crypto mailing list