[issue38237] Expose meaningful keyword arguments for pow()

2020-03-25 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +18531
pull_request: https://github.com/python/cpython/pull/19171

___
Python tracker 

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



[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

2020-03-25 Thread Leon Hampton


Leon Hampton  added the comment:

Matthew Barnett & SilentGhost,
Thank you for your prompt responses. (Really prompt. Amazing!)
SilentGhost,
Regarding your response, I used re.search, not re.match. When I used re.match, 
the regex failed. When I used re.search, it matched.
Here are my tests.

Your example (cut-and-pasted):
x = re.match(r'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)', '|$)', '

I understand the re.match failing, since it always starts at the beginning of 
the string, but why did re.search succeed? After failing with the yes-pattern, 
when the regex engine backtracked to the (<)? did it decide not to match the 
'<' at all and skip the character? Seems like it. What do you think?

I am running Python 3.7 via Spyder 4.1.1 on Windows 10.

Respectfully,
Leon

--

___
Python tracker 

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



[issue38250] enum.Flag should be more set-like

2020-03-25 Thread Vedran Čačić

Vedran Čačić  added the comment:

1. +0 _if_ the implementation is easy to explain. If backward compatibility is 
an issue, we can always add a property: 
for flag in flags.set:
(though set might imply unorderedness:)
2. -1. Guido said long ago that all lens should be O(1).
(Of course, if you do make it O(1), I have no objection.)
3. +1, absolutely.

--
nosy: +veky

___
Python tracker 

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



[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-25 Thread Ammar Askar


Ammar Askar  added the comment:

Instead of noindex maybe the 3.x documentation can be marked as the canonical 
one: https://support.google.com/webmasters/answer/139066

This should still allow the old docs to be crawled but emphasize the latest 
docs on the website:

> Google Search result usually points to the canonical page, unless one of the 
> duplicates is explicitly better suited for a user: for example, the search 
> result will probably point to the mobile page if the user is on a mobile 
> device, even if the desktop page is marked as canonical.

Presumably the "better suited" means that if you search for "python2 timeit" 
you'd still find the py2 docs.

Terry Reedy, could you link the earlier issue so this information can be posted 
there, or are you referring to the issue Karthik linked?

--
nosy: +ammar2

___
Python tracker 

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



[issue39943] Meta: Clean up various issues in C internals

2020-03-25 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 62d21c9d900664b2ca30c2d7edd80b6628abdf62 by Andy Lester in branch 
'master':
bpo-39943: Properly const the pointers in dictkeys_get_index (GH-19170)
https://github.com/python/cpython/commit/62d21c9d900664b2ca30c2d7edd80b6628abdf62


--
nosy: +inada.naoki

___
Python tracker 

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



[issue39943] Meta: Clean up various issues in C internals

2020-03-25 Thread Andy Lester


Change by Andy Lester :


--
pull_requests: +18530
pull_request: https://github.com/python/cpython/pull/19170

___
Python tracker 

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



[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-25 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue40072] Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved any packet

2020-03-25 Thread honglei jiang


honglei jiang  added the comment:

It works under asyncio.WindowsSelectorEventLoopPolicy(), but failed under 
Python3.8 default policy.

--

___
Python tracker 

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



[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:


New changeset cb6534e1a8833b3f20bd88f52cf62a003426e855 by Furkan Önder in 
branch 'master':
bpo-40067: Improve error messages for multiple star expressions in assignments 
(GH-19168)
https://github.com/python/cpython/commit/cb6534e1a8833b3f20bd88f52cf62a003426e855


--

___
Python tracker 

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



[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thanks for the quick fix, Furkan! :)

--
nosy: +pablogsal
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



[issue40072] Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved packet

2020-03-25 Thread honglei jiang


Change by honglei jiang :


--
title: IPUDP Echo Server raise OSError when recved packet -> 
Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved packet

___
Python tracker 

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



[issue40072] Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved any packet

2020-03-25 Thread honglei jiang


Change by honglei jiang :


--
title: Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved packet 
-> Win7/Python3.8/asyncio IPv6 UDP Server raise OSError when recved any packet

___
Python tracker 

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



[issue40072] IPUDP Echo Server raise OSError when recved packet

2020-03-25 Thread honglei jiang


Change by honglei jiang :


--
title: UDP Echo Server raise OSError when recved packet -> IPUDP Echo Server 
raise OSError when recved packet

___
Python tracker 

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



[issue40072] UDP Echo Server raise OSError when recved packet

2020-03-25 Thread honglei jiang


Change by honglei jiang :


Added file: https://bugs.python.org/file49001/udp_ipv6_client.py

___
Python tracker 

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



[issue40072] UDP Echo Server raise OSError when recved packet

2020-03-25 Thread honglei jiang

New submission from honglei jiang :

Env: Win7/Python3.8.2 x64/

Output:

Starting UDP server
Traceback (most recent call last):
  File "d:\ProgramData\Python38\lib\asyncio\proactor_events.py", line 548, in 
_loop_reading
res = fut.result()
  File "d:\ProgramData\Python38\lib\asyncio\windows_events.py", line 808, in 
_poll
value = callback(transferred, key, ov)
  File "d:\ProgramData\Python38\lib\asyncio\windows_events.py", line 496, in 
finish_recv
return ov.getresult()
OSError: [WinError 87] 参数错误。

[WinError 87] 参数错误。

--
components: asyncio
files: asyncio_udp_ipv6_server.py
messages: 365045
nosy: asvetlov, honglei.jiang, yselivanov
priority: normal
severity: normal
status: open
title: UDP Echo Server raise OSError when recved packet
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49000/asyncio_udp_ipv6_server.py

___
Python tracker 

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



[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

The folowing test is enough to reproduce the leak:

def test_ids_global(self):
interp1 = interpreters.create()
script, rpipe = _captured_script("pass")
interpreters.run_string(interp1, script)
rpipe.close()

interp2 = interpreters.create()
script, rpipe = _captured_script("pass")
interpreters.run_string(interp2, script)
rpipe.close()

--

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


STINNER Victor  added the comment:

> bpo-1635741: Port _functools module to multiphase initialization (PEP 489) 
> (GH-19151)
> https://github.com/python/cpython/commit/7dd549eb08939e1927fba818116f5202e76f8d73

This change introduced a regression: bpo-40071 "test__xxsubinterpreters  leaked 
[1, 1, 1] references: test_ids_global()".

--

___
Python tracker 

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



[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-25 Thread Paulo Henrique Silva


Change by Paulo Henrique Silva :


--
keywords: +patch
nosy: +phsilva
nosy_count: 1.0 -> 2.0
pull_requests: +18529
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19151

___
Python tracker 

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



[issue40071] test__xxsubinterpreters leaked [1, 1, 1] references: test_ids_global()

2020-03-25 Thread STINNER Victor


New submission from STINNER Victor :

$ ./python -m test -R 3:3 test__xxsubinterpreters -m test_ids_global
0:00:00 load avg: 0.80 Run tests sequentially
0:00:00 load avg: 0.80 [1/1] test__xxsubinterpreters
beginning 6 repetitions
123456
..
test__xxsubinterpreters leaked [1, 1, 1] references, sum=3
test__xxsubinterpreters leaked [1, 1, 1] memory blocks, sum=3
test__xxsubinterpreters failed

== Tests result: FAILURE ==

1 test failed:
test__xxsubinterpreters

Total duration: 819 ms
Tests result: FAILURE


It started to leak since:

commit 7dd549eb08939e1927fba818116f5202e76f8d73
Author: Paulo Henrique Silva 
Date:   Tue Mar 24 23:19:58 2020 -0300

bpo-1635741: Port _functools module to multiphase initialization (PEP 489) 
(GH-19151)

--
components: Interpreter Core
messages: 365042
nosy: vstinner
priority: normal
severity: normal
status: open
title: test__xxsubinterpreters  leaked [1, 1, 1] references: test_ids_global()
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



[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

I'm unable to reproduce the crash on Fedora 31.

A crash during a garbage collection usually means that there is a corrupted 
object somewhere, and suddenly, we discover the inconsistent. The crash can be 
far from where the inconsistency was created.

You may try python3.7 -X dev which might provide more information. The best 
would be to test a Python 3.9 compiled in debug mode.

The setup.py file of Python binding of protobuf has an optional 
--cpp_implementation option to build C++ extension modules. It seems like they 
are not built by default. I'm not sure if this bug requires these C++ extension 
modules, or if they must miss.

It seems like "pip install protobuf" installs protobuf without these C++ 
extension modules.

See also https://pythondev.readthedocs.io/debug_tools.html to debug a crash.

It's likely a bug in protobuf, rather than a bug in Python itself. I close the 
issue.

--
nosy: +vstinner
resolution:  -> third party
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



[issue21983] segfault in ctypes.cast

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

> Still needs a backport to 2.7

No longer needed, I close the issue.

--
nosy: +vstinner
resolution:  -> fixed
stage: backport needed -> 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



[issue38044] unittest causing segfaults with string malloc in c++ module

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

The issue looks like a bug in third party code, rather than a bug in Python 
itself. You can try to set PYTHONMALLOC=debug environment variable, it might 
help to detect a memory corruption. I strongly advice you to test a debug build 
of Python. Since Python 3.8, the ABI is now compatible in debug and release 
builds.

See also https://pythondev.readthedocs.io/debug_tools.html to debug a crash.

I close the issue.

--
nosy: +vstinner
resolution:  -> third party
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



[issue31521] segfault in PyBytes_AsString

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

That's very likely a crash in third party project.

Since no reproducer was provided that the last message of the reporter was 3 
years ago, I close the issue.

--
nosy: +vstinner
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



[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
title: CPython Segfault in 5 lines of code -> _PyErr_CreateException() must 
check that the result is an exception (CPython Segfault in 5 lines of code)

___
Python tracker 

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



[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-37776: Test Py_Finalize() from a subinterpreter.

--

___
Python tracker 

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



[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

Dennis Sweeney wrote https://www.python.org/dev/peps/pep-0616/

--
title: Add str methods to remove prefixes or suffixes -> PEP 616: Add str 
methods to remove prefix or suffix

___
Python tracker 

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



[issue39853] Segmentation fault with urllib.request.urlopen and threads

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

If someone manages to reproduce the bug, please provide *at least* the Python 
traceback. You can use faulthandler to get it. It would also be very useful to 
get the C call stack using gdb (where command in gdb).

In the meanwhile, I close the issue since only the reporter reproduced the 
crashed.

Please provide more information about your OS, OS version, how you installed 
Python, Python package version, etc. if you want to reopen 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



[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Library (Lib)
nosy: +vstinner
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



[issue40063] Bug in 3rd party sybase database connector (Fatal python error:PyEval_RestoreThread NULL tstate)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

I close the issue. It's a bug in a third-party project, not in Python itself.

If you can reproduce the bug with a simple script which only uses the stdlib, 
please reopen the issue.

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed
title: Fatal python error:PyEval_RestoreThread NULL tstate -> Bug in 3rd party 
sybase database connector (Fatal python error:PyEval_RestoreThread NULL tstate)

___
Python tracker 

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



[issue40069] Clear .lst files for AIX

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

What are these .lst files? What creates them?

--
nosy: +vstinner

___
Python tracker 

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



[issue39665] Cryptic error message when creating types that don't include themselves in their MRO

2020-03-25 Thread ppperry


Change by ppperry :


--
components:  -Build
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



[issue40070] GCC crashed on AMD64 RHEL7 LTO + PGO 3.7 (compiler bug)

2020-03-25 Thread STINNER Victor

New submission from STINNER Victor :

GCC crashed on AMD64 RHEL7 LTO + PGO 3.7:
https://buildbot.python.org/all/#/builders/190/builds/131

It crashed at the second stage of the PGO compilation (-fprofile-use).

---
(...)
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/asdl.o Python/asdl.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/ast.o Python/ast.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/ast_opt.o Python/ast_opt.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/ast_unparse.o Python/ast_unparse.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/bltinmodule.o Python/bltinmodule.c
In file included from ./Include/pytime.h:6:0,
 from ./Include/Python.h:87,
 from Python/bltinmodule.c:3:
Python/bltinmodule.c: In function ‘builtin_any’:
./Include/object.h:790:31: note: correcting inconsistent value profile: ic 
profiler overall count (78) does not match BB count (78)
 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
   ^
Python/bltinmodule.c:411:1: note: Inconsistent profile: indirect call target 
(0) does not exist
 builtin_any(PyObject *module, PyObject *iterable)
 ^
In file included from ./Include/pytime.h:6:0,
 from ./Include/Python.h:87,
 from Python/bltinmodule.c:3:
./Include/object.h:790:31: note: correcting inconsistent value profile: ic 
profiler overall count (0) does not match BB count (0)
 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
   ^
./Include/object.h:790:31: note: correcting inconsistent value profile: ic 
profiler overall count (0) does not match BB count (0)
Python/bltinmodule.c:2868:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/ceval.o Python/ceval.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/compile.o Python/compile.c
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
   -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fprofile-use -fprofile-correction  -I. -I./Include-DPy_BUILD_CORE -o 
Python/codecs.o Python/codecs.c
Preprocessed source stored into /tmp/ccsdRI8K.out file, please attach this to 
your bugreport.
make[1]: *** [Python/bltinmodule.o] Error 1
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory 
`/home/buildbot/buildarea/3.7.cstratak-RHEL7-x86_64.lto-pgo/build'
make: *** [profile-opt] Error 2
---

That's RHEL 7.7 with gcc-4.8.5-39.el7.x86_64.

The previous build was 

[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

I worked around the logging crash. Then I got a second crash in 
_PyThreadState_DeleteExcept() called in the child process after a fork.

PyThreadState_Clear() calls tstate->on_delete() which is release_sentinel() of 
Modules/_threadmodule.c.

Problem: lock objects are left in an inconsistent state after a fork: bpo-6721. 
This lock object should be replaced with a new lock object, or 
release_sentinel() should not be called.

(gdb) where
#0  0xd0563e00 in _internal_error () from /usr/lib/libpthreads.a(shr_xpg5.o)
#1  0xd0573270 in _event_notify_locked@AF34_24 () from 
/usr/lib/libpthreads.a(shr_xpg5.o)
#2  0xd057247c in _event_notify () from /usr/lib/libpthreads.a(shr_xpg5.o)
#3  0xd0582b2c in _cond_broadcast () from /usr/lib/libpthreads.a(shr_xpg5.o)
#4  0xd0584b0c in pthread_cond_signal@AF29_12 () from 
/usr/lib/libpthreads.a(shr_xpg5.o)
#5  0xd058320c in pthread_cond_signal () from /usr/lib/libpthreads.a(shr_xpg5.o)
#6  0x100a755c in PyThread_release_lock (lock=0x200bd4d0) at 
Python/thread_pthread.h:687
#7  0x1024add0 in release_sentinel (wr_raw=0x306c0bd0) at 
./Modules/_threadmodule.c:1213
#8  0x100a406c in PyThreadState_Clear (tstate=0x200c0970) at 
Python/pystate.c:810
#9  0x100a4b90 in _PyThreadState_DeleteExcept (runtime=0x2200 <_PyRuntime>, 
tstate=0x20068870) at Python/pystate.c:924
#10 0x1010ad8c in _PyEval_ReInitThreads (runtime=0x2200 <_PyRuntime>) at 
Python/ceval.c:434
#11 0x101682a8 in PyOS_AfterFork_Child () at ./Modules/posixmodule.c:473
#12 0x10168384 in os_fork (module=0x0, _unused_ignored=0x) at 
./Modules/posixmodule.c:6264
#13 0x101e7644 in cfunction_vectorcall_NOARGS (func=0x3008b4b0, 
args=0x, nargsf=0, kwnames=0x20067800) at Objects/methodobject.c:20
#14 0x10109d84 in call_function (tstate=0x200c9b00, pp_stack=0x2046f04c, 
oparg=24, kwnames=0x0) at ./Include/cpython/abstract.h:118
#15 0x101165a8 in _PyEval_EvalFrameDefault (tstate=0x200c9b00, f=0x306ce2f0, 
throwflag=537697024) at Python/ceval.c:2569
#16 0x10119f80 in _PyEval_EvalCode (tstate=0x306ce424, _co=0x3066ca00, 
globals=0x3066d0d8, locals=0x306ce430, args=0x306ce428, argcount=-1, 
kwnames=0x30670030, kwargs=0x, kwcount=805326908, kwstep=0, defs=0x0, 
defcount=0, 
kwdefs=0x0, closure=0x0, name=0x2046f1f0, qualname=0x28000282) at 
./Include/internal/pycore_ceval.h:40
#17 0x1011cb84 in _PyFunction_Vectorcall (func=0x0, stack=0x3066d0d8, nargsf=0, 
kwnames=0x8) at Objects/call.c:395
#18 0x1011c270 in PyVectorcall_Call (callable=0x3065f710, tuple=0x30005030, 
kwargs=0x306b6068) at Objects/call.c:230
#19 0x1011c510 in _PyObject_Call (tstate=0x30005030, callable=0x2003a64c 
<_cc37zUOE.rw_+21820>, args=0x306b6068, kwargs=0x3065f710) at Objects/call.c:265
#20 0x1011c71c in PyObject_Call (callable=0x0, args=0x, 
kwargs=0x) at Objects/call.c:292
#21 0x10116ad4 in _PyEval_EvalFrameDefault (tstate=0x200c9b00, f=0x306cba40, 
throwflag=0) at Python/ceval.c:4198
#22 0x1011bd10 in function_code_fastcall (tstate=0x3029d6b2, co=0x302bc0a0, 
args=0x30681914, nargs=812432252, globals=0x306cba40) at 
./Include/internal/pycore_ceval.h:40
#23 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302c7210, stack=0x3029d698, 
nargsf=1, kwnames=0x0) at Objects/call.c:366
#24 0x10109d84 in call_function (tstate=0x200c9b00, pp_stack=0x2046f57c, 
oparg=56, kwnames=0x0) at ./Include/cpython/abstract.h:118
#25 0x101164f4 in _PyEval_EvalFrameDefault (tstate=0x200c9b00, f=0x306817d8, 
throwflag=537697024) at Python/ceval.c:2586
#26 0x1011bd10 in function_code_fastcall (tstate=0x302aa200, co=0x302bc2f8, 
args=0x306cc5a4, nargs=812128536, globals=0x306817d8) at 
./Include/internal/pycore_ceval.h:40
#27 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302c73a0, stack=0x302aa180, 
nargsf=1, kwnames=0x0) at Objects/call.c:366
#28 0x10109d84 in call_function (tstate=0x200c9b00, pp_stack=0x2046f79c, 
oparg=56, kwnames=0x0) at ./Include/cpython/abstract.h:118
#29 0x101164f4 in _PyEval_EvalFrameDefault (tstate=0x200c9b00, f=0x306cc468, 
throwflag=537697024) at Python/ceval.c:2586
#30 0x1011bd10 in function_code_fastcall (tstate=0x302a4828, co=0x302bc118, 
args=0x2046f928, nargs=812434856, globals=0x306cc468) at 
./Include/internal/pycore_ceval.h:40
#31 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302c7260, stack=0x302a4820, 
nargsf=1, kwnames=0x0) at Objects/call.c:366
#32 0x10220394 in method_vectorcall (method=0x302c7260, args=0x3000503c, 
nargsf=56, kwnames=0x0) at ./Include/cpython/abstract.h:118
#33 0x1011c270 in PyVectorcall_Call (callable=0x306c0ea0, tuple=0x30005030, 
kwargs=0x0) at Objects/call.c:230
#34 0x1011c510 in _PyObject_Call (tstate=0x30005030, callable=0x2003875c 
<_cc37zUOE.rw_+13900>, args=0x0, kwargs=0x306c0ea0) at Objects/call.c:265
#35 0x1011c71c in PyObject_Call (callable=0x0, args=0x, 
kwargs=0x) at Objects/call.c:292
#36 0x1024a158 in t_bootstrap (boot_raw=0x306bf7a8) at 
./Modules/_threadmodule.c:1011
#37 0x100a6830 in pythread_wrapper 

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

"""
OK (skipped=1)
Warning -- files was modified by test_threading
  Before: []
  After:  ['core']
"""

That's maybe bpo-40068 "test_threading: 
ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX".

--

___
Python tracker 

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



[issue40061] Possible refleak in _asynciomodule.c future_add_done_callback()

2020-03-25 Thread Kyle Stanley


Kyle Stanley  added the comment:

> When using the `test-with-buildbots` label in GH-19149 (which involved no C 
> changes), a failure occurred in test_asyncio for several of the refleak 
> buildbots.

To clarify, the refleak failures occurred when i applied the label to the 
following commit: 
https://github.com/python/cpython/pull/19149/commits/21a12e9340644c81e758ddf20fc9034f265d1930

--

___
Python tracker 

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



[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

Example of crash in master in a child process after os.fork().

The crash occurred in logging._releaseLock() called by 
logging._after_at_fork_child_reinit_locks().

Old issues about logging + fork

* bpo-36533 (closed): logging regression with threading + fork are mixed in 
3.7.1rc2 (deadlock potential)
* bpo-37429 (open): Python hangs on fork when a logger is in use in a 
background thread
* bpo-6721 (open): Locks in the standard library should be sanitized on fork

--

(gdb) where
#0  0xd0563e00 in _internal_error () from /usr/lib/libpthreads.a(shr_xpg5.o)
#1  0xd0573270 in _event_notify_locked@AF34_24 () from 
/usr/lib/libpthreads.a(shr_xpg5.o)
#2  0xd057247c in _event_notify () from /usr/lib/libpthreads.a(shr_xpg5.o)
#3  0xd0582b2c in _cond_broadcast () from /usr/lib/libpthreads.a(shr_xpg5.o)
#4  0xd0584b0c in pthread_cond_signal@AF29_12 () from 
/usr/lib/libpthreads.a(shr_xpg5.o)
#5  0xd058320c in pthread_cond_signal () from /usr/lib/libpthreads.a(shr_xpg5.o)
#6  0x100a7568 in PyThread_release_lock (lock=0x200848f0) at 
Python/thread_pthread.h:687
#7  0x10249d38 in rlock_release (self=0x30295758, _unused_ignored=0x) 
at ./Modules/_threadmodule.c:357
#8  0x102109dc in method_vectorcall_NOARGS (func=0x0, args=0x302cdd80, 
nargsf=4294967295, kwnames=0x0) at Objects/descrobject.c:20
#9  0x10109d84 in call_function (tstate=0x200d5ca0, pp_stack=0x20e82aec, 
oparg=24, kwnames=0x0) at ./Include/cpython/abstract.h:118
#10 0x101164f4 in _PyEval_EvalFrameDefault (tstate=0x200d5ca0, f=0x302cdc48, 
throwflag=537746592) at Python/ceval.c:2586
#11 0x1011bd10 in function_code_fastcall (tstate=0x3027c972, co=0x3027d820, 
args=0x3052cef0, nargs=808246660, globals=0x302cdc48) at 
./Include/internal/pycore_ceval.h:40
#12 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302bd030, stack=0x3027c968, 
nargsf=0, kwnames=0x0) at Objects/call.c:366
#13 0x10109d84 in call_function (tstate=0x200d5ca0, pp_stack=0x20e82d08, 
oparg=56, kwnames=0x0) at ./Include/cpython/abstract.h:118
#14 0x1011662c in _PyEval_EvalFrameDefault (tstate=0x200d5ca0, f=0x3052cdb0, 
throwflag=537746592) at Python/ceval.c:2600
#15 0x1011bd10 in function_code_fastcall (tstate=0x3027d9ec, co=0x3027da00, 
args=0x0, nargs=810733296, globals=0x3052cdb0) at 
./Include/internal/pycore_ceval.h:40
#16 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302bd120, stack=0x3027d998, 
nargsf=0, kwnames=0x0) at Objects/call.c:366
#17 0x1015c848 in run_at_forkers (lst=0x302bd120, reverse=-1) at 
./Include/cpython/abstract.h:118
#18 0x101682e8 in PyOS_AfterFork_Child () at ./Modules/posixmodule.c:479
#19 0x10168384 in os_fork (module=0x0, _unused_ignored=0x) at 
./Modules/posixmodule.c:6264
#20 0x101e7644 in cfunction_vectorcall_NOARGS (func=0x38, args=0x, 
nargsf=806606368, kwnames=0x1) at Objects/methodobject.c:20
#21 0x10109d84 in call_function (tstate=0x200d5ca0, pp_stack=0x20e8304c, 
oparg=24, kwnames=0x0) at ./Include/cpython/abstract.h:118
#22 0x101165a8 in _PyEval_EvalFrameDefault (tstate=0x200d5ca0, f=0x306b39d0, 
throwflag=537746592) at Python/ceval.c:2569
#23 0x10119f80 in _PyEval_EvalCode (tstate=0x306b3b04, _co=0x306b65c8, 
globals=0x306a47b8, locals=0x306b3b10, args=0x306b3b08, argcount=-1, 
kwnames=0x30280030, kwargs=0x, kwcount=805326908, kwstep=0, defs=0x0, 
defcount=0, 
kwdefs=0x0, closure=0x0, name=0x20e831f0, qualname=0x28000282) at 
./Include/internal/pycore_ceval.h:40
#24 0x1011cb84 in _PyFunction_Vectorcall (func=0x0, stack=0x306a47b8, nargsf=0, 
kwnames=0x8) at Objects/call.c:395
#25 0x1011c270 in PyVectorcall_Call (callable=0x30625440, tuple=0x30005030, 
kwargs=0x306b5180) at Objects/call.c:230
#26 0x1011c510 in _PyObject_Call (tstate=0x30005030, callable=0x2003a67c 
<_ccCGOhKO.rw_+21820>, args=0x306b5180, kwargs=0x30625440) at Objects/call.c:265
#27 0x1011c71c in PyObject_Call (callable=0x0, args=0x, 
kwargs=0x) at Objects/call.c:292
#28 0x10116ad4 in _PyEval_EvalFrameDefault (tstate=0x200d5ca0, f=0x306d5760, 
throwflag=0) at Python/ceval.c:4198
#29 0x1011bd10 in function_code_fastcall (tstate=0x3029a7d2, co=0x302c07a8, 
args=0x3066edac, nargs=812472476, globals=0x306d5760) at 
./Include/internal/pycore_ceval.h:40
#30 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302c93a0, stack=0x3029a7b8, 
nargsf=1, kwnames=0x0) at Objects/call.c:366
#31 0x10109d84 in call_function (tstate=0x200d5ca0, pp_stack=0x20e8357c, 
oparg=56, kwnames=0x0) at ./Include/cpython/abstract.h:118
#32 0x101164f4 in _PyEval_EvalFrameDefault (tstate=0x200d5ca0, f=0x3066ec70, 
throwflag=537746592) at Python/ceval.c:2586
#33 0x1011bd10 in function_code_fastcall (tstate=0x302ac200, co=0x302c0a00, 
args=0x306cb16c, nargs=812051888, globals=0x3066ec70) at 
./Include/internal/pycore_ceval.h:40
#34 0x1011c9a0 in _PyFunction_Vectorcall (func=0x302c9530, stack=0x302ac180, 
nargsf=1, kwnames=0x0) at Objects/call.c:366
#35 0x10109d84 in call_function (tstate=0x200d5ca0, pp_stack=0x20e8379c, 
oparg=56, 

[issue40069] Clear .lst files for AIX

2020-03-25 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +Michael.Felt

___
Python tracker 

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



[issue40069] Clear .lst files for AIX

2020-03-25 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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

___
Python tracker 

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



[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

The master branch is also affected.

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



[issue40069] Clear .lst files for AIX

2020-03-25 Thread Batuhan Taskaya


New submission from Batuhan Taskaya :

AIX files stay even if we run make clean on the directory, I think they should 
be cleared

--
components: Build
messages: 365026
nosy: BTaskaya, David.Edelsohn
priority: normal
severity: normal
status: open
title: Clear .lst files for AIX
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



[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-25 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#/builders/73/builds/208
---
Warning -- files was modified by test_threading
  Before: []
  After:  ['core']

1 test altered the execution environment:
test_threading
---

The bug can be reproduced with:

$ ./configure --with-pydebug CC=gcc CFLAGS=-O0
$ make
(...
$ ./python -m test test_threading --fail-env-changed -m 
test.test_threading.ThreadJoinOnShutdown.test_reinit_tls_after_fork  -F -j 20
0:00:00 Run tests in parallel using 20 child processes
0:00:01 [  1] test_threading passed
0:00:01 [  2] test_threading passed
(...)
0:00:03 [ 17] test_threading passed
0:00:03 [ 18/1] test_threading failed (env changed)
Warning -- files was modified by test_threading
  Before: []
  After:  ['core']
Kill 
(...)
Tests result: ENV CHANGED

--
components: Tests
messages: 365025
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash 
with Python 3.8 on AIX
versions: Python 3.8

___
Python tracker 

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



[issue19462] Add remove_argument() method to argparse.ArgumentParser

2020-03-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
assignee: docs@python -> terry.reedy
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



[issue37062] `AutoNumber` class in enum documentation: support *args in constructor

2020-03-25 Thread Ethan Furman


Change by Ethan Furman :


--
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue37062] `AutoNumber` class in enum documentation: support *args in constructor

2020-03-25 Thread Ethan Furman


Change by Ethan Furman :


--
assignee: docs@python -> ethan.furman

___
Python tracker 

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



[issue39321] AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process killed by signal 9)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

New failure: https://buildbot.python.org/all/#/builders/214/builds/512

test.pythoninfo says:

datetime.datetime.now: 2020-03-25 18:59:08.424147
socket.hostname: 121-RELEASE-p2-amd64

/var/log/messages says:

Mar 25 18:41:13 121-RELEASE-p2-amd64 kernel: pid 65447 (python), jid 0, uid 
1002, was killed: out of swap space

121-RELEASE-p2-amd64% sysctl hw | egrep 'hw.(phys|user|real)'
hw.physmem: 1033416704
hw.usermem: 745279488
hw.realmem: 1073676288

=> 985.5 MB of memory

121-RELEASE-p2-amd64% sysctl vm|grep swap  
vm.swap_enabled: 1
vm.domain.0.stats.unswappable: 0
vm.swap_idle_threshold2: 10
vm.swap_idle_threshold1: 2
vm.swap_idle_enabled: 0
vm.disable_swapspace_pageouts: 0
vm.stats.vm.v_swappgsout: 5793651
vm.stats.vm.v_swappgsin: 3322252
vm.stats.vm.v_swapout: 1390626
vm.stats.vm.v_swapin: 875591
vm.nswapdev: 1
vm.swap_fragmentation: 
vm.swap_async_max: 4
vm.swap_maxpages: 1964112
vm.swap_total: 4294864896
vm.swap_reserved: 7942307840

=> 4095.9 MB of swap (total)

121-RELEASE-p2-amd64% swapinfo -h
Device  1K-blocks UsedAvail Capacity
/dev/da0p34194204  70M 3.9G 2%

121-RELEASE-p2-amd64% swapinfo 
Device  1K-blocks UsedAvail Capacity
/dev/da0p3419420472164  4122040 2%

--
title: AMD64 FreeBSD Non-Debug 3.x: main regrtest process killed by SIGKILL 
(Signal 9) -> AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process 
killed by signal 9)

___
Python tracker 

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



[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Furkan Önder

Change by Furkan Önder :


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

___
Python tracker 

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



[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Furkan Önder

New submission from Furkan Önder :

Hello everyone,

>>> a,*b,*c,*d = range(4)
  File "", line 1
SyntaxError: two starred expressions in assignment
>>> 

>>> a,*b,*c,*d,*e = range(5)
  File "", line 1
SyntaxError: two starred expressions in assignment
>>> 

I think this error message is incomplete. It states that there are two starred 
assignments but there are more. It might be better if we change it to something 
less vague like "SyntaxError: more than one starred expressions in assignment."

--
components: Interpreter Core
messages: 365023
nosy: BTaskaya, furkanonder
priority: normal
severity: normal
status: open
title: Improve error messages for multiple star expressions in assignment
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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5c3cda0d1a850a1a9b43892f48376b8876bd5863 by Victor Stinner in 
branch 'master':
bpo-39947: Add PyThreadState_GetID() function (GH-19163)
https://github.com/python/cpython/commit/5c3cda0d1a850a1a9b43892f48376b8876bd5863


--

___
Python tracker 

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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0e427c6d159e86f17270770cd8dc37372e3c4004 by Victor Stinner in 
branch 'master':
bpo-39947: Add _PyThreadState_GetDict() function (GH-19160)
https://github.com/python/cpython/commit/0e427c6d159e86f17270770cd8dc37372e3c4004


--

___
Python tracker 

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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread Georg Brandl


Georg Brandl  added the comment:

Sorry, it seems that was far too long ago for me to remember anything :)

--

___
Python tracker 

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



[issue34443] enum error messages should use __qualname__

2020-03-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 9.0 -> 10.0
pull_requests: +18526
pull_request: https://github.com/python/cpython/pull/19166

___
Python tracker 

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



[issue34443] enum error messages should use __qualname__

2020-03-25 Thread Ethan Furman


Change by Ethan Furman :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: enum repr should use __qualname__ -> enum error messages should use 
__qualname__

___
Python tracker 

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



[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Ethan Furman


New submission from Ethan Furman :

Serhiy had the idea of having Enum._convert also modify the __str__ and 
__repr__ of newly created enumerations to display the module name instead of 
the enumeration name (https://bugs.python.org/msg325007):

--> socket.AF_UNIX
   ==>  

--> print(socket.AF_UNIX)
AddressFamily.AF_UNIX==>  socket.AF_UNIX

Thoughts?

--
assignee: ethan.furman
messages: 365019
nosy: barry, eli.bendersky, ethan.furman
priority: normal
severity: normal
status: open
title: Enum._convert should change __repr__ and/or __str__ to use module name 
instead of class name
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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread Paul Ganssle


Paul Ganssle  added the comment:

This isn't exactly "working as intended", but I believe it's a known problem 
with either `import_fresh_module` or `datetime`, as you can see from these 
comments: 
https://github.com/python/cpython/blob/302e5a8f79514fd84bafbc44b7c97ec636302322/Lib/test/test_datetime.py#L14-L23

Based on the git blame, those TODO comments are from Georg Brandl, so I'm 
adding him to the nosy list in case he has some insight.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue38250] enum.Flag should be more set-like

2020-03-25 Thread Ethan Furman


Change by Ethan Furman :


--
assignee:  -> ethan.furman
nosy: +ethan.furman

___
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-25 Thread hai shi


hai shi  added the comment:

>Sorry for the noise, but I just wanted to say thanks to the people working on 
>this issue 13 years after I reported it. :)  Far too many open-source projects 
>arbitrarily close bugs just because they don't have time to fix them and they 
>never get fixed, so I'm glad this wasn't the case here.

cpython is a big family ;)

--

___
Python tracker 

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



[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-03-25 Thread Fred Drake


New submission from Fred Drake :

Since xml.etree.cElementTree does not exist in Python 3.9, the statement that 
it's deprecated should be removed from the documentation.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 365016
nosy: docs@python, fdrake
priority: normal
severity: normal
status: open
title: py39: remove deprecation note for xml.etree.cElementTree
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



[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2020-03-25 Thread Fred Drake


Change by Fred Drake :


--
keywords: +easy

___
Python tracker 

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



[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2020-03-25 Thread Fred Drake


Change by Fred Drake :


--
assignee: docs@python
components: Documentation
nosy: docs@python, fdrake
priority: normal
severity: normal
status: open
title: py38: document xml.etree.cElementTree will be removed in 3.9
versions: Python 3.8

___
Python tracker 

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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread miss-islington


miss-islington  added the comment:


New changeset 0dad7486e7d7bc2e0f1b0a4f44d9c28064762be5 by Miss Islington (bot) 
in branch '3.7':
bpo-40016: re docstring: Clarify relationship of inline and argument flags 
(GH-19078)
https://github.com/python/cpython/commit/0dad7486e7d7bc2e0f1b0a4f44d9c28064762be5


--

___
Python tracker 

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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread miss-islington


miss-islington  added the comment:


New changeset 686d508c26fafb57dfe463c4f55b20013dad1441 by Miss Islington (bot) 
in branch '3.8':
bpo-40016: re docstring: Clarify relationship of inline and argument flags 
(GH-19078)
https://github.com/python/cpython/commit/686d508c26fafb57dfe463c4f55b20013dad1441


--

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-25 Thread Brett Cannon


Change by Brett Cannon :


--
keywords:  -patch
resolution:  -> fixed
stage: patch review -> needs patch
status: open -> closed

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18525
pull_request: https://github.com/python/cpython/pull/19165

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-25 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 302e5a8f79514fd84bafbc44b7c97ec636302322 by Brett Cannon in 
branch 'master':
bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related 
methods (GH-19158)
https://github.com/python/cpython/commit/302e5a8f79514fd84bafbc44b7c97ec636302322


--

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +18524
pull_request: https://github.com/python/cpython/pull/19164

___
Python tracker 

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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread hai shi


hai shi  added the comment:

add a pdb point in L11 of test_datetime.py

  8 try:
  9 pure_tests = import_fresh_module(TESTS, fresh=['datetime', 
'_strptime'],
 10  blocked=['_datetime'])
 11 import pdb;pdb.set_trace()
 12  -> fast_tests = import_fresh_module(TESTS, fresh=['datetime',
 13'_datetime', 
'_strptime'])

and run `./python -m test test_datetime test_datetime`:
the first iteration:
(Pdb) pure_tests.datetime_module._divide_and_round

the second iteration(`_datetime` not blocked?):
(Pdb) pure_tests.datetime_module._divide_and_round
*** AttributeError: module 'datetime' has no attribute '_divide_and_round'

--

___
Python tracker 

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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3072338642156a5edfa2deef2557288fff73c22a by Victor Stinner in 
branch 'master':
bpo-39947: Use PyThreadState_GetFrame() (GH-19159)
https://github.com/python/cpython/commit/3072338642156a5edfa2deef2557288fff73c22a


--

___
Python tracker 

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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18520
pull_request: https://github.com/python/cpython/pull/19160

___
Python tracker 

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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18523
pull_request: https://github.com/python/cpython/pull/19163

___
Python tracker 

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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18522
pull_request: https://github.com/python/cpython/pull/19162

___
Python tracker 

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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 89a2209ae6fc5f39868621799730e16f931eb497 by Ram Rachum in branch 
'master':
bpo-40016: re docstring: Clarify relationship of inline and argument flags 
(#19078)
https://github.com/python/cpython/commit/89a2209ae6fc5f39868621799730e16f931eb497


--

___
Python tracker 

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



[issue40016] Clarify flag case in `re` module docstring

2020-03-25 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18519
pull_request: https://github.com/python/cpython/pull/19159

___
Python tracker 

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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 87d3b9db4ade1aa100ee6f065082cb7e85b8992f by Victor Stinner in 
branch 'master':
bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)
https://github.com/python/cpython/commit/87d3b9db4ade1aa100ee6f065082cb7e85b8992f


--

___
Python tracker 

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



[issue40059] Provide a toml module in the standard library

2020-03-25 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +pradyunsg

___
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-25 Thread B Sizer


B Sizer  added the comment:

Sorry for the noise, but I just wanted to say thanks to the people working on 
this issue 13 years after I reported it. :)  Far too many open-source projects 
arbitrarily close bugs just because they don't have time to fix them and they 
never get fixed, so I'm glad this wasn't the case here.

--

___
Python tracker 

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



[issue19698] Implement _imp.exec_builtin and exec_dynamic

2020-03-25 Thread Brett Cannon


Change by Brett Cannon :


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

___
Python tracker 

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



[issue39882] Py_FatalError(): log automatically the function name

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18517
pull_request: https://github.com/python/cpython/pull/19157

___
Python tracker 

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



[issue38353] Cleanup the path configuration implementation code (getpath.c)

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


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



[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

FYI importlib leak was fixed in bpo-40050 by:

commit 83d46e0622d2efdf5f3bf8bf8904d0dcb55fc322
Author: Victor Stinner 
Date:   Tue Mar 24 18:03:34 2020 +0100

bpo-40050: Fix importlib._bootstrap_external (GH-19135)

Remove two unused imports: _thread and _weakref. Avoid creating a new
winreg builtin module if it's already available in sys.modules.

The winreg module is now stored as "winreg" rather than "_winreg".

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



[issue39984] Move pending calls from _PyRuntime to PyInterpreterState

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

I moved pending calls to PyInterpreterState.

There are remaining issues with using pending calls in subinterpreters, but I 
propose to continue the discussion in bpo-37127.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval 
-> Move pending calls from _PyRuntime to PyInterpreterState

___
Python tracker 

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



[issue40010] Inefficient signal handling in multithreaded applications

2020-03-25 Thread STINNER Victor


Change by STINNER Victor :


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



[issue40050] importlib: module.__spec__ leaks importlib namespaces (test_importlib leaked xxx references)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ace018ca47c03ca699603341b12781b5329d2eaa by Victor Stinner in 
branch 'master':
bpo-40050: Rephrase NEWS entry (GH-19148)
https://github.com/python/cpython/commit/ace018ca47c03ca699603341b12781b5329d2eaa


--

___
Python tracker 

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



[issue40063] Fatal python error:PyEval_RestoreThread NULL tstate

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

File "/generic_sybase_connector.py", line 175 in _do
  File "/generic_sybase_connector.py", line 155 in _safe_cursor_operation
  File "/generic_sybase_connector.py", line 184 in fetch_from_db
  File "/cva_sybase_connector.py", line 197 in get_smoke_test_name_data
  File "/db_connector.py", line 197 in get
  File "/dist/python/PROJ/flask-restful/0.3.6/lib/flask_restful/__init__.py", 
line 595 in dispatch_request

It looks likle a bug in your sybase database connector.

--

___
Python tracker 

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



[issue40063] Fatal python error:PyEval_RestoreThread NULL tstate

2020-03-25 Thread Amit Moghe


Amit Moghe  added the comment:

Hi ,

Please see below trace logger -
 
Failed transaction.
Statement: SELECT Col1, Col2, Col3 FROM TABLE where APPLICATION='TEST'  ORDER 
BY UPDATE_TIME DESCFatal Python error: PyEval_RestoreThread: NULL tstate


Current thread 0x7f3e435fe700 (most recent call first):
  File "/generic_sybase_connector.py", line 175 in _do
  File "/generic_sybase_connector.py", line 155 in _safe_cursor_operation
  File "/generic_sybase_connector.py", line 184 in fetch_from_db
  File "/cva_sybase_connector.py", line 197 in get_smoke_test_name_data
  File "/db_connector.py", line 197 in get
  File "/dist/python/PROJ/flask-restful/0.3.6/lib/flask_restful/__init__.py", 
line 595 in dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/views.py", line 88 in view
  File "/dist/python/PROJ/flask-restful/0.3.6/lib/flask_restful/__init__.py", 
line 480 in wrapper
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 1799 in 
dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 1813 in 
full_dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 2292 in wsgi_app
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 2309 in __call__
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/debug/__init__.py", line 
288 in debug_application
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 260 in 
execute
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 270 in 
run_wsgi
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 328 in 
handle_one_request
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/http/server.py", line 
401 in handle
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 293 in 
handle
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/socketserver.py", line 
673 in __init__
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/socketserver.py", line 
344 in finish_request
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/socketserver.py", line 
617 in process_request_thread
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/threading.py", line 859 
in run
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/threading.py", line 911 
in _bootstrap_inner
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/threading.py", line 879 
in _bootstrap

Thread 0x7f3e4924d700 (most recent call first):
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/tokenize.py", line 454 
in open
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/linecache.py", line 130 
in updatecache
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/linecache.py", line 42 
in getlines
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/linecache.py", line 15 
in getline
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/traceback.py", line 65 
in _extract_tb_or_stack_iter
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/traceback.py", line 18 
in _format_list_iter
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/traceback.py", line 153 
in _format_exception_iter
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/traceback.py", line 181 
in format_exception
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/traceback.py", line 256 
in format_exc
  File "/generic_sybase_connector.py", line 159 in _safe_cursor_operation
  File "/generic_sybase_connector.py", line 184 in fetch_from_db
  File "/cva_sybase_connector.py", line 128 in get_dashboard_data
  File "/db_connector.py", line 50 in get
  File "/dist/python/PROJ/flask-restful/0.3.6/lib/flask_restful/__init__.py", 
line 595 in dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/views.py", line 88 in view
  File "/dist/python/PROJ/flask-restful/0.3.6/lib/flask_restful/__init__.py", 
line 480 in wrapper
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 1799 in 
dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 1813 in 
full_dispatch_request
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 2292 in wsgi_app
  File "/dist/python/PROJ/flask/1.0.2/lib/flask/app.py", line 2309 in __call__
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/debug/__init__.py", line 
288 in debug_application
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 260 in 
execute
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 270 in 
run_wsgi
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 328 in 
handle_one_request
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/http/server.py", line 
401 in handle
  File "/dist/python/PROJ/werkzeug/0.14.1/lib/werkzeug/serving.py", line 293 in 
handle
  File "/dist/python/PROJ/core/3.4.4/exec/lib/python3.4/socketserver.py", line 
673 in __init__
  File "/dist/pythTraceback (most recent call last):
  File "/generic_sybase_connector.py", line 155, in _safe_cursor_operation
return 

[issue40063] Fatal python error:PyEval_RestoreThread NULL tstate

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

This issue looks like a bug in Flask or a C extension used by your application. 
You should try to debug it with gdb. Or at least try to get a Python traceback:
https://pythondev.readthedocs.io/debug_tools.html#get-a-traceback-on-a-crash

You should specify your Python version, OS and OS version, explain how to 
reproduce the crash, etc.

--
nosy: +vstinner

___
Python tracker 

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



[issue40063] Fatal python error:PyEval_RestoreThread NULL tstate

2020-03-25 Thread Amit Moghe


New submission from Amit Moghe :

Hi Team, I am writting an application in python flask. I  this when flask 
application is establishing Sybase DB connection through normal python 
SybaseConnector. In this process I am getting below error, could you please 
suggest on this ?
Error :Fatal python error:PyEval_RestoreThread NULL tstate
flask/1.0.2/lib/flask/app.py line 1815 in full_dispatch_request
Memory fault(Coredump)

Could you please suggest on this?

--
components: Tests
messages: 365001
nosy: amitrutvij
priority: normal
severity: normal
status: open
title: Fatal python error:PyEval_RestoreThread NULL tstate
type: crash
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



[issue40059] Provide a toml module in the standard library

2020-03-25 Thread Brett Cannon


Brett Cannon  added the comment:

The plan is to start discussing adding a TOML parser once the spec reaches 1.0 
(which we will know about as one of the pip contributors also manages TOML).

--

___
Python tracker 

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



[issue39352] Remove the formatter module, deprecated since Python 3.4

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

I'm no longer sure that it's a good idea to remove a module from the stdlib 
without providing a solution for the few people relying on it. I removed 
dummy_threading module in Python 3.9 and obviously it broke an application 
(bodhi): https://bugzilla.redhat.com/show_bug.cgi?id=1814243

I should think about a way to move removed stdlib modules to PyPI, but I would 
prefer to have a formal PEP process for that.

In the meanwhile, I close this PR.

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



[issue39541] distutils: Remove bdist_wininst (Windows .exe installers) in favor of bdist_wheel (.whl)

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

There is no clear consensus towards removing distutils bdist_wininst command. I 
close this PR for now, it's too late for Python 3.9 (feature freeze is coming 
soon). We can reconsider removing it once setuptools will be more ready for 
this removal.

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



[issue39873] Debug mode: check if objects are valid

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

This change was mostly an experimentation. But I'm not sure that it does solve 
any issue. The change is more intrusive than what I expected. I prefer to 
abandon PR 18803 and this issue.

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



[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

> Isn't this a duplicate of bpo-38826 ?

Oh right. I marked it 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



[issue38826] Regular Expression Denial of Service in urllib.request.AbstractBasicAuthHandler

2020-03-25 Thread STINNER Victor


STINNER Victor  added the comment:

This issue is a duplicate of bpo-39503 which has a PR. Thanks Ben Caller for 
the report, I credited you in my fix ;-)

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> [security][CVE-2020-8492] Denial of service in 
urllib.request.AbstractBasicAuthHandler

___
Python tracker 

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



[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-25 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

This behavior change is considered being reverted upstream.

PR: https://github.com/openssl/openssl/pull/11400

--

___
Python tracker 

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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread hai shi


hai shi  added the comment:

`_divide_and_round()` would be deleted in 
https://github.com/python/cpython/blob/master/Lib/datetime.py#L2516.

if it's removed L2516 of datetime.py, `test_name_cleanup()` would be 
failed.Looks like it's a planed behavior~

--
nosy: +shihai1991

___
Python tracker 

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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +belopolsky, p-ganssle

___
Python tracker 

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



[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
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-25 Thread Brandt Bucher


Brandt Bucher  added the comment:

And... that's it! Big thanks to everybody who had a part in making this happen.

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



  1   2   >