2 ms·
What makes 3 more enjoyable/productive?
by tocomment 15y ago
What makes 3 more enjoyable/productive?
- sho_hn 15y agoUnicode strings by default is a big one for me, but the little things sum up too: The removal of x*() functions in favor of making things that should return iterators just do so, removing old-style classes, various little consistency gains in standard object interfaces/protocols, lots of standard lib organization cleanups. I simply find things in Python 3 are the way I expect or want them to be more often than in 2, reducing the number of gotchas I need to keep track of. Heck, even print() is a solid improvement in my book (keyword args, hooray!) and I appreciate not needing the __future__ import for it. The list gets longer of course if you fairly add all the things eventually backported to 2.7, e.g. set literals and comprehensions. So, does 2.x work? Sure. Is 3 better? Yup. If I get to pick one, I pick 3.