[Twisted-Python] Using six for Python3 porting

Ralph Meijer ralphm at ik.nu
Fri Apr 24 05:57:26 MDT 2015


On 2015-04-24 08:41, Adi Roiban wrote:
> Hi,
> 
> I feel that twisted.python.compat is slowly duplicating / reinventing
> an important part of the six code.
> 
> Code which does not import from  twisted.python.compat will have all
> kind of ad-hoc / in module code to handle differences between py2 and
> py3 and many if _PY3 conditional blocks.
> 
> What do you say if we add six as dependency for twisted ?
> 
> In case you don't want six as a dependency, it can be copied in
> twisted code base and make it available from twisted.python.six or a
> similar package.

I vaguely remembered working on this at PyCon in 2014:
https://twistedmatrix.com/trac/ticket/7177

-- 
ralphm




More information about the Twisted-Python mailing list