Re: [Python-Dev] PEP 562

2017-11-14 Thread Serhiy Storchaka
14.11.17 22:34, Ivan Levkivskyi пише: This function will be called only if ``name`` is not found in the module through the normal attribute lookup. It is worth to mention that using name as a module global will bypass __getattr__. And this is intentional, otherwise calling __getattr__ for

Re: [Python-Dev] PEP 560

2017-11-14 Thread Nick Coghlan
On 15 November 2017 at 06:26, Ivan Levkivskyi wrote: > After some discussion on python-ideas, see https://mail.python.org/ > pipermail/python-ideas/2017-September/047220.html, this PEP received > positive comments. The updated version that takes into account the comments >

Re: [Python-Dev] The current dict is not an "OrderedDict"

2017-11-14 Thread Eric Snow
On Nov 7, 2017 08:12, "INADA Naoki" wrote: Additionally, class namespace should keep insertion order. It's language spec from 3.6. So we should have two mode for such optimization. It makes dict more complicated. FWIW, PEP 520 (Preserving Class Attribute Definition

Re: [Python-Dev] The current dict is not an "OrderedDict"

2017-11-14 Thread Armin Rigo
Hi Antoine, On 8 November 2017 at 10:28, Antoine Pitrou wrote: > Yet, PyPy has no reference counting, and it doesn't seem to be a cause > of concern. Broken code is fixed along the way, when people notice. It is a major cause of concern. This is the main blocker for

[Python-Dev] PEP 562

2017-11-14 Thread Ivan Levkivskyi
After discussion on python-ideas, it looks this PEP moves towards a favorable decision. For a recent discussion see https://mail.python.org/pipermail/python-ideas/2017-November/047806.html. The PEP is available at https://www.python.org/dev/peps/pep-0562/ The most important recent change is the

[Python-Dev] PEP 560

2017-11-14 Thread Ivan Levkivskyi
After some discussion on python-ideas, see https://mail.python.org/pipermail/python-ideas/2017-September/047220.html, this PEP received positive comments. The updated version that takes into account the comments that appeared in the discussion so far is available at

Re: [Python-Dev] PEP 565: Show DeprecationWarning in __main__

2017-11-14 Thread brent bejot
On Mon, Nov 13, 2017 at 11:33 AM, Victor Stinner wrote: > If the Python REPL is included in the "run an application" use case, > the frontier between user and developer becomes blurry :-) Is REPL > designed for users or developers? Should Python guess the intent of >

Re: [Python-Dev] Python possible vulnerabilities in concurrency

2017-11-14 Thread Jan Claeys
On Tue, 2017-11-14 at 13:15 +0100, Antoine Pitrou wrote: > On Mon, 13 Nov 2017 15:55:03 -0500 > Stephen Michell wrote: > > I am looking for one or two experts to discuss with me how Python > > concurrency features fit together, and possible vulnerabilities > >

Re: [Python-Dev] Python possible vulnerabilities in concurrency

2017-11-14 Thread Antoine Pitrou
Hi Stephen, On Mon, 13 Nov 2017 15:55:03 -0500 Stephen Michell wrote: > I am looking for one or two experts to discuss with me how Python concurrency > features fit together, and possible vulnerabilities associated with that. > > TR 24772 lists 5 vulnerabilities

Re: [Python-Dev] PEP 561 rework

2017-11-14 Thread Ethan Smith
A note was added [1] about the solution for module only distributions and is live on Python.org. [1] https://github.com/python/peps/pull/468 Ethan Smith On Tue, Nov 14, 2017 at 1:02 AM, Sebastian Rittau wrote: > Am 14.11.2017 um 02:38 schrieb Guido van Rossum: > > On Mon,

Re: [Python-Dev] PEP 561 rework

2017-11-14 Thread Sebastian Rittau
Am 14.11.2017 um 02:38 schrieb Guido van Rossum: On Mon, Nov 13, 2017 at 3:50 PM, Sebastian Rittau > wrote: I am really looking forward to the implementation of this PEP and I am glad that it is close to acceptance. One thing that is not