Python2 demotion (moving from main to universe) in progress
Daniel Watkins
daniel.watkins at canonical.com
Thu Dec 14 23:05:55 UTC 2017
On Thu, Dec 14, 2017 at 11:45:23PM +0100, Xen wrote:
> The move towards Python 3 was forced, it didn't come natural for anyone.
Nope, I have preferred Python 3 since ~3.3, and the transition has
happened over _more than a decade_.
> Lists became iterables. That is one glaring thing, even though I am novice
> in Python, that
> appalled me.
Nope:
In [1]: type([x for x in range(3)])
Out[1]: list
In [2]: type(x for x in range(3))
Out[2]: generator
> Stuff was taken out (or moved away) that the devs considered "useless"
> (like the filter
> function) but they don't give you the choice.
Nope:
% python3 -c"print(list(filter(lambda x: x == 'b', ['a', 'b', 'c'])))"
['b']
Please stop.
Dan
More information about the Ubuntu-devel-discuss
mailing list