Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Michael Sullivan
On Mon, Apr 15, 2019 at 4:06 PM Nathaniel Smith wrote: > On Mon, Apr 15, 2019, 15:27 Michael Sullivan wrote: > >> > The main question is if anyone ever used Py_TRACE_REFS? Does someone >> > use sys.getobjects() or PYTHONDUMPREFS environment variable? >> >> I used sys.getobjects() today to track

Re: [Python-Dev] PEP 591 discussion (final qualifier) happening at typing-sig@

2019-04-15 Thread Nathaniel Smith
On Mon, Apr 15, 2019 at 5:00 PM Michael Sullivan wrote: > > I've submitted PEP 591 (Adding a final qualifier to typing) for discussion to > typing-sig [1]. I'm not on typing-sig [1] so I'm replying here. > Here's the abstract: > This PEP proposes a "final" qualifier to be added to the ``typing`

Re: [Python-Dev] PEP 589 discussion (TypedDict) happening at typing-sig@

2019-04-15 Thread Philippe Gagnon
Hi Jukka, Thanks for submitting this PEP, I think it will be a net plus for the python language. I have been using TypedDict as a mypy_extensions module and it's been a great help. I found that the one thing that may be less intuitive and its design is the totality property. The fact that you nee

[Python-Dev] PEP 591 discussion (final qualifier) happening at typing-sig@

2019-04-15 Thread Michael Sullivan
I've submitted PEP 591 (Adding a final qualifier to typing) for discussion to typing-sig [1]. Here's the abstract: This PEP proposes a "final" qualifier to be added to the ``typing`` module---in the form of a ``final`` decorator and a ``Final`` type annotation---to serve three related purposes: *

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Nathaniel Smith
On Mon, Apr 15, 2019, 15:27 Michael Sullivan wrote: > > The main question is if anyone ever used Py_TRACE_REFS? Does someone > > use sys.getobjects() or PYTHONDUMPREFS environment variable? > > I used sys.getobjects() today to track down a memory leak in the > mypyc-compiled version of mypy. > >

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Michael Sullivan
> The main question is if anyone ever used Py_TRACE_REFS? Does someone > use sys.getobjects() or PYTHONDUMPREFS environment variable? I used sys.getobjects() today to track down a memory leak in the mypyc-compiled version of mypy. We were leaking memory badly but no sign of the leak was showing u

Re: [Python-Dev] Cannot find documented API in PEP-376 (Database of Installed Python Distributions)

2019-04-15 Thread Paul Moore
On Mon, 15 Apr 2019 at 22:35, Stefano Borini wrote: > > Hello, > > I am on a PEP scouting effort to check the current status of python > packaging and its historical context, mostly for learning purposes. I > noted that the PEP defines some functions for pkgutil (e.g. > get_distributions), but I c

[Python-Dev] Cannot find documented API in PEP-376 (Database of Installed Python Distributions)

2019-04-15 Thread Stefano Borini
Hello, I am on a PEP scouting effort to check the current status of python packaging and its historical context, mostly for learning purposes. I noted that the PEP defines some functions for pkgutil (e.g. get_distributions), but I cannot find them. I tried to do some searching on the mailing list

Re: [Python-Dev] PEP 578: Python Runtime Audit Hooks

2019-04-15 Thread Steve Dower
On 15Apr2019 1344, Christian Heimes wrote: Hi Steve, (memory dump before I go to bed) Steve Grubb from Red Hat security pointed me to some interesting things [1]. For instance there is some work on a new O_MAYEXEC flag for open(). Steve came to similar conclusions like we, e.g. streaming code f

Re: [Python-Dev] PEP 578: Python Runtime Audit Hooks

2019-04-15 Thread Christian Heimes
On 28/03/2019 23.35, Steve Dower wrote: > Hi all > > Time is short, but I'm hoping to get PEP 578 (formerly PEP 551) into > Python 3.8. Here's the current text for review and comment before I > submit to the Steering Council. > > The formatted text is at https://www.python.org/dev/peps/pep-0578/

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Antoine Pitrou
On Mon, 15 Apr 2019 12:50:00 +0200 Antoine Pitrou wrote: > On Thu, 11 Apr 2019 08:26:47 -0700 > Steve Dower wrote: > > On 10Apr2019 1917, Nathaniel Smith wrote: > > > It sounds like --with-pydebug has accumulated a big grab bag of > > > unrelated features, mostly stuff that was useful at some p

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Steve Dower
On 12Apr2019 1819, Nathaniel Smith wrote: On Fri, Apr 12, 2019 at 5:05 PM Steve Dower wrote: On 12Apr.2019 1643, Nathaniel Smith wrote: On Thu, Apr 11, 2019 at 8:26 AM Steve Dower wrote: The very first question I asked was whether this would let us converge the ABIs, and the answer was "no"

[Python-Dev] PEP 589 discussion (TypedDict) happening at typing-sig@

2019-04-15 Thread Jukka Lehtosalo
Hi everyone, I submitted PEP 589 (TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys) for discussion to typing-sig [1]. Here's an excerpt from the abstract of the PEP: PEP 484 defines the type Dict[K, V] for uniform dictionaries, where each value has the same type, and arbitrary key

[Python-Dev] Collaboration on a set of Python snaps

2019-04-15 Thread Alan Pope
Hi Python devs, I work on the Snapcraft [0] team at Canonical. I'm looking for a Python contributor to collaborate with us on making snaps of supported releases of Python available in the Snap Store [1]. Travis CI and Canonical are looking for someone (preferably North-America based) to participa

Re: [Python-Dev] [Core-mentorship] Season of Docs

2019-04-15 Thread Stephane Wirtel
I don't know if Julien Palard is on this mailing list, but maybe he could be interested by this initiative. On 04/15, Senthil Kumaran wrote: Hello Python Developers, Google is running a program called Season of Docs ( https://developers.google.com/season-of-docs/) to encourage technical writers

[Python-Dev] Season of Docs

2019-04-15 Thread Senthil Kumaran
Hello Python Developers, Google is running a program called Season of Docs ( https://developers.google.com/season-of-docs/) to encourage technical writers to improve the documentation of Open Source Projects. As Python-Dev, and Python Software Foundation, do you think: a) We should participate?

Re: [Python-Dev] No longer enable Py_TRACE_REFS by default in debug build

2019-04-15 Thread Antoine Pitrou
On Thu, 11 Apr 2019 08:26:47 -0700 Steve Dower wrote: > On 10Apr2019 1917, Nathaniel Smith wrote: > > It sounds like --with-pydebug has accumulated a big grab bag of > > unrelated features, mostly stuff that was useful at some point for > > some CPython dev trying to debug CPython itself? It's cle

Re: [Python-Dev] PEP 590 discussion

2019-04-15 Thread Jeroen Demeyer
On 2019-04-14 13:30, Mark Shannon wrote: PY_VECTORCALL_ARGUMENTS_OFFSET exists so that callables that make onward calls with an additional argument can do so efficiently. The obvious example is bound-methods, but classes are at least as important. cls(*args) -> cls.new(cls, *args) -> cls.__init__

Re: [Python-Dev] PEP 580 and PEP 590 comparison.

2019-04-15 Thread Jeroen Demeyer
On 2019-04-14 13:34, Mark Shannon wrote: I'll address capability first. I don't think that comparing "capability" makes a lot of sense since neither PEP 580 nor PEP 590 adds any new capabilities to CPython. They are meant to allow doing things faster, not to allow more things. And yes, the