4 ms·
You can write forward compatible 2.x. Here is a small guide to pitfalls and writing forward compatible code: http://lucumr.pocoo.org/2011/1/22/forwards-compati
by irahul 15y ago
You can write forward compatible 2.x. Here is a small guide to pitfalls and writing forward compatible code:
http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python/ http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python...
Note that he advises leaving print statement be; it's more familiar in 2.x land, editors often are confused with print function syntax highlighting, and it's easily handled by 2to3.