[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Mark Dickinson


Mark Dickinson  added the comment:

> We could add an option to cause NaNs to raise an error, but I don't think it 
> would get used.

If that option were extended to also cause infinities to raise an error, then 
I'd use it. We have code that's producing JSON without knowing in advance 
exactly who the JSON consumer will be, and in particular whether the consumer 
will be strict in what it accepts or not. In that situation, it's preferable 
for us to discover that we're producing invalid JSON early (e.g., when running 
our own unit tests) rather than much later, when it turns out that the customer 
is using the "wrong" relational database.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think it should be closed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith


Change by Nathaniel Smith :


--
pull_requests: +19469
pull_request: https://github.com/python/cpython/pull/20170

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily


Change by Ned Deily :


--
keywords: +patch
pull_requests: +19470
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20171

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith


Nathaniel Smith  added the comment:


New changeset 58205a0217e91232cc1e945dbfe4e387d636eb76 by Nathaniel J. Smith in 
branch 'master':
bpo-39148: fixup to account for IPV6_ENABLED being moved (GH-20170)
https://github.com/python/cpython/commit/58205a0217e91232cc1e945dbfe4e387d636eb76


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2020-05-18 Thread Марк Коренберг

Change by Марк Коренберг :


--
components: Library (Lib)
nosy: socketpair
priority: normal
severity: normal
status: open
title: TarFile.add does not support pathlib.Path as a value to first argument.
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith


Nathaniel Smith  added the comment:

I think I fixed the buildbot issues in GH-20170, but I can't seem to reach the 
buildbot site right now, so it's hard to know for sure!

--
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Mark Dickinson


Mark Dickinson  added the comment:

Agreed; closing.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:


New changeset 1731d6da263e9a2d6e783e87a8a5d5ce58fda46d by Ned Deily in branch 
'master':
bpo-34956: Fix macOS _tkinter use of Tcl/Tk in /Library/Frameworks (GH-20171)
https://github.com/python/cpython/commit/1731d6da263e9a2d6e783e87a8a5d5ce58fda46d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower

New submission from Steve Dower :

So I'm totally sick of being abused on the internet about the whole PATH issue, 
and want to put this up as an alternative. I'm willing to do the work, but I'm 
worried that my emotional state about the whole thing is blinding me to obvious 
issues.

In short, add a new option to the installer to "Add global python3.exe and 
python.exe commands". Also replace the current PATH option on the first page 
(not under Customize) with this. I'll also embed a "Learn More" link to the 
(new) doc page that explains the impact.

The option will pass an extra flag to the *launcher* installer to include more 
copies of py.exe, renamed to python3.exe and python.exe (we already pass a 
similar option to add file associations). These additional copies will be just 
as global as py.exe (depending on whether the user is admin or not) and 
obviously work identically.

Importantly, this does *not* drop an arbitrary/writable directory on PATH, and 
it keeps the DLLs out of the search path. 

There are some risks:
* these may overtake people's existing installs and replace them with something 
more clever (this annoys people)
* these add an extra process in the chain, which can break callers who need the 
process ID/handle (this annoys people)
* this won't put Scripts on PATH (this annoys people)
* changing anything at all annoys people
* would remove python3.dll and python39.dll from PATH (probably for the best), 
and also vcruntime*.dll (which is a *good* thing) and anything installed by 
packages/tools into sys.prefix (which is a *massive* security vulnerability)
* the help text for the launcher is not obvious above the help for the default 
Python interpreter
* shebang lines will start being noticed
* things should work in a venv because of both PATH and VIRTUALENV variables, 
but I'm not going to stake my life on this
* "python3.exe" could launch Python 2, but I'm not too concerned by this

I feel like this option is the best of a bad lot. But if people weigh in and 
say it's worse than doing nothing, then I'll do nothing.

(Including Łukasz in case he wants to veto adding this to 3.9 after beta 1. 
It's not a language change, and barely even an installer change - just a few 
optional copies of the existing launcher plus some docs. But as I mentioned 
above it *will* break some people.)

--
components: Windows
messages: 369196
nosy: lukasz.langa, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Windows] Add global python and python3 commands
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40668] Catastrophic loss of precision in colorsys module

2020-05-18 Thread Zac Hatfield-Dodds


New submission from Zac Hatfield-Dodds :

As part of the Mentored Sprints at PyCon US, Marielle wrote some property-based 
tests [1] for the colorsys module [2], which found two bugs.


Taking a YIQ color, converting to RGB, and back to YIQ can result in the Y 
coordinate varying by more 0.1 (where [0, 1] is the range of possible values).
For example: (0.0 1.0 2.2204460492503136e-16) -> RGB -> (0.0 
1.1102230246251568e-16 1.0)

Taking an RGB color and converting though HSV-RBG-HSV can result in very 
different saturation values - up to having S1==0 and S2==1.
For example: (0.0 1.0 2.2204460492503136e-16) -> RGB -> (0.0 
1.1102230246251568e-16 1.0)


You can reproduce additional examples and get error bounds from [3].


[1] https://pyfound.blogspot.com/2020/05/property-based-testing-for-python.html
[2] https://docs.python.org/3/library/colorsys.html
[3] https://github.com/Zac-HD/stdlib-property-tests/pull/13

--
components: Library (Lib)
messages: 369197
nosy: Zac Hatfield-Dodds
priority: normal
severity: normal
status: open
title: Catastrophic loss of precision in colorsys module
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38938] Possible performance improvement for heaqq.merge()

2020-05-18 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

I mostly like new_merge.py too, especially the dynamic reduction of the tree.

However, it looks like ``list(merge([2],[1],[1]))`` currently fails, and I 
think what's missing is the following in the sibling-promotion:

+ if sibling.left is not None:
+ sibling.left.parent = sibling.right.parent = parent

Also for what it's worth, I think both appearances of "c1 if c1.value < 
c2.value else c2" should become "c2 if c2.value < c1.value else c1" for 
stability. 

I've attached winners.py, which is similar to new_merge.py, but replaces the 
"while node.left is not None: node = node.source" traversal with a single "node 
= node.leaf" call and adds a fast yield-from for the last iterator. I don't 
think it's much more complex either.

--
Added file: https://bugs.python.org/file49170/winners.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-18 Thread Tal Einat


Tal Einat  added the comment:

I can reproduce this behavior on macOS as well, so this doesn't seem to be 
Windows-specific.

This does not happen with other apps in general, so it is not normal behavior 
for apps.

Testing with a minimal tkinter app (see code below) gives similar behavior, so 
this appears to be an issue with tkinter and/or tcl/tk.


import tkinter
text = tkinter.Text()
text.pack()
tkinter.mainloop()

--
nosy: +taleinat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35967] Better platform.processor support

2020-05-18 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

Thanks, Jason. I'll have a closer look at the issue and report back later this 
week.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40629] Error MSB4086 (numeric comparison)

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

Yeah, that looks like a version of .NET that pre-dates Version being made 
comparable, which probably means you're not getting the MSBuild installed with 
VS.

Check out "where MSBuild" or %MSBUILD% to see if there's something obvious 
overriding it, and use the MSBUILD variable to override it yourself if 
necessary.

Good luck! Would love to hear if you find an approach that doesn't involve just 
setting up a whole machine!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

This is only an issue for broken symlinks, right? (More precisely, those that 
cannot be resolved, which may include very long paths on some machines.) 

Fixing copy is my preferred option.

Also Jason, what do you need to be able to test against prerelease? It would be 
nice to find these impacts during alpha/beta rather than three bug fix releases 
later.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40334] PEP 617: new PEG-based parser

2020-05-18 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

I'm not getting any compiler warnings on macOS (clang) and on Ubuntu (gcc) and 
I can't find any related warnings on the Windows Github Actions logs either. 
Could you maybe post a verbose log of test_peg_generator, Raymond?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Michael Felt


Michael Felt  added the comment:

I could not "fathom" the buildbot test results - however, a manual build of 
PR29170 on 3.9 works: I'll try 3.8, but then from master (assuming it is 
already part of master) -- and that works as well.

Thanks for the quick update!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou

New submission from Lysandros Nikolaou :

Running the PEG Parser benchmarks requires having memory_profiler installed.

In Tools/peg_generator:

➜  peg_generator git:(master) make time_stdlib
../../python -m zipfile -e data/xxl.zip data
../../python scripts/benchmark.py --parser=cpython --target=xxl compile
Traceback (most recent call last):
  File 
"/home/lysnikolaou/repos/cpython/Tools/peg_generator/scripts/benchmark.py", 
line 9, in 
import memory_profiler
ModuleNotFoundError: No module named 'memory_profiler'

I propose to make that optional and only compute the timing benchmarks, in case 
memory_profiler is not available, since it's these benchmarks that are most 
important and most frequently run.

--
assignee: lys.nikolaou
messages: 369204
nosy: gvanrossum, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: PEG Parser benchmarks fail if memory_profiler is not installed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
keywords: +patch
pull_requests: +19471
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20172

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31033] Improve traceback of cancelled tasks / add cancel() msg argument

2020-05-18 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
pull_requests: +19472
pull_request: https://github.com/python/cpython/pull/20173

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40503] PEP 615: Add zoneinfo module

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to open a separated issue to discuss how tzdata can be installed on 
Travis CI, Azure Pipelines, Buildbots, etc. when running tests.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40646] Builtins in doc show signature in documentation

2020-05-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

"message signatures" ->  "function signatures"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-18 Thread Edison Abahurire


New submission from Edison Abahurire :

The Error can be evidenced below:

```
>>>
>>> import timeit
>>>
>>> timeit.timeit('', number=1)
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.8/timeit.py", line 232, in timeit
return Timer(stmt, setup, timer, globals).timeit(number)
  File "/usr/lib/python3.8/timeit.py", line 131, in __init__
code = compile(src, dummy_src_name, "exec")
  File "", line 7
_t1 = _timer()
^
IndentationError: expected an indented block
>>>
```

--
messages: 369208
nosy: anthonypjshaw, edison.abahurire
priority: normal
severity: normal
status: open
title: supplying an empty string to timeit causes an IndentationError

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

def valid_key(fpath):
try:
with open(fpath, "rb") as f:
return f.read(4) == b"TZif"
except Exception:  # pragma: nocover
return False


Why not only catching "except OSError:" rather than any exception?

Or even "except (FileNotFoundError, PermissionError):" if you want to be 
pedantic :-p

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2020-05-18 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +19474
pull_request: https://github.com/python/cpython/pull/20176

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset c444108dd62672f2b41539bcc8f15da44501f405 by Filipe Laíns in 
branch 'master':
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
https://github.com/python/cpython/commit/c444108dd62672f2b41539bcc8f15da44501f405


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread Filipe Laíns

Change by Filipe Laíns :


--
pull_requests: +19473
pull_request: https://github.com/python/cpython/pull/20164

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-05-18 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread STINNER Victor


New submission from STINNER Victor :

In Modules/_hashopenssl.c:PyInit__hashlib(), PyModule_AddObject() can be 
replaced with PyModule_AddType() to add the 3 types: this function does the 
Py_INCREF for us, which reduces errors if the function fails.

The results of other PyModule_AddObject() calls should also be checked to 
handle errors.

The following _hashlibstate_global macro is no longer used:

#define _hashlibstate_global ((_hashlibstate 
*)PyModule_GetState(PyState_FindModule(&_hashlibmodule)))

EVPnew() got a module parameter, so it doesn't need _hashlibstate_global 
anymore.

Dong-hee, Hai: Maybe it's time to convert this module to PEP 489 multiphase 
initialization?

Hai: do you want to work on a PR?

--

Question: do EVPobject and HMACobject rely on a global state somewhere in 
OpenSSL? Or is it safe to use them in subinterpreters, with multiple instances 
of _hashlib?

EVPobject and HMACobject have "lock" member.

Even if converting the module to PEP 489 is not enough to make it compatible 
with subinterpreters (I don't know, maybe it's enought, see my question), it 
should help for that :-)

Note: the current code is already quite clean, I like it :-)

cc Petr & Christian.

--
components: Library (Lib)
messages: 369211
nosy: christian.heimes, corona10, petr.viktorin, shihai1991, vstinner
priority: normal
severity: normal
status: open
title: Convert _hashlib to PEP 489 multiphase initialization
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

> This is only an issue for broken symlinks, right? (More precisely, those that 
> cannot be resolved, which may include very long paths on some machines.) 

Unfortunately, no. In the original post above, you can see temp/bar points to 
C:\Users\jaraco\temp\foo, which exists. Yet os.readlink returns 
\\?\C:\Users\jaraco\temp\foo. That's the root cause of the issue with copytree.

> what do you need to be able to test against prerelease? It would be nice to 
> find these impacts during alpha/beta rather than three bug fix releases later.

I need a mechanically-reproducible technique to test dozens of projects against 
pre-releases on Windows. Historically, I've had Travis as my prime CI 
(non-existent Windows support) and AppVeyor for select projects that demanded 
some Windows testing. I've recently started migrating to Azure Pipelines, which 
has nice multi-platform support and that's why I've started catching these 
issues. Presumably, I'll be able to add a pre-release of Python 3.9 to the 
pipelines config at jaraco/skeleton - that will ensure that all projects I 
maintain going forward will get tested on the pre-release.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes


Change by Christian Heimes :


--
assignee:  -> christian.heimes
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:


New changeset 0da546665075aefbb476e192ed64122d340164f4 by Ned Deily in branch 
'master':
bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176)
https://github.com/python/cpython/commit/0da546665075aefbb476e192ed64122d340164f4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38112] Compileall improvements

2020-05-18 Thread Lumír Balhar

Change by Lumír Balhar :


--
nosy: +frenzy
nosy_count: 4.0 -> 5.0
pull_requests: +19475
pull_request: https://github.com/python/cpython/pull/20174

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40275] test.support has way too many imports

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

Serhiy:
> I think that there is no much benefit in avoiding to import modules which are 
> imported in libregrtest.

Well, we should also enhance libregrtest in this case :-)

> You should minimize import of test.libregrtest + test.support, not just 
> test.support.

Good idea.

> Also, some modules, like bz2 are too small and do not have much dependencies. 
> You will not save much on importing them lazily. On other hand, lazy import 
> have its cost, so the real benefit will be even smaller.

FYI bz2 and lzma can me some headaches when experimenting isolated 
subinterpreters while I was testing modules which don't use them. bz2 and lzma 
are not compatible with subintepreters and so caused crashes.

IMO in an ideal world, running test_xxx should start with an empty sys.modules 
and only imports what it needs. The problem are also side effects, not only 
memory footprint.

I created this issue because test_threading crashed on AIX because of a bug at 
fork in the logging module. Except that test_threading and threading modules 
*don't* importing logging. It's non obvious to get a crash in logging while 
testing the threading module. For me, these are tests are no longer "unit" 
tests, but more "integration" tests if we test indirectly "half of the stdlib" 
(I exaggerate on purpose ;-)).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes


Christian Heimes  added the comment:

OpenSSL's EVP and HMAC API depend on global state in OpenSSL, but they are 
still safe to be used in subinterpreters. OpenSSL ensures that the internal 
data structures are initialized in a thread-safe manner. The internal state 
cannot leak across subinterpreters. OpenSSL has process global configuration, 
but Python's ssl and hashlib module do not expose these features.

The Python wrappers EVPobject, EVPXOFobject and HMACobject are **not** safe to 
be transfered across subinterpreters. The lock shouldn't matter here. It's used 
to release the GIL and block other threads from feeding into an object at the 
same time.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38112] Compileall improvements

2020-05-18 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset adc72bb2f9a5d8b548ee04405e19a184e5699e8d by Lumír 'Frenzy' Balhar 
in branch 'master':
bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt 
levels (GH-20174)
https://github.com/python/cpython/commit/adc72bb2f9a5d8b548ee04405e19a184e5699e8d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40246] Different error messages for same error - invalid string prefixes

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

"make install" ignores compileall errors no? If I recall correctly, only an 
error is logged into stdlib, "make install" doesn't fail.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:

Thanks everyone for their comments and reviews and a very big thank you to 
Jeffrey for working through the details and providing a solid PR. The change 
will appear in the 3.9.0b1 pre-release.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: Build Problem with GCC + Macintosh OS X 10.11 El Capitain -> _scproxy 
and Python Launcher fail to build wtih GNU gcc on macOS 10.13+
versions: +Python 3.9 -Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2020-05-18 Thread Paul Ganssle


Paul Ganssle  added the comment:

> Should we fix utcfromtimestamp() internally to avoid the OverflowError, 
> rather than only fixing the http.cookiejar module?

I'm not a big fan of utcfromtimestamp (as you can see here: 
https://blog.ganssle.io/articles/2019/11/utcnow.html ), but it seems we do have 
the same issue in `datetime.datetime.fromtimestamp`, so I think maybe we should 
spawn a new issue to at least look into the possibility?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-18 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +19476
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20177

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I wrote PR 20177 to avoid the netdb_lock in socket.getaddrinfo(), but the lock 
is still used on platforms which don't provide gethostbyname_r():

#if !defined(HAVE_GETHOSTBYNAME_R) && !defined(MS_WINDOWS)
# define USE_GETHOSTBYNAME_LOCK
#endif

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19477
pull_request: https://github.com/python/cpython/pull/20178

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19478
pull_request: https://github.com/python/cpython/pull/20179

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +19479
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20180

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

> The Python wrappers EVPobject, EVPXOFobject and HMACobject are **not** safe 
> to be transfered across subinterpreters.

No Python object must be shared between two interpreter and no object should be 
transfered form one interpreter to another. That's not specific to _hashlib, 
but a general guidelines for subinterpreters ;-)

Converting _hashlib should allow to have one _hashlib module instance per 
interpreter ;-) (Rather than sharing the same instance between all 
interpereters which caused so many issues!)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39162] setup.py not picking up tkinter headers from non-system macOS Tcl and Tk frameworks

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report and the PR. Yes, detect_tkinter_darwin() had a number of 
problems due mainly to how Apple has first deprecated and more recently removed 
the option to have header files installed in the running system. Plus some 
nasty quirks of how the Tcl and Tk frameworks are built make it difficult to 
use them without hacks for embedding while supporting Python build options.  
Your analysis was helpful. In the end, I tried to fix this and some more 
general problems in detect_tkinter_darwin() with PR 20171 for Issue34956 which 
will be available in 3.9.0b1.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> _tkinter built on macOS 10.14 does not link to Tcl and Tk in 
/Library/Frameworks
title: setup.py not picking up tkinter headers -> setup.py not picking up 
tkinter headers from non-system macOS Tcl and Tk frameworks
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread anthony shaw


Change by anthony shaw :


--
nosy: +anthonypjshaw
nosy_count: 4.0 -> 5.0
pull_requests: +19480
pull_request: https://github.com/python/cpython/pull/17753

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40600] Add option to disallow > 1 instance of an extension module

2020-05-18 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Subinterpreters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily


Change by Ned Deily :


--
pull_requests:  -19480

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-05-18 Thread Felipe Rodrigues


New submission from Felipe Rodrigues :

Hi,

Can you elaborate on this?

Thanks!

--
nosy: +fbidu

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

This change broke the Python compilation on FreeBSD:
https://buildbot.python.org/all/#/builders/152/builds/855

Either revert it (and re-apply a fixed change after beta1), or fix it. I 
suggest to block Python 3.9 beta1 release until it's resolved. I consider that 
FreeBSD is a supported platform.

--
nosy: +vstinner
priority: normal -> release blocker
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington


miss-islington  added the comment:


New changeset 9ecf25e04cb0b97f7f9a12f50b87ac4fad5dc3f5 by Miss Islington (bot) 
in branch '3.7':
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
https://github.com/python/cpython/commit/9ecf25e04cb0b97f7f9a12f50b87ac4fad5dc3f5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:

Sorry about that! Looking now.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

> The solution is incomplete because it fixes just this single security issue, 
> not the inherent fragility of this file. 

If you want to propose a change to make the file "less fragile", please open a 
*new* separated issue.

The issue is about an exact vulnerability, the "local_file://" scheme, which 
has been fixed. I close again the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread hai shi


hai shi  added the comment:

> Hai: do you want to work on a PR?

Oh, Looks like I am late, Christian have crated a PR ;)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

The initial issue (be able to make a GitHub action job mandatory) is now fixed, 
I close the issue.

Making Windows x64 job mandatory is now tracked at: 
https://github.com/python/core-workflow/issues/368

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington


miss-islington  added the comment:


New changeset d8cbfa2f2a9a972caf9cbc2b1e2565c456e0 by Miss Islington (bot) 
in branch '3.8':
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
https://github.com/python/cpython/commit/d8cbfa2f2a9a972caf9cbc2b1e2565c456e0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

Why not just install it?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

Ah right, it's realpath() that has the final step to remove an unnecessary \\?\ 
prefix.

Firstly, I still think fixing copy is more important and more valuable.

Given the possibility that the print name won't point to the real target, I'd 
much prefer to keep reading the substitute name. In this case, this looks like 
a change between versions (3.7->3.8) rather than a bug (assuming the symlink 
works, which hasn't been mentioned yet), and while it does result in needing a 
test update in Path, I don't think it makes sense to push that fix upstream. 
Changing readlink to always return the correct path was deliberate.

Unless you're specifically testing single steps through symlink chains, you 
probably want to just use realpath anyway. Presumably you weren't using that 
beforehand because it didn't work, but the same fix fixed that, and we do extra 
work to retain the existing behaviour of the higher-level function (including 
rejecting junctions, unlike readlink).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

> Presumably, I'll be able to add a pre-release of Python 3.9 to the pipelines 
> config at jaraco/skeleton - that will ensure that all projects I maintain 
> going forward will get tested on the pre-release.

I don't have a straightforward task for it, but these should give you a Python 
3.9 prerelease version (or any version you like if you replace "-Prerelease" 
with "-Version x.y.z", IIRC):

nuget install python -Prerelease -OutputDirectory . -ExcludeVersion
.\python\tools\python.exe ...

nuget install pythonx86 -Prerelease -OutputDirectory . -ExcludeVersion
.\pythonx86\tools\python.exe ...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Because `make time` and all the related Makefile targets use the local built 
Python in the cpython parent directory. In order to install it, one would have 
to go through various steps, like installing openssl, configuring python with 
ssl support, building and installing python, creating a venv etc. Since it's 
more time-consuming that just running `make time` and since it's only needed 
for something that in most cases is not the most important thing, I think we 
can just go ahead and make it optional.

Is there a downside to this change I'm missing?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

Unfortunately, I do not understand enough about how Hypothes* works to be 
helpful here, other than by offering encouragement. (And please don't try to 
educate me. I have too many other things. Sorry.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

Soon nobody will remember to look at the memory stats at all. But I will review.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

Doc/Makefile uses a virtual environment to install Sphinx and Sphinx 
extensions. I suggest to do something similar.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19481
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/20177

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Eryk Sun


Eryk Sun  added the comment:

> these may overtake people's existing installs and replace them 
> with something more clever (this annoys people)

In particular, installing the launchers to %SystemRoot% means that in some 
contexts, such as the search path that CreateProcessW and SearchPathW use, the 
launcher commands will take precedence over %PATH%.

> shebang lines will start being noticed
> "python3.exe" could launch Python 2, but I'm not too concerned by this

The launcher can get the name of the current process to restrict its behavior. 
For "python3.exe", run as "py.exe -3", which is subject to PY_PYTHON3. For 
"python2.exe", run as "py.exe -2", which is subject to PY_PYTHON2. For 
"python.exe", run as "py.exe", which is subject to shebangs, VIRTUAL_ENV, and 
PY_PYTHON.

Since the loader doesn't resolve symbolic links, these extra names can actually 
just be symlinks if the filesystem supports them and the installer is allowed 
to create them. If installing the launchers to %SystemRoot%, the filesystem 
must be NTFS and we must have admin access, so symlinks should be supported.

> these add an extra process in the chain, which can break callers 
> who need the process ID/handle

The launcher could facilitate finding the image path when programs need to 
spawn the interpreter directly as a child process. Maybe when running as 
"python2.exe" and "python3.exe", the launcher's -0p option could print just the 
image path that it would execute instead of the list of installed versions.

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney


Change by Kevin Mooney :


--
keywords: +patch
nosy: +Kevin Mooney
nosy_count: 5.0 -> 6.0
pull_requests: +19482
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20181

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> Doc/Makefile uses a virtual environment to install Sphinx and Sphinx 
> extensions. I suggest to do something similar.

I like this approach. Let me try it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +19483
pull_request: https://github.com/python/cpython/pull/20182

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Eryk Sun


Eryk Sun  added the comment:

> For "python.exe", run as "py.exe", which is subject to shebangs,
> VIRTUAL_ENV, and PY_PYTHON.

Maybe in the "python[w].exe" case, it should skip shebang processing. That way 
only py[w].exe would handle shebangs, such as for the template command that 
gets installed as the default .py[w] file association: C:\Windows\py[w].exe 
"%1" %*.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-18 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Is this different than what you would expect?

Supplying garbage to timeit will result in an error:

>>> from timeit import timeit
>>> timeit('weofinwofinwe')
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/timeit.py", 
line 232, in timeit
return Timer(stmt, setup, timer, globals).timeit(number)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/timeit.py", 
line 176, in timeit
timing = self.inner(it, self.timer)
  File "", line 6, in inner
NameError: name 'weofinwofinwe' is not defined


If you want to time an empty loop, you can use:

>>> timeit('pass', number=1)
0.000104323021822

--
nosy: +remi.lapeyre

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

IMO a better approach would be to add "cpython_" prefix to all header files 
living in Include/cpython/. It would prevent bad surprises.

I tried to avoid adding a prefix when I added Include/internal/ but I got many 
practical issues. Depending where the #include is done, I got different errors. 
Adding a prefix prevents this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread Łukasz Langa

Łukasz Langa  added the comment:

This goes into 3.9, but please settle on a final design long before October. 
Scratch that, please do it ideally before beta 2.

I'm downgrading from release blocker, exception handling can be discussed and 
changed after beta 1 as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread Łukasz Langa

Change by Łukasz Langa :


--
priority: release blocker -> deferred blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-05-18 Thread Łukasz Langa

Łukasz Langa  added the comment:

Should this still be open?

--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:

I believe the Windows builds are still using 1.1.1f.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:

I'm not sure yet exactly what the problem is but it's almost certainly a 
difference between GNU make and BSD make and something that needs to be checked 
on FreeBSD. With the 3.9.0b1 cutoff coming very soon, I likely won't be able to 
test on FreeBSD before then so I have reverted the change for now. Sigh!

--
priority: release blocker -> high

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily


Ned Deily  added the comment:


New changeset 951ab58024de9b5a21f0b979cdbea51e1049d781 by Ned Deily in branch 
'master':
Revert "bpo-26317: Support OBJC and OBJCXX configure command line variables 
(GH-20176)" (GH-20182)
https://github.com/python/cpython/commit/951ab58024de9b5a21f0b979cdbea51e1049d781


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I tested manually and I confirm that FreeBSD builds again, thanks :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I don't think that such bug should block Python 3.9 beta1 (I'm talking about 
the "release blocker" priority). There is still time before 3.9 final to fix it.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-18 Thread STINNER Victor


Change by STINNER Victor :


--
title: [typing] PEP 563: Postponed evaluation of annotations: enable it by 
default before Python 4.0 -> [typing] PEP 563: Postponed evaluation of 
annotations: enable it by default in Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I didn't see this race condition recently, I just close the issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38798] test_asyncio.test_sendfile.test_sendfile_ssl_pre_and_post_data(): Overlapped still has pending operation at deallocation error on AMD64 Windows8.1 Non-Debug 3.x

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I didn't see this race condition recently, I just close the issue as out of 
date.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I'm not sure why, but test_ssl does not pass on FreeBSD and Fedora, so I close 
the issue.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread Christian Heimes


Christian Heimes  added the comment:

Please don't close tickets assigned to an owner without consent.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39983] test.regrtest: test marked as failed (env changed), but no warning: test_multiprocessing_forkserver

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

"Warning -- Unraisable exception" is now logged, but the exceptions is not when 
sys.stderr is redirected. That's better than nothing, so I close the issue.

Moreover, test_multiprocessing_forkserver has been fixed.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Zachary Ware


Zachary Ware  added the comment:

I'm in favor of this.

I especially want this with the self-name-checking that Eryk mentioned, and 
even more if each installed Python adds its own symlink to `py.exe` with its 
own version (i.e. the Python 3.9 installer adds `python3.9.exe -> py.exe`).  
I'm good with the base change even without these enhancements, though.

(Maybe at some point in the future we can do something crazy like have the 
launcher just load the appropriate python3X.dll and run as the python process 
itself, but that is its own can of worms and should not stand in the way of 
this improvement :))

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40003] test.regrtest: add an option to run test.bisect_cmd on failed tests, use it on Refleaks buildbots

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

While it would be nice, I'm not sure if it's a good idea to make buildbot jobs 
even longer. I wrote this issue to investigate an issue that I fixed in the 
meanwhile, so I close the issue.

--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +19484
pull_request: https://github.com/python/cpython/pull/20183

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

The self-name checking is not something I'm volunteering to write, btw, nor any 
new options. But feel free to put those up as separate issues.

I'm also not getting into symbolic links here - WiX doesn't support them 
natively, and custom actions are the source of 99% of issues, so I don't want 
to add one. It'll be multiple complete copies of py.exe (which the installer 
will compress).

And I wasn't even going to bother with pythonw.exe. Literally nobody has ever 
complained about those.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:

Oh, and there certainly won't be a python2.exe :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40410] test_multiprocessing_forktest_terminate() timed out after 15 min on s390x Fedora LTO + PGO 3.x

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

I didn't see the failure recently, I close the issue as out of date.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40439] Error in an external reference

2020-05-18 Thread Matteo Bertucci


Change by Matteo Bertucci :


--
keywords: +patch
nosy: +Akarys
nosy_count: 4.0 -> 5.0
pull_requests: +19485
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20184

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread STINNER Victor


STINNER Victor  added the comment:

> Please don't close tickets assigned to an owner without consent.

Can you please elaborate why you reopened the issue?

The initial "test_ssl: test_min_max_version() fails on FreeBSD and Fedora" 
issue is now fixed.

For example, test_ssl pass on AMD64 Fedora Stable LTO 3.x buildbot and it no 
longer uses the OPENSSL_CONF=/non-existing-file workaround.
https://buildbot.python.org/all/#/builders/112/builds/850
"ssl.OPENSSL_VERSION: OpenSSL 1.1.1g FIPS  21 Apr 2020"

Same for AMD64 FreeBSD Shared 3.x:
https://buildbot.python.org/all/#/builders/152/builds/852
"ssl.OPENSSL_VERSION: OpenSSL 1.1.1g  21 Apr 2020"

If there are remaining new issues, I would prefer to open new issues.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney


Kevin Mooney  added the comment:

Ok, I think I see. Is there a concern that removing the cpython/ prefix might 
lead to the wrong initconfig.h being included?

So your proposal is all includes in the root will do 

#include "cpython/cpython_foo.h"

And any includes done in the cpython dir will be

#include "cpython_foo.h"

Currently there's only one file in the cpython dir that includes another, which 
would explain why this has never come up before.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 7f21c9ac872acc2114aee3313d132b016550ff42 by Minmin Gong in branch 
'master':
bpo-40653: Move _dirnameW out of #ifdef HAVE_SYMLINK/#endif (GH-20144)
https://github.com/python/cpython/commit/7f21c9ac872acc2114aee3313d132b016550ff42


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +19486
pull_request: https://github.com/python/cpython/pull/20185

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

Okay, deferring the blocker. But I'll still land Lysandros' fix ASAP.

--
priority: release blocker -> deferred blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19487
pull_request: https://github.com/python/cpython/pull/20186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   >