[issue38999] Python launcher on Windows does not detect active venv

2019-12-09 Thread Paul Moore


Paul Moore  added the comment:

See PEP 486 
(https://www.youtube.com/watch?v=Lmq13nrEFaM&list=PLuE3ABw6vYeR0gcPT6uj25ZZhmSP9vRB2&index=28&t=0s).
 This is intended behaviour, as it is assumed that explicitly specifying a 
Python version means that the user had a specific Python interpreter in mind.

There are also technical issues - if the shebang says #!/usr/bin/python2, and a 
virtual environment is active, how do we know if it's a Python 2 or 3 
environment (without launching the interpreter, which is a significant extra 
cost for the launcher)? It would definitely be wrong to launch a Python 3 
interpreter in that case.

--

___
Python tracker 

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



[issue38999] Python launcher on Windows does not detect active venv

2019-12-09 Thread Paul Moore


Change by Paul Moore :


--
Removed message: https://bugs.python.org/msg358060

___
Python tracker 

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



[issue38999] Python launcher on Windows does not detect active venv

2019-12-09 Thread Paul Moore


Paul Moore  added the comment:

See PEP 486 (https://www.python.org/dev/peps/pep-0486/). This is intended 
behaviour, as it is assumed that explicitly specifying a Python version means 
that the user had a specific Python interpreter in mind.

There are also technical issues - if the shebang says #!/usr/bin/python2, and a 
virtual environment is active, how do we know if it's a Python 2 or 3 
environment (without launching the interpreter, which is a significant extra 
cost for the launcher)? It would definitely be wrong to launch a Python 3 
interpreter in that case.

--

___
Python tracker 

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



[issue31625] stop using ranlib

2019-12-09 Thread Jakub Piotr Cłapa

Change by Jakub Piotr Cłapa :


--
pull_requests: +16994
pull_request: https://github.com/python/cpython/pull/15387

___
Python tracker 

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



[issue37916] distutils: allow overriding of the RANLIB command on macOS (darwin)

2019-12-09 Thread Ned Deily


Ned Deily  added the comment:

Thank you for the PR. I did a quick look at it and added some comments to the 
PR including wondering whether the root cause of the problematic behavior is 
elsewhere in Distutils.

--
nosy: +ned.deily

___
Python tracker 

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



[issue39002] Small typo in Lib/test/test_statistics.py: tranlation -> translation

2019-12-09 Thread Tim Gates


New submission from Tim Gates :

There is a small typo in Lib/test/test_statistics.py.
Should read translation rather than tranlation.

--
assignee: docs@python
components: Documentation
messages: 358063
nosy: docs@python, timgates42
priority: normal
pull_requests: 16995
severity: normal
status: open
title: Small typo in Lib/test/test_statistics.py: tranlation -> translation
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



[issue24554] GC should happen when a subinterpreter is destroyed

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

This issue is partially fixed in the master branch. Extract of the 
finalize_interp_clear() function, called by Py_EndInterpreter():

/* Clear interpreter state and all thread states */
PyInterpreterState_Clear(tstate->interp);

/* Trigger a GC collection on subinterpreters*/
if (!is_main_interp) {
_PyGC_CollectNoFail();
}

gc.collect() is now called.

It's only "partially" fixed because I would prefer to trigger a GC collection 
before or during PyInterpreterState_Clear(). IMHO trigger it after 
PyInterpreterState_Clear() creates a risk of crash in finalizers written in C 
which don't handle well before called very late during Python finalization. 
After PyInterpreterState_Clear(), Python is basically unusable. All modules are 
cleared.

--

___
Python tracker 

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



[issue38091] Import deadlock detection causes deadlock

2019-12-09 Thread Armin Rigo


Change by Armin Rigo :


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

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

> I think fixing the underlying pty issue should certainly be the goal (...)

I wrote PR 17519 which fix the bug. We just have to ignore SIGHUP signal.

--

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16999
pull_request: https://github.com/python/cpython/pull/17521

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a1838ec2592e5082c75c77888f2a7a3eb21133e5 by Victor Stinner in 
branch 'master':
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)
https://github.com/python/cpython/commit/a1838ec2592e5082c75c77888f2a7a3eb21133e5


--

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +16998
pull_request: https://github.com/python/cpython/pull/17520

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, I merged my fix to master. The backport to 3.7 and 3.8 will follow quickly. 
I close the issue.

Sorry for the inconvenience ;-)

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



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17000
pull_request: https://github.com/python/cpython/pull/17522

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread miss-islington


miss-islington  added the comment:


New changeset b9f4b49c6e525afd6fce02cfc14be52e98a18f67 by Miss Islington (bot) 
in branch '3.7':
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)
https://github.com/python/cpython/commit/b9f4b49c6e525afd6fce02cfc14be52e98a18f67


--
nosy: +miss-islington

___
Python tracker 

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



[issue38547] test_pty fails when using setsid()

2019-12-09 Thread miss-islington


miss-islington  added the comment:


New changeset d08fd298dc8d5631f6c504d01ee4f9cfb47db79d by Miss Islington (bot) 
in branch '3.8':
bpo-38547: Fix test_pty if the process is the session leader (GH-17519)
https://github.com/python/cpython/commit/d08fd298dc8d5631f6c504d01ee4f9cfb47db79d


--

___
Python tracker 

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



[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-09 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

Yes PR GH-17513 does fix the problem.
Thanks Mark.

--

___
Python tracker 

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



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-09 Thread Ned Deily


Ned Deily  added the comment:


New changeset 188d5ae6f047342f3d6860646ccf1a523ef8b0ed by Ned Deily (Miss 
Islington (bot)) in branch '3.7':
bpo-38673: dont switch to ps2 if the line starts with comment or whitespace 
(GH-17421) (GH-17522)
https://github.com/python/cpython/commit/188d5ae6f047342f3d6860646ccf1a523ef8b0ed


--
nosy: +ned.deily

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3 by Victor Stinner in 
branch 'master':
bpo-38916: array.array: remove fromstring() and tostring() (GH-17487)
https://github.com/python/cpython/commit/0131aba5ae20d704b972ecd2ef0fc6c9e370a1b3


--

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17001
pull_request: https://github.com/python/cpython/pull/17523

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

Brett Cannon: "If it was documented as deprecated and raising a deprecation 
warning then 3.2 is definitely far enough back to warrant removing it."

I understood that Brett is in favor of removing it.

Raymond Hettinger: "The tostring() method should be handled in the same way."

Done.

Raymond Hettinger: "Remediation is easy because from_bytes() is a alias"

For code supporting Python 2 and Python 3, it may be annoying, but Python 3.9 
will only be released after Python 2 support will end. So I consider that it's 
an acceptable annoyance. Users can put "if six.PY3" in their code or don't 
support Python 3.9.


Raymond Hettinger: "Still, all removals cause disruption from at least some 
users"

I'm perfectly aware of that. But I consider that it's worth it. I chose to push 
my change early in the 3.9 development cycle, to get users feedback earlier. So 
we can still revert the change if they are too many complains.


Raymond Hettinger: "The other deprecation in the array module says, "Deprecated 
since version 3.3, will be removed in version 4.0".  Perhaps this one should 
have had the same qualifier."

I proposed PR 17523 to document that tostring() and fromstring() deprecated 
aliases will be removed in Python 3.9.

--

___
Python tracker 

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



[issue39003] test_unparse leaked [35, 5, 6] references: when pass when run again

2019-12-09 Thread STINNER Victor


New submission from STINNER Victor :

Sometimes, test_unparse leak references, sometimes it pass.

$ ./python -m test -R 3:3 test_unparse
(...)
test_unparse leaked [35, 5, 6] references, sum=46
(...)
Tests result: FAILURE

$ ./python -m test -R 3:3 test_unparse
(...)
Tests result: SUCCESS

--
components: Tests
messages: 358074
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: test_unparse leaked [35, 5, 6] references: when pass when run again
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



[issue39003] test_unparse leaked [35, 5, 6] references: fail randomly, pass when run again

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
title: test_unparse leaked [35, 5, 6] references: when pass when run again -> 
test_unparse leaked [35, 5, 6] references: fail randomly, pass when run again

___
Python tracker 

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



[issue39004] test_largefile: test_it() failed on

2019-12-09 Thread STINNER Victor


New submission from STINNER Victor :

0:22:15 load avg: 15.82 [288/420/3] test_largefile failed (11 min 19 sec) -- 
running: test_capi (2 min 40 sec), test_compileall (3 min 42 sec), test_shelve 
(14 min 46 sec), test_sax (10 min 4 sec), test_dbm (3 min 36 sec), 
test_multiprocessing_spawn (13 min 21 sec), test_posix (3 min 39 sec), 
test_mailbox (12 min 46 sec), test_asyncio (9 min 23 sec)
beginning 6 repetitions
123456
.Warning -- threading._dangling was modified by test_largefile
  Before: {}
  After:  {, 
} 
test test_largefile failed -- Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64.refleak/build/Lib/test/test_largefile.py",
 line 211, in test_it
self.assertEqual(os.path.getsize(TESTFN2), size)
AssertionError: 2496925696 != 250001

--
messages: 358075
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_largefile: test_it() failed on

___
Python tracker 

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



[issue39004] test_largefile: TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

AMD64 Fedora Stable Refleaks 3.x:
https://buildbot.python.org/all/#/builders/126/builds/14

--
components: +Tests
nosy: +giampaolo.rodola, pablogsal
title: test_largefile: test_it() failed on -> test_largefile: 
TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x
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



[issue39005] test_faulthandler: test_dump_traceback_later_file() fails randomly on AMD64 RHEL8 Refleaks 3.x

2019-12-09 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 RHEL8 Refleaks 3.x:
https://buildbot.python.org/all/#/builders/206/builds/13

The system load was quite high: 12.64.

0:23:25 load avg: 12.64 [283/420/1] test_faulthandler failed (1 min 7 sec) -- 
running: test_bz2 (8 min 20 sec), test_dbm (12 min 51 sec), test_asyncio (14 
min 46 sec), test_mmap (9 min 3 sec), test_zipfile (13 min 9 sec), test_mailbox 
(8 min 49 sec), test_largefile (8 min 15 sec), test_shelve (19 min 51 sec)
beginning 6 repetitions
123456
.test test_faulthandler failed -- Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.refleak/build/Lib/test/test_faulthandler.py",
 line 610, in test_dump_traceback_later_file
self.check_dump_traceback_later(filename=filename)
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.refleak/build/Lib/test/test_faulthandler.py",
 line 594, in check_dump_traceback_later
self.assertRegex(trace, regex)
AssertionError: Regex didn't match: '^Timeout \\(0:00:00.50\\)!\\nThread 
0x[0-9a-f]+ \\(most recent call first\\):\\n  File "", line 17 in 
func\n  File "", line 26 in $' not found in 'Timeout 
(0:00:00.50)!\nThread 0x7f69484b2740 (most recent call first):\n  File 
"", line 18 in func\n  File "", line 26 in '

The test passed when re-run in verbose mode. So it may be related to the high 
system load while tests were run in parallel.

--
components: Tests
messages: 358077
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_faulthandler: test_dump_traceback_later_file() fails randomly on 
AMD64 RHEL8 Refleaks 3.x
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



[issue39003] test_unparse leaked [35, 5, 6] references: fail randomly, pass when run again

2019-12-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Is not this test select random files in non-verbose mode?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue10915] Make the PyGILState API compatible with multiple interpreters

2019-12-09 Thread Paulo Henrique Silva


Change by Paulo Henrique Silva :


--
nosy: +phsilva

___
Python tracker 

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



[issue15751] Support subinterpreters in the GIL state API

2019-12-09 Thread Paulo Henrique Silva


Change by Paulo Henrique Silva :


--
nosy: +phsilva

___
Python tracker 

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



[issue39006] test_ssl: sendfile tests fail on AMD64 Debian root 3.7

2019-12-09 Thread STINNER Victor


New submission from STINNER Victor :

Pablo wrote on the buildbot-status mailing list:
"It seems that this worker has some bad upgrade to SSL as all branches fail at 
the same time:"

AMD64 Debian root 3.7:
https://buildbot.python.org/all/#builders/3/builds/8

==
ERROR: test_sock_sendfile_exception 
(test.test_asyncio.test_unix_events.SelectorEventLoopUnixSockSendfileTests)
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 613, in test_sock_sendfile_exception
sock, proto = self.prepare()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 491, in prepare
self.run_loop(self.loop.sock_connect(sock, (support.HOST, port)))
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 481, in run_loop
return self.loop.run_until_complete(coro)
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/base_events.py", 
line 579, in run_until_complete
return future.result()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/selector_events.py",
 line 460, in sock_connect
if isinstance(sock, ssl.SSLSocket):
AttributeError: 'NoneType' object has no attribute 'SSLSocket'
==
ERROR: test_sock_sendfile_iobuffer 
(test.test_asyncio.test_unix_events.SelectorEventLoopUnixSockSendfileTests)
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 524, in test_sock_sendfile_iobuffer
sock, proto = self.prepare()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 491, in prepare
self.run_loop(self.loop.sock_connect(sock, (support.HOST, port)))
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 481, in run_loop
return self.loop.run_until_complete(coro)
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/base_events.py", 
line 579, in run_until_complete
return future.result()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/selector_events.py",
 line 460, in sock_connect
if isinstance(sock, ssl.SSLSocket):
AttributeError: 'NoneType' object has no attribute 'SSLSocket'
==
ERROR: test_sock_sendfile_not_a_file 
(test.test_asyncio.test_unix_events.SelectorEventLoopUnixSockSendfileTests)
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 515, in test_sock_sendfile_not_a_file
sock, proto = self.prepare()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 491, in prepare
self.run_loop(self.loop.sock_connect(sock, (support.HOST, port)))
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/test/test_asyncio/test_unix_events.py",
 line 481, in run_loop
return self.loop.run_until_complete(coro)
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/base_events.py", 
line 579, in run_until_complete
return future.result()
  File 
"/root/buildarea/3.7.angelico-debian-amd64/build/Lib/asyncio/selector_events.py",
 line 460, in sock_connect
if isinstance(sock, ssl.SSLSocket):
AttributeError: 'NoneType' object has no attribute 'SSLSocket'

--
assignee: christian.heimes
components: SSL, Tests
messages: 358079
nosy: christian.heimes, pablogsal, vstinner
priority: normal
severity: normal
status: open
title: test_ssl: sendfile tests fail on AMD64 Debian root 3.7
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



[issue39006] test_ssl: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

"""
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_ssl  _tkinter  _uuid  
"""

The _ssl module was not built on this worker, so why test_ssl was not skipped?

--
title: test_ssl: sendfile tests fail on AMD64 Debian root 3.7 -> test_ssl: 
sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components:  -SSL
nosy:  -christian.heimes
title: test_ssl: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is 
missing -> test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl 
is missing

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

I don't see test_ssl.py in the logs. test_unix_events.py is failing because it 
is missing a check for _ssl.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

Same issue on AMD64 Debian root 3.8:
https://buildbot.python.org/all/#builders/162/builds/14

And AMD64 Debian root 3.x:
https://buildbot.python.org/all/#builders/225/builds/28

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



[issue38987] 3.8.0 on GNU/Linux fails to find shared library

2019-12-09 Thread Kevin Buchs

Kevin Buchs  added the comment:

No, I didn’t. But I had made no changes, so it should not have needed
changing.

On Sun, Dec 8, 2019 at 4:59 PM Christian Heimes 
wrote:

>
> Christian Heimes  added the comment:
>
> Did you update the ld.so cache with ldconfig?
>
> --
> nosy: +christian.heimes
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0381ea79ac2da03179c8512c581cac588b69cff9 by Victor Stinner in 
branch '3.8':
bpo-38916: Document array.array deprecation (GH-17523)
https://github.com/python/cpython/commit/0381ea79ac2da03179c8512c581cac588b69cff9


--

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17003
pull_request: https://github.com/python/cpython/pull/17525

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Sorry, my fault.

--
nosy: +asvetlov

___
Python tracker 

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



[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-12-09 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +17004
pull_request: https://github.com/python/cpython/pull/17526

___
Python tracker 

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



[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

The patch broke Python builds without ssl support and caused a minor 
performance regression in hot paths. I changed the code to only perform the 
check in debug mode.

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

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

The problem was introduced by https://bugs.python.org/issue37404. I created 
https://github.com/python/cpython/pull/17526 to fix the problem and address a 
minor performance regression.

--

___
Python tracker 

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



[issue38916] Remove array.fromstring

2019-12-09 Thread miss-islington


miss-islington  added the comment:


New changeset 21e11383cc59146184da0d69a3f19f004215f9a7 by Miss Islington (bot) 
in branch '3.7':
bpo-38916: Document array.array deprecation (GH-17523)
https://github.com/python/cpython/commit/21e11383cc59146184da0d69a3f19f004215f9a7


--
nosy: +miss-islington

___
Python tracker 

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



[issue38916] Remove array.fromstring() and array.tostring() aliases, deprecated since Python 3.2

2019-12-09 Thread STINNER Victor

STINNER Victor  added the comment:

The aliases were deprecated since Python 3.2. It's now time to use the newer 
names.

array.array.fromstring() implictly converted Unicode to UTF-8:

$ python3
Python 3.7.5 (default, Oct 17 2019, 12:16:48) 
>>> import array
>>> a=array.array('B')
>>> a.fromstring('€uro')
>>> a
array('B', [226, 130, 172, 117, 114, 111])
>>> list('€uro'.encode('utf8'))
[226, 130, 172, 117, 114, 111]

The removal is now documented in 3.7 and 3.8.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: Remove array.fromstring -> Remove array.fromstring() and 
array.tostring() aliases, deprecated since Python 3.2

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17005
pull_request: https://github.com/python/cpython/pull/17527

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17006
pull_request: https://github.com/python/cpython/pull/17528

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 82b4950b5e92bec343a436b3f9c116400b66e1b9 by Victor Stinner in 
branch 'master':
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
https://github.com/python/cpython/commit/82b4950b5e92bec343a436b3f9c116400b66e1b9


--

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

I wrote a fix which was approved by Andrew Svetlov. Andrew prefers my PR than 
Christian's PR 17526, so I merged my PR instead. See PR 17526 discussion for 
the rationale.

I merged your PR to master, 3.7 and 3.8 backport will automatically follow. I 
close the issue.

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

___
Python tracker 

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



[issue38699] socket: change listen() default backlog from 128 to 4096?

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

> https://github.com/python-trio/trio/blob/master/trio/_highlevel_open_tcp_listeners.py

Extract:

# A large backlog can also use a bit more kernel memory, but this seems fairly
# negligible these days.

That's the main question here. Python is used on various platforms for various 
use cases.

Extract of the current C code:

/* We try to choose a default backlog high enough to avoid connection drops
 * for common workloads, yet not too high to limit resource usage. */
int backlog = Py_MIN(SOMAXCONN, 128);

Maybe the status quo is just fine and this issue should be closed. It's trivial 
to override the default. This issue is stricted to the *default* value.

--

___
Python tracker 

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



[issue38699] socket: change listen() default backlog from 128 to 4096?

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

gunicorn, tornado, uwsgi, trio are specialized use cases which expect high 
concurrency.

Maybe a tradeoff may be to document the default and suggest different values 
depending on the use cases, and/or to point to documentation.

--

___
Python tracker 

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



[issue20443] __code__. co_filename should always be an absolute path

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Anything new here? 3.9.0a2 is due next week.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue38949] incorrect prefix, exec_prefix in distutils.command.install

2019-12-09 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

get_config_vars() defined in distutils.sysconfig sets 'prefix' and 
'exec_prefix' using sys.prefix (resp. sys.exec_prefix) on non nt platforms so 
there is no problem. Closing the issue as not a bug.

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Note: this is going to miss Python 3.8.1 as I'm releasing 3.8.1rc1 right now.  
Please address this before 3.8.2 (due in February).

--

___
Python tracker 

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



[issue38856] wait_closed() can raise ConnectionResetError

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Note: this is going to miss Python 3.8.1 as I'm releasing 3.8.1rc1 right now.  
Please address this before 3.8.2 (due in February).

--

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread miss-islington


miss-islington  added the comment:


New changeset b22183f2738e0e6c23f8c5fb5b232768c184ec96 by Miss Islington (bot) 
in branch '3.8':
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
https://github.com/python/cpython/commit/b22183f2738e0e6c23f8c5fb5b232768c184ec96


--
nosy: +miss-islington

___
Python tracker 

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



[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Note: this is going to miss Python 3.8.1 as I'm releasing 3.8.1rc1 right now.  
Please address this before 3.8.2 (due in February).

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue39006] test_asyncio: sendfile tests fail on AMD64 Debian root 3.7 when _ssl is missing

2019-12-09 Thread miss-islington


miss-islington  added the comment:


New changeset a0078d9a3335a5e99afe97590fdcb8e2f526ed7b by Miss Islington (bot) 
in branch '3.7':
bpo-39006: Fix asyncio when the ssl module is missing (GH-17524)
https://github.com/python/cpython/commit/a0078d9a3335a5e99afe97590fdcb8e2f526ed7b


--

___
Python tracker 

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



[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset ab513a38c98695f271e448fe2cb7c5e39eef by Łukasz Langa (Kyle 
Stanley) in branch 'master':
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR (#17311)
https://github.com/python/cpython/commit/ab513a38c98695f271e448fe2cb7c5e39eef


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17007
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17529

___
Python tracker 

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



[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Note: this is going to miss Python 3.8.1 as I'm releasing 3.8.1rc1 right now.  
Please address this before 3.8.2 (due in February).

--

___
Python tracker 

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



[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17008
pull_request: https://github.com/python/cpython/pull/17530

___
Python tracker 

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



[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-09 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset bba873e633f0f1e88ea12fb935cbd58faa77f976 by Mark Dickinson in 
branch 'master':
bpo-38992: avoid fsum test failure from constant-folding (GH-17513)
https://github.com/python/cpython/commit/bba873e633f0f1e88ea12fb935cbd58faa77f976


--

___
Python tracker 

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



[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 79c29742a8ba96fc933efe34e55e90537b3eb780 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.8':
bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR 
(GH-17311) (#17529)
https://github.com/python/cpython/commit/79c29742a8ba96fc933efe34e55e90537b3eb780


--

___
Python tracker 

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



[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Kyle, I'm releasing 3.8.1rc1 now. Please add the What's New entry before next 
Monday (3.8.1).

--
stage: patch review -> 

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d219cc4180e7589807ebbef7421879f095e72a98 by Łukasz Langa (Yury 
Selivanov) in branch 'master':
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)
https://github.com/python/cpython/commit/d219cc4180e7589807ebbef7421879f095e72a98


--

___
Python tracker 

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



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-09 Thread Guido van Rossum


Guido van Rossum  added the comment:

Ned agreed, it's merged into 3.7, so let's close.

--

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17010
pull_request: https://github.com/python/cpython/pull/17532

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17009
pull_request: https://github.com/python/cpython/pull/17531

___
Python tracker 

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



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-09 Thread Guido van Rossum


Change by Guido van Rossum :


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



[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2019-12-09 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

As I wrote, I don't think that we should fix the code but the failed uvloop 
test is slightly weird instead.

Maybe I'm wrong, I need to communicate with Yuri anyway.

--

___
Python tracker 

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



[issue38856] wait_closed() can raise ConnectionResetError

2019-12-09 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Sorry, I've missed this issue.
I'll address it in a while.

--

___
Python tracker 

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



[issue38856] wait_closed() can raise ConnectionResetError

2019-12-09 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
assignee:  -> asvetlov

___
Python tracker 

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



[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-09 Thread Guido van Rossum


Guido van Rossum  added the comment:

(And I'm giving up on 3.6 and 2.7 as these are close to their end of life.)

--

___
Python tracker 

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



[issue34793] Remove support for "with (await asyncio.lock):"

2019-12-09 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue37535] Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1

2019-12-09 Thread Wator Sead


Wator Sead  added the comment:

All new releases which include an OpenSSL version above 1.1.1 has the same 
issue. Can anybody fix it? Thanks a lot!

--
nosy: +seahoh
versions: +Python 3.5, 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



[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-09 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0d57db27f2c563b6433a220b646b50bdeff8a1f2 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.8':
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (GH-9518) 
(#17531)
https://github.com/python/cpython/commit/0d57db27f2c563b6433a220b646b50bdeff8a1f2


--

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 66d7a5d58a88bce312bc4668f2cc54c9488c5bd8 by Łukasz Langa (Miss 
Islington (bot)) in branch '3.7':
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (GH-9518) 
(#17532)
https://github.com/python/cpython/commit/66d7a5d58a88bce312bc4668f2cc54c9488c5bd8


--

___
Python tracker 

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



[issue20443] __code__. co_filename should always be an absolute path

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17012
pull_request: https://github.com/python/cpython/pull/17534

___
Python tracker 

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



[issue32312] Create Py_AtExitRegister C API

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue38829] Make the function flush_io accessible in the C-API

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API -IO

___
Python tracker 

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



[issue18697] Unify arguments names in Unicode object C API documentation

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API
nosy: +vstinner

___
Python tracker 

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



[issue36346] Prepare for removing the legacy Unicode C API

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue37465] Incorrect documentation for `s#` arguments in C API argument parsing

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue34272] Reorganize C API tests

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue35827] C API dictionary views type checkers are not documented

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue30155] Add ability to get/set tzinfo on datetime instances in C API

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue33592] Document contextvars C API

2019-12-09 Thread STINNER Victor


Change by STINNER Victor :


--
components: +C API

___
Python tracker 

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



[issue30155] Add ability to get/set tzinfo on datetime instances in C API

2019-12-09 Thread Alexander Belopolsky


Change by Alexander Belopolsky :


--
dependencies: +Add timezone support to datetime C API

___
Python tracker 

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



[issue20443] __code__. co_filename should always be an absolute path

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:

> Anything new here? 3.9.0a2 is due next week.

I had it in my TODO list but I lost the bpo number. Thanks for the reminder :-) 
I wrote PR 17534 that I plan to merge as soon as the CI tests pass.

--

___
Python tracker 

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



[issue37535] Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

The problem is caused by the way how TLS 1.3 works. Select considers a TLS 1.3 
socket as readable after the handshake, because there is still data on the 
line. The server is sending session tickets (usually two) after the handshake 
has been performed. If you set "context.num_tickets = 0" in server.py or 
"context.maximum_version = ssl.TLSVersion.TLSv1_2" in either server.py or 
client.py, your script works. Ticket #37120 has more information on that.

Session tickets are low-level TLS protocol elements. Methods like 
SSLSocket.pending() and SSLSocket.recv() only act on high-level application 
protocol data. That's why pending() returns 0 and recv() is blocking. There is 
no application data available.

You have to take another approach and follow the guidelines in 
https://docs.python.org/3/library/ssl.html#notes-on-non-blocking-sockets . You 
also have to set the SSLSocket into non-blocking mode and handle 
SSLWantWriteError or SSLWantReadError.

--
resolution:  -> wont fix
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



[issue20443] __code__. co_filename should always be an absolute path

2019-12-09 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a1a99b4bb7cbe2dbc55a1d92c3c509b4466d3c3b by Victor Stinner in 
branch 'master':
bpo-20443: No longer make sys.argv[0] absolute for script (GH-17534)
https://github.com/python/cpython/commit/a1a99b4bb7cbe2dbc55a1d92c3c509b4466d3c3b


--

___
Python tracker 

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



[issue34776] Postponed annotations break inspection of dataclasses

2019-12-09 Thread Łukasz Langa

Change by Łukasz Langa :


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



[issue38987] 3.8.0 on GNU/Linux fails to find shared library

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

On Ubuntu and other Linux distros you must run ldconfig any time you install or 
change a shared library. Otherwise the dynamic linker won't be able to locate 
the shared library. 

I'm able to confirm that python3.8 does not work prior to calling, but works 
after calling ldconfig.

# ./configure --enable-shared
# make
# make install
# python3.8
python3.8: error while loading shared libraries: libpython3.8.so.1.0: cannot 
open shared object file: No such file or directory
# ldconfig
# python3.8
Python 3.8.0 (default, Dec  9 2019, 16:36:58) 
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: crash -> resource usage

___
Python tracker 

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



[issue38987] 3.8.0 on GNU/Linux fails to find shared library

2019-12-09 Thread Christian Heimes


Christian Heimes  added the comment:

ld.so and ldd don't use /etc/ld.so.conf to locate libraries. They use 
/etc/ld.so.cache, which is created by ldconfig from /etc/ld.so.conf. The cache 
is typically the first file opened by a dynamically linked binary.

# ls -la /usr/local/lib/libpython3.*
lrwxrwxrwx. 1 root root   19 Dec  9 16:49 /usr/local/lib/libpython3.8.so -> 
libpython3.8.so.1.0
-rwxr-xr-x. 1 root root 17356488 Dec  9 16:49 /usr/local/lib/libpython3.8.so.1.0
-rwxr-xr-x. 1 root root 7448 Dec  9 16:49 /usr/local/lib/libpython3.so
# ldd /usr/local/bin/python3.8
linux-vdso.so.1 (0x7fff499d9000)
libpython3.8.so.1.0 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fd1cd2f9000)
/lib64/ld-linux-x86-64.so.2 (0x7fd1cd8ec000)
# ldconfig
# ldd /usr/local/bin/python3.8
linux-vdso.so.1 (0x7ffe19d9a000)
libpython3.8.so.1.0 => /usr/local/lib/libpython3.8.so.1.0 
(0x7ff7f46f7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7ff7f4306000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7ff7f40e7000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7ff7f3ee3000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x7ff7f3ce)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7ff7f3942000)
/lib64/ld-linux-x86-64.so.2 (0x7ff7f4ea4000)

--

___
Python tracker 

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



[issue36982] Add support for extended color functions in ncurses 6.1

2019-12-09 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +17013
pull_request: https://github.com/python/cpython/pull/17536

___
Python tracker 

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



[issue39007] Add audit hooks to winreg module

2019-12-09 Thread Steve Dower


New submission from Steve Dower :

The winreg module should have hooks added.

--
assignee: steve.dower
components: Windows
messages: 358119
nosy: christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Add audit hooks to winreg module
type: security
versions: 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



[issue39003] test_unparse leaked [35, 5, 6] references: fail randomly, pass when run again

2019-12-09 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-09 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 3c5feaffde1944052830c896ae39c54e76a2e063 by Mark Dickinson (Miss 
Islington (bot)) in branch '3.8':
bpo-38992: avoid fsum test failure from constant-folding (GH-17513) (GH-17530)
https://github.com/python/cpython/commit/3c5feaffde1944052830c896ae39c54e76a2e063


--

___
Python tracker 

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



  1   2   >