Re:Removing Python 2.x support from Django for version 2.0
by aidos on Thursday January 19, 2017 @07:54AM
(#13435338)
Of which the improved exception handling is my favourite.
You could do ", ".join(["etc"]* 1000) in python2 - what am I missing?
Re:Removing Python 2.x support from Django for version 2.0
by BozeWolf on Thursday January 19, 2017 @08:01AM
(#13435395)
ah well, it was just a geeky way to say etc etc etc.... no python3 stuff intended to be used there. Sorry :)
This one then, althoug it sort of works in python 2 as well..
", ".join(['ètç']* 1000)
Even if you think you would not use those features, other libraries you may use might benefit a lot from it.
A few features: async/await, lists (and others) use iterators, no var leaking in list comprehensions, super().my_method() instead of super(MyClass, self).my_method(), class MyClass: instead of class MyClass(object):, improved exception handling, required arguments, ", ".join(["etc"]* 1000)
Besides that: a much improved standard library, although that technically not is language design.