[Python-Dev] Re: Runtime vs. Static Typing

2020-12-10 Thread Paul Bryan
Thanks. Concern allayed. 🙂 On Thu, 2020-12-10 at 21:55 -0800, Guido van Rossum wrote: > Hi Paul, > > The runtime component is the API provided by the `typing` module such > as `get_type_hints()`, plus the `__annotations__` attribute on > various objects (classes and functions, mostly). > > I am

[Python-Dev] Re: Runtime vs. Static Typing

2020-12-10 Thread Guido van Rossum
Hi Paul, The runtime component is the API provided by the `typing` module such as `get_type_hints()`, plus the `__annotations__` attribute on various objects (classes and functions, mostly). I am not aware of any plans or proposals to remove `__annotations__` or `typing.get_type_hints()`, and obv

[Python-Dev] Runtime vs. Static Typing

2020-12-10 Thread Paul Bryan
Per PEP 563: > Most importantly, Guido van Rossum explicitly stated interest in > gradually restricting the use of annotations to static typing (with > an optional runtime component). As I'm working on runtime type encoding and validation using type annotations, this passage raises a bit of a con

[Python-Dev] Re: NEWS, changelog, and blurb -- a teaching moment

2020-12-10 Thread Brett Cannon
On Wed, Dec 9, 2020 at 7:38 PM Larry Hastings wrote: > On 12/9/20 5:21 PM, Ethan Furman wrote: > > On 12/9/20 5:01 PM, Larry Hastings wrote: > > > "Misc/NEWS" is no longer checked in, it's generated on demand using > "blurb merge". > > So if I understand correctly, blurb makes NEWS, but `whatsnew

[Python-Dev] Re: Can lib2to3 and 2to3 be deprecated yet?

2020-12-10 Thread Guido van Rossum
See https://bugs.python.org/issue40360 On Thu, Dec 10, 2020 at 3:01 AM Victor Stinner wrote: > Le jeu. 10 déc. 2020 à 11:51, Matthias Klose a écrit : > > lib2to3 is used by distutils/util, so why deprecate it before distutils? > > I don't think that it's exclusive. We can deprecate the 2to3 fea

[Python-Dev] Re: Can lib2to3 and 2to3 be deprecated yet?

2020-12-10 Thread Victor Stinner
Le jeu. 10 déc. 2020 à 11:51, Matthias Klose a écrit : > lib2to3 is used by distutils/util, so why deprecate it before distutils? I don't think that it's exclusive. We can deprecate the 2to3 feature in distutils as well. But please don't put a requirement on deprecating distutils to be able to de

[Python-Dev] Re: Can lib2to3 and 2to3 be deprecated yet?

2020-12-10 Thread Matthias Klose
On 12/10/20 10:58 AM, Victor Stinner wrote: > Hi, > > I vaguely recall that PEP 617 "New PEG parser for CPython" was > supposed to deprecate the lib2to3 module and the 2to3 program. > > I see that lib2to3/__init__.py contains a PendingDeprecationWarning in > Python 3.9. Can it be converted into a

[Python-Dev] Can lib2to3 and 2to3 be deprecated yet?

2020-12-10 Thread Victor Stinner
Hi, I vaguely recall that PEP 617 "New PEG parser for CPython" was supposed to deprecate the lib2to3 module and the 2to3 program. I see that lib2to3/__init__.py contains a PendingDeprecationWarning in Python 3.9. Can it be converted into a regular DeprecationWarning and document the deprecation i

[Python-Dev] Re: macOS issues with 3.8.7rc1

2020-12-10 Thread Ronald Oussoren via Python-Dev
> On 10 Dec 2020, at 06:38, Greg Ewing wrote: > > On 10/12/20 10:28 am, Guido van Rossum wrote: >> In my experience Apple hardware is very reliable and way outlives the OS >> updates. Even if an OS updates is still available, the newer OS often needs >> more memory, which can be a problem >