Notable parts of this release (IMO): * Data classes ( https://docs.python.org/3.7/library/dataclasses.html ) * New breakpoint() builtin ( https://docs.python.org/3.7/library/functions.html#breakpoin... ) * Dictionaries preserve insertion order. (Implemented in 3.6, but now is part of the official spec.)
Python 3.7 released
21–30 of 56 posts
Re: Python 3.7 released
#22Earlier quoted context omitted.
Data classes are awesome! No more boilerplate __init__(self) methods needed. Another notable part of this release is type annotations: https://www.python.org/dev/peps/pep-0560/
Not a python coder, but from my understanding they are essentially auto-constructors?
Re: Python 3.7 released
#23Does anyone know how long new versions of Python take to get into Homebrew? Will current Python 3.6 installations on Homebrew autoupdate to Python 3.7 when brew update/brew upgrade is run and the new version is packaged?
Looks like it's waiting for tests to pass at present.
Re: Python 3.7 released
#24Notable parts of this release (IMO): * Data classes ( https://docs.python.org/3.7/library/dataclasses.html ) * New breakpoint() builtin ( https://docs.python.org/3.7/library/functions.html#breakpoin... ) * Dictionaries preserve insertion order. (Implemented in 3.6, but now is part of the official spec.)
Re: Python 3.7 released
#25I've become a heavy user of attrs, a small library that makes it easy to replace named tuples with a class that automatically includes initialisation and string representation functions. So I'm very glad to see data classes bringing this to the core language.
Re: Python 3.7 released
#26I've become a heavy user of attrs, a small library that makes it easy to replace named tuples with a class that automatically includes initialisation and string representation functions. So I'm very glad to see data classes bringing this to the core language.
Why? attrs does it already.
Re: Python 3.7 released
#27Notable parts of this release (IMO): * Data classes ( https://docs.python.org/3.7/library/dataclasses.html ) * New breakpoint() builtin ( https://docs.python.org/3.7/library/functions.html#breakpoin... ) * Dictionaries preserve insertion order. (Implemented in 3.6, but now is part of the official spec.)
Will data classes save a ton of memory since you’re specifying the types?
Re: Python 3.7 released
#28Data classes seem pretty neat. I haven't used attrs yet. And I rarely extend namedtuples, but it's nice to have a mechanism to do that built in. breakpoint() is certainly more memorable than the current incantation.
If I tell them you just call breakpoint() they might be willing to try it out.
Re: Python 3.7 released
#29Notable parts of this release (IMO): * Data classes ( https://docs.python.org/3.7/library/dataclasses.html ) * New breakpoint() builtin ( https://docs.python.org/3.7/library/functions.html#breakpoin... ) * Dictionaries preserve insertion order. (Implemented in 3.6, but now is part of the official spec.)
Data classes look cool. Maybe replacing named tuples in my future code? They always felt awkward to work with. Will data classes save a ton of memory since you’re specifying the types?