On 28 août 18:53, Dan Stromberg wrote:
> BTW, I think SqlAlchemy's sa2to3 wrapper for 2to3 is probably the best way
> to go for creating code that runs on 2.x and 3.x.  This way, you have 2.x
> and 3.x in the same file, distinguished by comments - things are the same on
> both by default, or you add magic comments that say "Do it this way for 2.x,
> that way for 3.x".  Then the 2to3 tool is just about guaranteed to be able
> to create 3.x code automatically from 2.x, given appropriate annotations.

sounds cool

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to