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
11–20 of 56 posts
Re: Python 3.7 released
#12Notable 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 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/
I've been looking forward to trying data classes, should be nice to avoid unnecessary code.
Re: Python 3.7 released
#13Re: Python 3.7 released
#14Notable 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.)
Is the breakpoint builtin analogous to binding.pry in Ruby? If so...that is amazing!
Re: Python 3.7 released
#15Earlier 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/
I love python typing, and have been using it extensively in 3.6. Great to see it in the CPython core! I've been looking forward to trying data classes, should be nice to avoid unnecessary code.
Have you noticed any decreases in performance using core typing?
Re: Python 3.7 released
#16Earlier quoted context omitted.
Try using https://github.com/pypa/pipenv
Did you mean pyenv? pipenv is a package manager. You can specify in pipenv which version of Python your project needs, but to utilize it requires that that the version is already installed on your system.
Almost correct. It requires either that the version is already on your system, or it can find an installation of pyenv configured in the standard way (and, on some quirky situations with OSX, configured but pristine--without any pre-existing Python builds). In the latter case, it'll ask you if you want it to automatically build and cache/install a Python of the specified version.
And yes, the names all suck.
Re: Python 3.7 released
#17Notable 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
#18Earlier quoted context omitted.
I love python typing, and have been using it extensively in 3.6. Great to see it in the CPython core! I've been looking forward to trying data classes, should be nice to avoid unnecessary code.
> The typing module is one of the heaviest and slowest modules in the standard library even with all the optimizations made. Have you noticed any decreases in performance using core typing?
Re: Python 3.7 released
#19So I'm very glad to see data classes bringing this to the core language.
Re: Python 3.7 released
#20Notable 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 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/