[Python-Dev] Re: PEP: Deferred Evaluation Of Annotations Using Descriptors

2021-02-15 Thread Larry Hastings
I don't work on these sorts of codebases, and I don't use type hints or static type checking.  So I'm not really qualified to judge how bad / widespread a problem this is.  It's my hope that the greater Python core dev / user community can ascertain how serious this is. My main observation i

[Python-Dev] [RELEASE] Python 3.7.10 and 3.6.13 security updates now available

2021-02-15 Thread Ned Deily
Python 3.7.10 and 3.6.13, the lastest security fix rollups for Python 3.7 and Python 3.6, are now available. You can find the release files, links to the changelogs, and more information here: https://www.python.org/downloads/release/python-3710/ https://www.python.org/downloads/release/

[Python-Dev] Re: PEP: Deferred Evaluation Of Annotations Using Descriptors

2021-02-15 Thread Guido van Rossum
On Sun, Feb 14, 2021 at 7:17 PM Inada Naoki wrote: > On Mon, Feb 15, 2021 at 10:20 AM Joseph Perez wrote: > > > > > How about having a pseudo-module called __typing__ that is > > > ignored by the compiler: > > > > > > from __typing__ import ... > > > > > > would be compiled to a no-op, but recog

[Python-Dev] Re: It is really necessary to check that a object has a Py_TPFLAGS_HEAPTYPE flag?

2021-02-15 Thread Emily Bowman
On Mon, Feb 15, 2021 at 4:11 PM Victor Stinner wrote: > > I didn't use Ruby on Rails, but the feedback that I heard is that the > ability to extend built-in types is appealing, but it is problematic > in practice. > Monkeypatching's such a part of the Ruby (and Javascript) culture that there isn

[Python-Dev] Re: It is really necessary to check that a object has a Py_TPFLAGS_HEAPTYPE flag?

2021-02-15 Thread Victor Stinner
On Tue, Feb 9, 2021 at 4:53 AM Kazantcev Andrey wrote: > I decided to figure out why it is impossible to change methods of built-in > types and found > ``` > if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE)) { > PyErr_Format( > PyExc_TypeError, > "can't set attribut

[Python-Dev] Re: Security releases of CPython

2021-02-15 Thread Victor Stinner
Hi Michał, I created https://python-security.readthedocs.io/ website to track known Python vulnerabilities to help me checking if fixes are backported to all supported Python branches. I'm maintaing this list manually, it's far from being complete, and likely outdated. I also created https://gith

[Python-Dev] Merge Request Review Reminder

2021-02-15 Thread Faisal Mahmood
Hello, I hope you are all well, I currently have an issue / merge request that has become stale and as per the guidelines I am sending this e-mail to request someone to review it for me please. Issue Number: 42861 (https://bugs.python.org/issue42861) Pull Request: 24180 (https://github.com/python

[Python-Dev] Re: PEP 647 (type guards) -- final call for comments

2021-02-15 Thread Emily Bowman
FWIW, it would really be nice if this was called IsInstance[...]; I feel like that would neatly encapsulate its meaning to both old and new, that it's just a yes/no on whether this is an instance of [...]. TypeScript has the concept of a type guard but doesn't use that name in code, so there's no r

[Python-Dev] Re: PEP 597 bikeshedding: envvar / option name.

2021-02-15 Thread Victor Stinner
On Mon, Feb 15, 2021 at 6:31 AM Inada Naoki wrote: > * PYTHONWARNENCODING / warn_ecoding (I love this "ecoding" typo, but it's not my favorite choice ;-)) I dislike "warn_encoding" because it is too generic. An encoding? Which one? Why does anyone want to emit a warning when an encoding is used?

[Python-Dev] Re: Python standardization

2021-02-15 Thread Victor Stinner
See "A formal specification for the (C)Python virtual machine - Python Language Summit 2020" by Mark Shannon: https://pyfound.blogspot.com/2020/04/a-formal-specification-for-cpython.html Victor On Fri, Feb 12, 2021 at 7:40 PM Dan Stromberg wrote: > > > What would it take to create an ANSI, ECMA