[Python-Dev] [RELEASE] Python 2.7.17 release candidate 1

2019-10-08 Thread Benjamin Peterson
The first release candidate of Python 2.7.17 is now available for download and testing. Python 2.7.17 includes 80 fixes over Python 2.7.16. Downloads may be found on python.org: https://www.python.org/downloads/release/python-2717rc1/ Read the full changelog at: https://raw.githubuser

[Python-Dev] Re: Python Profilers documentation - typo?

2019-10-08 Thread Chris Angelico
On Wed, Oct 9, 2019 at 11:44 AM Rob Cliffe via Python-Dev wrote: > > The documentation at > https://docs.python.org/3.2/library/profile.html > contains the sentence > For example, if your_integer_time_func() returns times measured in > thousands of seconds, you would construct the Profile

[Python-Dev] Re: Python Profilers documentation - typo?

2019-10-08 Thread Guido van Rossum
Pretty embarrassing, I agree. Can you submit a PR? On Tue, Oct 8, 2019 at 17:38 Rob Cliffe via Python-Dev < python-dev@python.org> wrote: > The documentation at > https://docs.python.org/3.2/library/profile.html > contains the sentence > For example, if your_integer_time_func() returns ti

[Python-Dev] Python Profilers documentation - typo?

2019-10-08 Thread Rob Cliffe via Python-Dev
The documentation at     https://docs.python.org/3.2/library/profile.html contains the sentence     For example, if your_integer_time_func() returns times measured in thousands of seconds, you would construct the Profile instance as follows: "thousands of seconds" should ISTM be "thousandths of

[Python-Dev] Re: PEP 587 (Python Initialization Configuration) updated to be future proof again

2019-10-08 Thread David Cuthbert via Python-Dev
This is too-little, too-late (I was offline this past week), but for those who enjoy digging through historical archives, the Tcl folks had an interesting stubs mechanism that was *supposed* to solve the versioning issue (although I suspect it hasn’t actually done much in that regard) in additio

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Eric V. Smith
Ivan (who you cc'd) is a good start! Eric On 10/8/2019 8:35 AM, Philippe Prados wrote: Glups. I am not an expert of Pyhton source code. May be after this patch ;-) I think I should discuss with the authors of the module typing, to identify the best strategy. Who is he ? Philippe Le mar.

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Guido van Rossum
That would mean that all of typing will be imported as part of startup, and that module is too heavy for that. Also it might end up on recursion. On Tue, Oct 8, 2019 at 09:06 Brandt Bucher wrote: > I’m a bit confused. For my own understanding: what’s stopping > PyObject_IsInstance/PyObject_IsSub

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Brandt Bucher
I’m a bit confused. For my own understanding: what’s stopping PyObject_IsInstance/PyObject_IsSubclass from just trying PyImport_GetModule("typing") here? If NULL, carry on. Otherwise, check the Union case. Brandt > On Oct 8, 2019, at 05:44, Philippe Prados wrote: > >  > Glups. > > I am not

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Philippe Prados
Glups. I am not an expert of Pyhton source code. May be after this patch ;-) I think I should discuss with the authors of the module typing, to identify the best strategy. Who is he ? Philippe Le mar. 8 oct. 2019 à 10:19, Ivan Levkivskyi a écrit : > You will need to rewrite most of things in

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Ivan Levkivskyi
You will need to rewrite most of things in C. -- Ivan On Tue 8 Oct 2019, 08:53 Philippe Prados, wrote: > Ok, > > But _GenericAlias and dependencies are written with Python > (Lib/typing.py), not with C. > So, I must rewrite the _GenericAlias in C or it's possible to merge the C > and Python in

[Python-Dev] Re: Migrate typing in builtin

2019-10-08 Thread Philippe Prados
Ok, But _GenericAlias and dependencies are written with Python (Lib/typing.py), not with C. So, I must rewrite the _GenericAlias in C or it's possible to merge the C and Python in builtin and add a direct reference to _GenericAlias with C, and add the reference in builtin module ? Philippe Le l