[issue39927] IDLE.app fails on macOS 10.15 if denied access to Documents

2020-03-11 Thread Ned Deily


Ned Deily  added the comment:

Actually, IDLE *does* call os.chdir set the working directory when launched 
from IDLE.app on macOS:

https://github.com/python/cpython/blob/master/Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py#L8

While it's not in the idlelib directory, it's very much part of IDLE :)

--
assignee:  -> terry.reedy
components: +IDLE -Installation

___
Python tracker 

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



[issue39927] IDLE.app fails on macOS 10.15 if denied access to Documents

2020-03-11 Thread Ned Deily


Change by Ned Deily :


--
assignee: terry.reedy -> 

___
Python tracker 

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



[issue39929] dataclasses.asdict will mangle collection.Counter instances

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eric.smith

___
Python tracker 

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



[issue39892] Enable DeprecationWarnings by default when not explicit in unittest.main()

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue39925] `pathlib.Path.link_to()` has the wrong argument order

2020-03-11 Thread Eric V. Smith


Eric V. Smith  added the comment:

Agreed it's a duplicate, so I'm closing this. For any further discussion, 
please use issue39291, or better yet, do as it suggests and discuss this on 
python-dev.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> "pathlib.Path.link_to()" and "pathlib.Path.symlink_to()" have 
reversed usage

___
Python tracker 

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



[issue39911] "AMD64 Windows7 SP1 3.x" buildbot doesn't build anymore

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

> Well, it only doesn't build on 3.9+ (master) due to not being supported going 
> forward.  The *buildmaster* needs to be fixed to stop submitting those jobs 
> to unsupported platforms.

Ok, done:
https://github.com/python/buildmaster-config/commit/c7fe98a920affcc025019b5e4f4e60e11bf622f3

I close the issue.

--
resolution:  -> fixed
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



[issue36144] Dictionary union. (PEP 584)

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Once this issue will be done, would you mind to update PEP 584? Currently, it 
only says "This PEP proposes adding merge (|) and update (|=) operators to the 
built-in dict class." It doesn't mention that other types like OrderedDict, 
MappingProxy or ChainMap are updated as well.

--
nosy: +vstinner

___
Python tracker 

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



[issue24871] freeze.py doesn't work on x86_64 Linux out of the box

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

bpo-1294959 has been fixed by commit 8510f430781118d9b603c3a2f06945d6ebc5fe42: 
Python 3.9 now has sys.platlibdir which will be equal to "lib64" on Fedora and 
SuSE on 64-bit systems.

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Russell Keith-Magee


New submission from Russell Keith-Magee :

The Windows python-3.7.7-embed-amd64.zip installer (released Mar 11 2020) 
appears to be missing vcruntime140.dll. As a result, running the python.exe or 
pythonw.exe included in that installer fails with a system error notifying you 
of the missing DLL.

The 3.7.6 embedded install included this file.

--
components: Build, Windows
messages: 363891
nosy: freakboy3742, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Embedded installer for Python 3.7.7 missing vcruntime140.dll
versions: Python 3.7

___
Python tracker 

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



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread agmt


New submission from agmt :

Attached test works correctly on linux (3.7, 3.8) and mac (only 3.7).
Mac python3.8 falls with exception:

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/pool.py",
 line 125, in worker
result = (True, func(*args, **kwds))
  File "test.py", line 8, in work
print(F"Work={arg} args={args}")
NameError: name 'args' is not defined
"""

--
components: Library (Lib), macOS
files: test.py
messages: 363892
nosy: agmt, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Global variables are not accessible from child processes 
(multiprocessing.Pool)
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48968/test.py

___
Python tracker 

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



[issue39929] dataclasses.asdict will mangle collection.Counter instances

2020-03-11 Thread Eric V. Smith


Eric V. Smith  added the comment:

The asdict API was a mistake, because it's not possible for it to know how to 
create all possible sub-objects. I can't decide what to do about it. I might 
just "abandon it in place", by documenting its problems and suggesting it not 
be used.

I should research what attrs does.

--
assignee:  -> eric.smith

___
Python tracker 

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



[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

I chose to exclude setup.py changes from my commit 
8510f430781118d9b603c3a2f06945d6ebc5fe42, whereas the Fedora downstream patch 
has a few changes:
https://src.fedoraproject.org/rpms/python39/blob/master/f/00102-lib64.patch

See also bpo-14791: "setup.py only adds /prefix/lib, not /prefix/lib64".

diff --git a/setup.py b/setup.py
index 51e67fe4a5..bafa0bf99a 100644
--- a/setup.py
+++ b/setup.py
@@ -649,7 +649,7 @@ class PyBuildExt(build_ext):
 # directories (i.e. '.' and 'Include') must be first.  See issue
 # 10520.
 if not CROSS_COMPILING:
-add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
+add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib64')
 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
 # only change this for cross builds for 3.3, issues on Mageia
 if CROSS_COMPILING:
@@ -955,11 +955,11 @@ class PyBuildExt(build_ext):
 elif curses_library:
 readline_libs.append(curses_library)
 elif self.compiler.find_library_file(self.lib_dirs +
- ['/usr/lib/termcap'],
+ ['/usr/lib64/termcap'],
  'termcap'):
 readline_libs.append('termcap')
 self.add(Extension('readline', ['readline.c'],
-   library_dirs=['/usr/lib/termcap'],
+   library_dirs=['/usr/lib64/termcap'],
extra_link_args=readline_extra_link_args,
libraries=readline_libs))
 else:

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Russell Keith-Magee


Russell Keith-Magee  added the comment:

It appears the 3.7.7RC1 embedded installer was also missing the file.

--

___
Python tracker 

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



[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Another related issue is bpo-34058: "Default Python 3.7 install broken on 
openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to 
$PYTHONHOME/lib/python3.7/lib-dynload/".

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:

Thanks for the heads-up, I'll take a look.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

bpo-1294959 has been fixed by commit 8510f430781118d9b603c3a2f06945d6ebc5fe42, 
but this issue is about "./configure with no parameters".

This issue seems to be about OpenSuSE downstream patches: "just compiling and 
installing from source on OpenSUSE 42.3."

I found multiple similar old issues.

bpo-15631: "Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders", 
"error: ImportError: No module named 'atexit'". The reporter used downstream 
patch: "I applied the OpenSUSE patch".

=> closed as a duplicate of bpo-1294959

* bpo-18092: "Python 2.7.5 installation broken on OpenSuse 12.2", error: 
"ImportError: No module named _collections". The reporter never explained how 
Python was configured: "Please provide exactly what ./configure options you 
used to build Python and any "make install" options."

=> closed as a duplicate of bpo-1294959

* bpo-30633: "Python 3.6.1 installation issues on OpenSuse 42.1: 
ModuleNotFoundError: No module named 'encodings'", error: "Fatal Python error: 
Py_Initialize: Unable to get the locale encoding". Same reporter name than 
bpo-18092 "Andreas Jung", but different bugs.python.org login name ("zopyx" vs 
"Andreas.Jung". The reporter says that he used "the standard ./configure 
--prefix=... --enable-optimizations" but not if he applied any OpenSuSE 
downstream patch.

=> closed as out of date in 2019 after 2 years of inactivity

--

___
Python tracker 

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



[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

> Another related issue is bpo-34058: "Default Python 3.7 install broken on 
> openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to 
> $PYTHONHOME/lib/python3.7/lib-dynload/".

I marked bpo-34058 as a duplicate of this issue.

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

This issuse is now 2 years old and it doesn't have a clear description. It 
started with "just compiling and installing from source on OpenSUSE 42.3", then 
switched to "I got the source directly from www.python.org" to finish with "I 
also have the same problem (...) on the latest version of CentOS 7".

I close the issue.

If someone wants to reopen the issue, please clearly explains:

* how you get Python
* did you apply any patch on it
* how did you configure Python? (configure command)
* how did you built Python?
* how did you install Python?
* how do you run Python?
* what is your operating system?
* what is your locale (LC_ALL, LC_CTYPE and LANG environment variable)?
* do you have any environment variable with a name starting with PYTHON?

So far, we only got unclear bug reports with partial information and we could 
only guess what the reporter did.

Since this issue started with OpenSuSE downstream patches, I mark also this 
issue as a duplicate of bpo-1294959.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

___
Python tracker 

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



[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18268
pull_request: https://github.com/python/cpython/pull/18917

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-11 Thread Christian Heimes


Change by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread Thomas Grainger


Thomas Grainger  added the comment:

yeah this is normal. on Python 3.8 mac multiprocessing switched to spawn

you have to use 
https://docs.python.org/3/library/multiprocessing.shared_memory.html to share 
content between processes or pass it to be pickled in the args of imap_unordered

https://bugs.python.org/issue33725

--
nosy: +graingert

___
Python tracker 

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



[issue39326] Python-3.8.1 "test_importlib" failed

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
status: open -> pending

___
Python tracker 

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



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread agmt


agmt  added the comment:

Shared memory/pickle cannot send file descriptors

--

___
Python tracker 

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



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

> Shared memory/pickle cannot send file descriptors

FYI Python 3.9 got new socket.send_fds() and socket.recv_fds() functions :-)
https://docs.python.org/dev/library/socket.html#socket.socket.send_fds

--
nosy: +vstinner

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:


New changeset 2dd41740c97bd77695ddcc590caa7f53e76dc35a by Steve Dower in branch 
'master':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages 
(GH-18918)
https://github.com/python/cpython/commit/2dd41740c97bd77695ddcc590caa7f53e76dc35a


--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +18271
pull_request: https://github.com/python/cpython/pull/18920

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


miss-islington  added the comment:


New changeset d01c5507e5f9bd5072d94f007d29b37f41c6e6b5 by Miss Islington (bot) 
in branch '3.8':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages 
(GH-18918)
https://github.com/python/cpython/commit/d01c5507e5f9bd5072d94f007d29b37f41c6e6b5


--

___
Python tracker 

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



[issue39926] unicodedata for Unicode 13.0.0

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Well done. I got 75 emails from buildbots :-D

--
nosy: +vstinner

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

AMD64 Windows10 3.8 build failed with "(...)\pyproject.props(221,5): error : 
vcruntime14*.dll not found (...)":
https://buildbot.python.org/all/#builders/159/builds/190

--
nosy: +vstinner

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Same error on AMD64 Windows10 3.x:
https://buildbot.python.org/all/#builders/129/builds/513

--

___
Python tracker 

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



[issue39932] test_multiprocessing_fork leaked [0, 2, 0] file descriptors on aarch64 RHEL8 Refleaks 3.7 buildbot

2020-03-11 Thread STINNER Victor


New submission from STINNER Victor :

aarch64 RHEL8 Refleaks 3.7:
https://buildbot.python.org/all/#/builders/620/builds/20

test_multiprocessing_fork leaked [0, 2, 0] file descriptors, sum=2

0:40:22 load avg: 0.93 Re-running failed tests in verbose mode
0:40:22 load avg: 0.93 Re-running test_multiprocessing_fork in verbose mode
test_multiprocessing_fork leaked [2, 0, 0] file descriptors, sum=2

--
components: Tests
messages: 363909
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_multiprocessing_fork leaked [0, 2, 0] file descriptors on aarch64 
RHEL8 Refleaks 3.7 buildbot
versions: Python 3.7

___
Python tracker 

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



[issue39933] test_gdb fails on AMD64 FreeBSD Shared 3.x: ptrace: Operation not permitted

2020-03-11 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#/builders/152/builds/384

Example:

==
FAIL: test_pycfunction (test.test_gdb.PyBtTests) 
[_testcapi.MethClass().meth_fastcall_keywords]
Verify that "py-bt" displays invocations of PyCFunction instances
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_gdb.py", 
line 896, in test_pycfunction
self.assertIn(f'

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



[issue39933] test_gdb fails on AMD64 FreeBSD Shared 3.x: ptrace: Operation not permitted

2020-03-11 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +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



[issue39933] test_gdb fails on AMD64 FreeBSD Shared 3.x: ptrace: Operation not permitted

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Same error on 3.7 and 3.8.

AMD64 FreeBSD Shared 3.7:
https://buildbot.python.org/all/#/builders/218/builds/91

--

___
Python tracker 

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



[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

If you use a module subclass that needs some additional C-level infrastructure, 
it would be more appropriate to override tp_clear/tp_free directly.

IMO limiting m_clear/m_free to work just with the module state won't hurt. But 
it is an API change.

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:


New changeset eede148296bf3b4578b92ed6a07f2733a0f1c341 by Steve Dower in branch 
'3.7':
bpo-39930: Ensure vcruntime140.dll is included in all Windows packages 
(GH-18918)
https://github.com/python/cpython/commit/eede148296bf3b4578b92ed6a07f2733a0f1c341


--

___
Python tracker 

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



[issue39934] Fatal Python error "XXX block stack overflow" when exception stacks >10

2020-03-11 Thread myzhang1029


New submission from myzhang1029 :

I apologize for describing this issue badly, but I'll try anyway.
The code to demonstrate the issue is attached, so it might be better to read 
that instead.
I noticed that when more than 10 exceptions are raised sequentially (i.e. one 
from another or one during the handling of another), the interpreter crashes 
saying "Fatal Python error: XXX block stack overflow".
This happens in python 3.7, 3.8 and development(git 39c3493) versions, but not 
in python2.7. Using ipython also fixes this issue.
I know this case is rare, but the maximum number of recursions is more than 
2000, and the maximum number of statically nested blocks sepcified in 
frameobject.c is 20, so I'm pretty sure this isn't intended behavior.

--
components: Interpreter Core
files: exception_nest.py
messages: 363914
nosy: myzhang1029
priority: normal
severity: normal
status: open
title: Fatal Python error "XXX block stack overflow" when exception stacks >10
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48969/exception_nest.py

___
Python tracker 

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



[issue39761] Python 3.9.0a4 fails to build when configured with --with-dtrace

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 3c97e1e457033bbb8bbe0b7198bd13fc794a12b0 by Petr Viktorin in 
branch 'master':
bpo-39761: Fix dtrace build with empty $DFLAGS (GH-18766)
https://github.com/python/cpython/commit/3c97e1e457033bbb8bbe0b7198bd13fc794a12b0


--

___
Python tracker 

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



[issue38960] DTrace FreeBSD build fix

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 3c97e1e457033bbb8bbe0b7198bd13fc794a12b0 by Petr Viktorin in 
branch 'master':
bpo-39761: Fix dtrace build with empty $DFLAGS (GH-18766)
https://github.com/python/cpython/commit/3c97e1e457033bbb8bbe0b7198bd13fc794a12b0


--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:

Ah, both of those buildbots are running Build Tools. Apparently there's a 
different layout for those.

Note that the devguide provides instructions that can't be followed with the 
Build Tools - you need VS Community (at least): 
https://devguide.python.org/setup/#windows

Hopefully by tonight I'll have proper work access so I can figure out why Build 
Tools don't install everything. It may just be that a configuration option was 
missed, and so the buildbot owners will have to modify their install.

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Other examples of failures.

AMD64 Windows8.1 Non-Debug 3.x:
https://buildbot.python.org/all/#/builders/9/builds/473

 
D:\buildarea\3.x.ware-win81-release.nondebug\build\PCbuild\pyproject.props(220,5):
 error : vcruntime14*.dll not found under C:\Program Files (x86)\Microsoft 
Visual Studio\2017\Community\VC\ 
[D:\buildarea\3.x.ware-win81-release.nondebug\build\PCbuild\pythoncore.vcxproj]

AMD64 Windows10 3.7:
https://buildbot.python.org/all/#/builders/65/builds/114

 D:\buildarea\3.7.bolen-windows10\build\PCbuild\pyproject.props(214,5): 
error : vcruntime14*.dll not found under C:\Program Files (x86)\Microsoft 
Visual Studio\2017\BuildTools\VC\ 
[D:\buildarea\3.7.bolen-windows10\build\PCbuild\pythoncore.vcxproj]

--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like many buildbots are broken.

Maybe the "buildbot" label should be tried on PRs changing the Windows build 
system.

x86 Windows7 3.7:
https://buildbot.python.org/all/#/builders/53/builds/109

  
D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\PCbuild\pyproject.props(214,5):
 error : vcruntime14*.dll not found under D:\Program Files\Microsoft Visual 
Studio\2017\BuildTools\VC\ 
[D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\PCbuild\pythoncore.vcxproj]

--

___
Python tracker 

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



[issue39330] Way to build without IDLE

2020-03-11 Thread Steve Dower


Change by Steve Dower :


--
nosy: +steve.dower
nosy_count: 4.0 -> 5.0
pull_requests: +18272
pull_request: https://github.com/python/cpython/pull/18921

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +18273
pull_request: https://github.com/python/cpython/pull/18921

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:

Added a PR to make the failure silent, up until we're building a release 
package. That way it'll only bother me, and I can make sure that I have the 
right VS install.

--

___
Python tracker 

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



[issue39330] Way to build without IDLE

2020-03-11 Thread Steve Dower


Change by Steve Dower :


--
pull_requests:  -18272

___
Python tracker 

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



[issue39330] Way to build without IDLE

2020-03-11 Thread Steve Dower


Change by Steve Dower :


--
nosy:  -steve.dower

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread Steve Dower


Steve Dower  added the comment:


New changeset fde44ae6d08d3df79554155b1cf079e73a8fabdd by Steve Dower in branch 
'master':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/fde44ae6d08d3df79554155b1cf079e73a8fabdd


--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18274
pull_request: https://github.com/python/cpython/pull/18922

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18275
pull_request: https://github.com/python/cpython/pull/18923

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


miss-islington  added the comment:


New changeset 3136f6f287a56afe87c0fd3e70c15c6e53ae0814 by Miss Islington (bot) 
in branch '3.7':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/3136f6f287a56afe87c0fd3e70c15c6e53ae0814


--

___
Python tracker 

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



[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-11 Thread miss-islington


miss-islington  added the comment:


New changeset 17571c54e03822685656dc7d118a5ddcf8cb58af by Miss Islington (bot) 
in branch '3.8':
bpo-39930: Convert error to warning for more silent failure (GH-18921)
https://github.com/python/cpython/commit/17571c54e03822685656dc7d118a5ddcf8cb58af


--

___
Python tracker 

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



[issue39915] await_args_list in AsyncMock always refers to the last awaited call object

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue39932] test_multiprocessing_fork leaked [0, 2, 0] file descriptors on aarch64 RHEL8 Refleaks 3.7 buildbot

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Another example on PPC64LE RHEL8 Refleaks 3.7:
https://buildbot.python.org/all/#/builders/431/builds/29

Warning -- Dangling processes: {}
Warning -- Dangling processes: {}

test_multiprocessing_spawn leaked [0, 2, 0] file descriptors, sum=2

Re-running test_multiprocessing_forkserver in verbose mode

test_multiprocessing_forkserver leaked [2, 0, 0] file descriptors, sum=2

--

___
Python tracker 

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



[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

> our unittest assuming that b'\xf0' should be true when interpreted as a bool 
> is wrong.
> just get rid of that value from the loop in the test?

That could be the proper thing to do, but it does make it easy to invoke C 
undefined behavior from Python code. AFAIK, it would be the only such place in 
the struct module.

So, I'd like to assume and assert/test that sizeof(_Bool) is 1 and the false 
bit-pattern is (char)0, and with that, just use `PyBool_FromLong((_Bool)*p != 
0)`.


> maybe we should be raising an error if the bytes are not a valid platform 
> _Bool pattern?

That's quite hard to test for.
Also, on all current supported platforms, the patterns for bool and char 0 and 
1 are the same. I don't see this being different elsewhere, but if there ever 
is a such a platform, let the test catch the broken assumption.

--

___
Python tracker 

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



[issue2506] Add mechanism to disable optimizations

2020-03-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I will pick this up from Victor's last patch

--
nosy: +pablogsal

___
Python tracker 

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



[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-03-11 Thread Petr Viktorin


Change by Petr Viktorin :


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

___
Python tracker 

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



[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren


Change by Ama Aje My Fren :


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

___
Python tracker 

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



[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-03-11 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

On Wed, Mar 11, 2020, at 07:41, Petr Viktorin wrote:
> 
> > maybe we should be raising an error if the bytes are not a valid platform 
> > _Bool pattern?
> 
> That's quite hard to test for.

How so? We just make the same assumption you're making that true = b'\x01' and 
false = NUL.

--

___
Python tracker 

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



[issue39915] await_args_list in AsyncMock always refers to the last awaited call object

2020-03-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 8.0 -> 9.0
pull_requests: +18279
pull_request: https://github.com/python/cpython/pull/18927

___
Python tracker 

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



[issue39915] await_args_list in AsyncMock always refers to the last awaited call object

2020-03-11 Thread Chris Withers


Chris Withers  added the comment:


New changeset e553f204bf0e39b1d701a364bc71b286acb9433f by Karthikeyan 
Singaravelan in branch 'master':
bpo-39915: Ensure await_args_list is updated according to the order in which 
coroutines were awaited (GH-18924)
https://github.com/python/cpython/commit/e553f204bf0e39b1d701a364bc71b286acb9433f


--

___
Python tracker 

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



[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-11 Thread Petr Viktorin


Change by Petr Viktorin :


--
nosy: +petr.viktorin
nosy_count: 4.0 -> 5.0
pull_requests: +18280
pull_request: https://github.com/python/cpython/pull/18928

___
Python tracker 

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



[issue39926] unicodedata for Unicode 13.0.0

2020-03-11 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

If it makes you feel better, I got them, too.

--

___
Python tracker 

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



[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread Ned Deily


Change by Ned Deily :


--
nosy: +davin, pitrou

___
Python tracker 

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



[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

The memoryview module does the same thing as struct, and its tests expect the 
same behavior as with struct.

So, whatever we do in struct should be also done in memoryview.

--
title: test_struct failure on s390x Fedora Clang buildbot -> struct and 
memoryview tests rely on undefined behavior (as revealed by clang 9)

___
Python tracker 

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



[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

> > > maybe we should be raising an error if the bytes are not a valid platform 
> > > _Bool pattern?
> > 
> > That's quite hard to test for.
> 
> How so? We just make the same assumption you're making that true = b'\x01' 
> and false = NUL.

Right, with that assumption, it's not that hard. And it becomes a test-only 
assumption, which is great!

But, I'm still not convinced this would be a good fix. The current struct 
documentation is consistent with *casting* char to _Bool, rather than doing the 
memcpy and reinterpreting as _Bool. The memcpy makes sense for larget types, 
but not so much for _Bool.

(Certainly, the docs' assertion that "the conversion between C and Python 
values should be obvious given their types" is not true here...)

--

___
Python tracker 

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



[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren


Change by Ama Aje My Fren :


--
pull_requests: +18281
pull_request: https://github.com/python/cpython/pull/18929

___
Python tracker 

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



[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren


Change by Ama Aje My Fren :


--
pull_requests: +18282
pull_request: https://github.com/python/cpython/pull/18930

___
Python tracker 

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



[issue36144] Dictionary union. (PEP 584)

2020-03-11 Thread Brandt Bucher


Change by Brandt Bucher :


--
pull_requests: +18283
pull_request: https://github.com/python/cpython/pull/18931

___
Python tracker 

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



[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Nazime Koussaila Lakehal


New submission from Nazime Koussaila Lakehal :

The parameter help in the method add_parser of _SubParsersAction (that we 
obtain with ArgumentParser.add_subparsers()) Is not documented.

In the documentation we can find:
The add_subparsers() method is normally called with no arguments and returns a 
special action object. This object has a single method, add_parser(), which 
takes a command name and any ArgumentParser constructor arguments, and returns 
an ArgumentParser object that can be modified as usual.

I found the parameter by accident and then I checked in the source code, it's 
unfortunate because the help parameter give really nice output when having sub 
commands.

the parameter 'aliases' is also not documented.

--
assignee: docs@python
components: Documentation
messages: 363932
nosy: Nazime Koussaila Lakehal, docs@python
priority: normal
severity: normal
status: open
title: argparse: help parameter not documented in add_subparsers().add_parser
type: enhancement
versions: Python 2.7, 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



[issue39689] struct and memoryview tests rely on undefined behavior (as revealed by clang 9)

2020-03-11 Thread Petr Viktorin


Petr Viktorin  added the comment:

Oh! I just reead the docs more carefully; they say:

For the '?' format character, the return value is either True or False. When 
packing, the truth value of the argument object is used. Either 0 or 1 in the 
native or standard bool representation will be packed, and any non-zero value 
will be True when unpacking.

--

___
Python tracker 

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



[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +berker.peksag, ghaering

___
Python tracker 

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



[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren


Change by Ama Aje My Fren :


--
pull_requests: +18284
pull_request: https://github.com/python/cpython/pull/18932

___
Python tracker 

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



[issue38076] Make struct module PEP-384 compatible

2020-03-11 Thread Petr Viktorin


Change by Petr Viktorin :


--
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



[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-11 Thread Ama Aje My Fren


Change by Ama Aje My Fren :


--
pull_requests: +18285
pull_request: https://github.com/python/cpython/pull/18933

___
Python tracker 

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



[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +paul.j3, rhettinger
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 704e2065f8b8021a4a6999470fb6ed3453f7679e by Serhiy Storchaka in 
branch 'master':
bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880)
https://github.com/python/cpython/commit/704e2065f8b8021a4a6999470fb6ed3453f7679e


--

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +18286
pull_request: https://github.com/python/cpython/pull/18934

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18287
pull_request: https://github.com/python/cpython/pull/18935

___
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-03-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a158168a787e82c4b7b18f6833153188e93627a5 by Hai Shi in branch 
'master':
bpo-1635741: Port _locale extension module to multiphase initialization (PEP 
489) (GH-18358)
https://github.com/python/cpython/commit/a158168a787e82c4b7b18f6833153188e93627a5


--

___
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-03-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 41fbf865a35d4fb64f047f98dc24690cb0c170fd by Hai Shi in branch 
'master':
bpo-1635741: Port audioop extension module to multiphase initialization (PEP 
489) (GH-18608)
https://github.com/python/cpython/commit/41fbf865a35d4fb64f047f98dc24690cb0c170fd


--

___
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-03-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset aa0c0808efbfdee813d2829e49030c667da44e72 by Hai Shi in branch 
'master':
bpo-1635741: Fix potential refleaks in binascii module (GH-18613)
https://github.com/python/cpython/commit/aa0c0808efbfdee813d2829e49030c667da44e72


--

___
Python tracker 

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



[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

> Proposed PR checking if the module state is NULL:
> 
> * PR 18358: _locale module
> * PR 18608: audioop module
> * PR 18613: binascii

Petr suggested to not hold these PRs with this controversial issue. I agree, so 
I merged these 3 PRs.

--

___
Python tracker 

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



[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Stefan Behnel: as the 3rd author of the PEP 489, what's your call on this issue?

--
nosy: +scoder

___
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-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Hai Shi for your 3 latest PRs, I merged them.

--

___
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-03-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 196f1eb6adcfc6a7239330ef508b8bf9dff9940f by Hai Shi in branch 
'master':
bpo-1635741: Fix refleaks of time module error handling (GH-18486)
https://github.com/python/cpython/commit/196f1eb6adcfc6a7239330ef508b8bf9dff9940f


--

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington


miss-islington  added the comment:


New changeset b1b1d5ff11108620f5bc97976bb889f5cbb24373 by Miss Islington (bot) 
in branch '3.7':
bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880)
https://github.com/python/cpython/commit/b1b1d5ff11108620f5bc97976bb889f5cbb24373


--

___
Python tracker 

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



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread Michael Felt


Michael Felt  added the comment:

This was already confirmed by both bots...

The last bot build that worked (and for both AIX bots) is: 
dffe4c07095e0c693e094d3c140e85a68bd8128e

The first build that failed (for both) is: 
1ec63b62035e73111e204a0e03b83503e1c58f2e

See (pass) https://buildbot.python.org/all/#/builders/119/builds/383 and 
https://buildbot.python.org/all/#/builders/227/builds/369; fail 
https://buildbot.python.org/all/#/builders/119/builds/384
 and https://buildbot.python.org/all/#/builders/227/builds/370

I'll checkout dffe4c07095e0c693e094d3c140e85a68bd8128e to verify it still works 
successfully.

--

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington


miss-islington  added the comment:


New changeset c22879914b03ff2da768e557b5c00e9c8c62c695 by Miss Islington (bot) 
in branch '3.8':
bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880)
https://github.com/python/cpython/commit/c22879914b03ff2da768e557b5c00e9c8c62c695


--

___
Python tracker 

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



[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
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



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread Michael Felt


Michael Felt  added the comment:

After a checkout the build finishes (successfully) with:
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_gdbm _lzma _sqlite3
_tkinter  _uuid readline
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc  atexitpwd
time

running build_scripts
creating build/scripts-3.9
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/pydoc3 -> 
build/scripts-3.9
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/idle3 -> 
build/scripts-3.9
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/2to3 -> 
build/scripts-3.9
changing mode of build/scripts-3.9/pydoc3 from 644 to 755
changing mode of build/scripts-3.9/idle3 from 644 to 755
changing mode of build/scripts-3.9/2to3 from 644 to 755
renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9
renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9
renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9
/opt/bin/install -c -m 644 ../git/python3-3.9/Tools/gdb/libpython.py 
python-gdb.py
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -I/opt/include 
-O2 -qmaxmem=-1 -qarch=pwr5-I../git/python3-3.9/Include/internal -IObjects 
-IInclude -IPython -I. -I../git/python3-3.9/Include -I/opt/include -I/op
t/include  -DPy_BUILD_CORE -o Programs/_testembed.o 
../git/python3-3.9/Programs/_testembed.c
../git/python3-3.9/Modules/makexp_aix Modules/python.exp . libpython3.9.a;  
xlc_r /opt/lib/libintl.a -L/opt/lib -liconv -lexpat /opt/lib/libintl.a 
-L/opt/lib -liconv -lexpat   -Wl,-bE:Modules/python.exp -lld -o 
Programs/_testembed
Programs/_testembed.o libpython3.9.a -lintl -ldl  -lm   -lm
sed -e "s,@EXENAME@,/opt/bin/python3.9," < 
../git/python3-3.9/Misc/python-config.in >python-config.py
LC_ALL=C sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh 
>python-config

root@x065:[/data/prj/python/python3-3.9]./python
Python 3.9.0a4+ (tags/v3.9.0a4-59-gdffe4c0709-dirty:dffe4c0709, Mar 11 2020, 
17:09:06) [C] on aix
Type "help", "copyright", "credits" or "license" for more information.
>>>

--

___
Python tracker 

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



[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor


New submission from STINNER Victor :

The commit 1ec63b62035e73111e204a0e03b83503e1c58f2e of bpo-39763 broke the 
Python compilation on AIX:
https://bugs.python.org/issue39763#msg363749

--

The last successful build was before the commit 
1ec63b62035e73111e204a0e03b83503e1c58f2e:
https://buildbot.python.org/all/#/builders/119/builds/383

_socket compilation:
(...) -o build/lib.aix-7100-9898-32-3.9-pydebug/_socket.so

pythoninfo:

sys.path: [
  '/home/buildbot/buildarea/3.x.aixtools-aix-power6/build',
  
'/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/target/lib/python39.zip',
  '/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/Lib',
  
'/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/build/lib.aix-7100-9898-32-3.9-pydebug',
  '/home/buildbot/.local/lib/python3.9/site-packages']

Both steps use "build/lib.aix-7100-9898-32-3.9-pydebug/" directory.

--

Recent failure:
https://buildbot.python.org/all/#/builders/119/builds/451

_socket compilation:

(...) -o build/lib.aix-7104-1806-32-3.9-pydebug/_socket.so

pythoninfo:

sys.path: [
  '/home/buildbot/buildarea/3.x.aixtools-aix-power6/build',
  
'/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/target/lib/python39.zip',
  '/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/Lib',
  
'/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/build/lib.aix-7100-9898-32-3.9-pydebug',
  '/home/buildbot/.local/lib/python3.9/site-packages']

So the compilation uses "build/lib.aix-7104-1806-32-3.9-pydebug/" directory, 
whereas pythoninfo uses "build/lib.aix-7100-9898-32-3.9-pydebug/" directory.

It can explain why setup.py fails to import _socket later: it was built in a 
different directory.

--

I see that _aix_support._aix_bosmp64() has two code paths depending on the 
subprocess module can be imported:

# subprocess is not necessarily available early in the build process
# if not available, the config_vars are also definitely not available
# supply substitutes to bootstrap the build
try:
import subprocess
_have_subprocess = True
_tmp_bd = get_config_var("AIX_BUILDDATE")
_bgt = get_config_var("BUILD_GNU_TYPE")
except ImportError:  # pragma: no cover
_have_subprocess = False
_tmp_bd = None
_bgt = "powerpc-ibm-aix6.1.7.0"

def _aix_bosmp64():
# type: () -> Tuple[str, int]
"""
Return a Tuple[str, int] e.g., ['7.1.4.34', 1806]
The fileset bos.mp64 is the AIX kernel. It's VRMF and builddate
reflect the current ABI levels of the runtime environment.
"""
if _have_subprocess:
# We expect all AIX systems to have lslpp installed in this location
out = subprocess.check_output(["/usr/bin/lslpp", "-Lqc", "bos.mp64"])
out = out.decode("utf-8").strip().split(":")  # type: ignore
# Use str() and int() to help mypy see types
return str(out[2]), int(out[-1])
else:
from os import uname

osname, host, release, version, machine = uname()
return "{}.{}.0.0".format(version, release), _MISSING_BD

--

_aix_support._aix_bosmp64() is called by _aix_support.aix_platform() which is 
called by get_host_platform() of distutils.util.

Currently, setup.py does:

* Inject _bootsubprocess into sys.modules['subprocess'] so "import subprocess" 
works
* Build all C extensions
* Remove sys.modules['subprocess'], so the next "import subprocess" may or may 
not load Lib/subprocess.py which uses the newly built C extensions like 
_posixsubprocess and select
* Attempt to load C extensions: if an import fails, rename the file: it happens 
for _asyncio on AIX, that's the bug

--
components: Build
messages: 363946
nosy: vstinner
priority: normal
severity: normal
status: open
title: Python fails to build _asyncio on module on AIX
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



[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 5.0 -> 6.0
pull_requests: +18288
pull_request: https://github.com/python/cpython/pull/18936

___
Python tracker 

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



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

I created bpo-39936 "Python fails to build _asyncio on module on AIX" to debug 
the AIX build failure.

--

___
Python tracker 

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



[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor


STINNER Victor  added the comment:

AIX_BUILDDATE variable is written in pyconfig.h by configure:

> https://buildbot.python.org/all/#/builders/119/builds/383

configure: "checking for the system builddate... 1806"

> https://buildbot.python.org/all/#/builders/119/builds/451

configure: "checking for the system builddate... 1806"

So AIX_BUILDDATE seems to be set in both case.

But on build 451, the "build/lib.aix-7100-9898-32-3.9-pydebug" directory name 
contains 9898: this number comes from _aix_support._MISSING_BD. It's used when 
_have_subprocess is false or when get_config_var("AIX_BUILDDATE") cannot be 
converted into an integer.

--

___
Python tracker 

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



[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-03-11 Thread Rahul Kumaresan


Change by Rahul Kumaresan :


--
nosy: +rahul-kumi
nosy_count: 3.0 -> 4.0
pull_requests: +18289
pull_request: https://github.com/python/cpython/pull/18937

___
Python tracker 

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



[issue39937] Suggest the usage of Element.iter() instead of iter() in whatsnew

2020-03-11 Thread Rahul Kumaresan


New submission from Rahul Kumaresan :

In the whatsnew section, under the point which mentions the deprecation of 
getchildren() and getiterator() through bpo-36543, it is suggested to use 
iter() instead.

Ideally there should be a suggestion to use Element.iter() instead.

--
assignee: docs@python
components: Documentation
messages: 363949
nosy: docs@python, rahul-kumi, xtreak
priority: normal
pull_requests: 18290
severity: normal
status: open
title: Suggest the usage of Element.iter() instead of iter() in whatsnew
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



[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt


Michael Felt  added the comment:

While looking through the history of bot builds - I consistently see 420 tests 
being done on one bot - but test_socket does not always show up in the list.

I'll look at this as I can, but "free-time" is limited. Delay is not a lack of 
interest.

--
nosy: +Michael.Felt

___
Python tracker 

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



  1   2   >