Hacker News new | ask | show | jobs
by mrsteveman1 4087 days ago
2to3 will write you a patch so you can port the code to py3 if that's what you want, but if you then also want to maintain py2 compatibility you've got more work to do.

I can't speak to the wisdom of making map and zip builtins, but that's what they are in py3, and the six module will make using them that way automatically backward and forward compatible:

    from six import map, zip
1 comments

Map and zip were builtins in 2.x as well, just not the itertools.imap/itertools.izip variants.