[issue26527] CGI library - Using unicode in header fields

2020-03-22 Thread Martin Panter
Martin Panter added the comment: I’m not an expert on the topic, but it sounds like this might be a duplicate of Issue 23434, which has more discussion. -- nosy: +martin.panter resolution: -> duplicate status: open -> pending superseder: -> support encoded filename in

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread SilentGhost
Change by SilentGhost : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18469 pull_request: https://github.com/python/cpython/pull/19108 ___ Python tracker ___

[issue40014] os.getgrouplist() can fail on macOS

2020-03-22 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-22 Thread Saaheer Purav
Saaheer Purav added the comment: I use Windows 10. I had a similar issue with python 3.8.0, which is why I uninstalled it and installed Python 3.8.2. The issue had been cleared, but then after a few weeks it happened again. -- ___ Python tracker

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: posix_putenv_garbage no longer used on Windows. -- resolution: -> fixed stage: patch review -> resolved status: pending -> closed ___ Python tracker

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Is this a case of the warning below? https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing.connection.Connection.recv > Warning The Connection.recv() method automatically unpickles the data it > receives,

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure if this was done but CPython has a page on reporting security issues that you can use for future reports so that they can be triaged before being public. https://www.python.org/dev/security/ -- nosy: +vstinner

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39538] SystemError when set Element.attrib to non-dict

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed by issue39822. e.attrib = 1 now raises a TypeError. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed versions: -Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2020-03-22 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Hey, any update on this? As I mentioned, I'm willing to implement everything I mention here in one or more PRs, but I wanted to wait for a go-ahead in case some of the changes were not desired. Let me know and I'll go ahead. Thanks! --

[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden
New submission from Kjell Braden : on Windows 10 with Python 3.8.2 and Python 3.9.0a4, the ProactorEventLoop raises "OSError: [WinError 87] The parameter is incorrect" when recvfrom on an AF_INET6 socket returns data: DEBUG:asyncio:Using proactor: IocpProactor INFO:asyncio:Datagram endpoint

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2020-03-22 Thread Steve Dower
Steve Dower added the comment: Go ahead. I think you should create three PRs (docs, tests and code), with only as many tests in the code PR as are needed to keep it passing. -- ___ Python tracker

[issue36759] datetime: astimezone() results in OSError: [Errno 22] Invalid argument

2020-03-22 Thread Ard Kuijpers
Ard Kuijpers added the comment: Encountered this bug on Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)], so on Windows 10. I can reproduce the bug with the code in message https://bugs.python.org/msg341149. It does not seem to be a duplicate of #29097 since I

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

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b33e52511a59c6da7132c226b7f7489b092a33eb by Serhiy Storchaka in branch 'master': bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108) https://github.com/python/cpython/commit/b33e52511a59c6da7132c226b7f7489b092a33eb --

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

2020-03-22 Thread Ethan Furman
Change by Ethan Furman : -- assignee: ethan.furman nosy: ethan.furman priority: normal severity: normal stage: needs patch status: open title: Enum Flag: psuedo-members have None for name attribute versions: Python 3.9 ___ Python tracker

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-03-22 Thread 朱聖黎
Change by 朱聖黎 : -- keywords: +patch nosy: +akarei nosy_count: 10.0 -> 11.0 pull_requests: +18470 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19109 ___ Python tracker

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden
Change by Kjell Braden : Removed file: https://bugs.python.org/file48996/udp_ipv6_server.py ___ Python tracker ___ ___ Python-bugs-list

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-22 Thread Saaheer Purav
Saaheer Purav added the comment: I have tried everything like going to the .idlerc folder and making changes, but nothing worked. Finally, I had to change the original config files and it worked because Python is assuming that another theme which I put under 'IDLE Classic' is the original

[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-22 Thread Yasunobu Imamura
New submission from Yasunobu Imamura : In Japanese document of argparse, https://docs.python.org/ja/3/library/argparse.html In explain of action, ENGLISH DOCUMENT: ..., 'append', ..., 'extend' JAPANESE DOCUMENT: ..., 'append', ..., 'append' So, Japanese document is wrong. --

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

2020-03-22 Thread Ethan Furman
Change by Ethan Furman : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Japanese translation is tracked in GitHub and can be reported there. https://github.com/python/python-docs-ja -- nosy: +xtreak ___ Python tracker

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden
Change by Kjell Braden : -- nosy: +kbr Added file: https://bugs.python.org/file48996/udp_ipv6_server.py ___ Python tracker ___ ___

[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden
Kjell Braden added the comment: sorry - is a duplicate of https://bugs.python.org/issue39148 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue40037] py_compile.py quiet undefined in main function

2020-03-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as duplicate. Feel free to reopen if it's a mistake. Thanks. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> bad input crashes py_compile library ___

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-22 Thread Nick Coghlan
Nick Coghlan added the comment: The test cases for locale coercion *not* triggering still assume that bpo-19977, using surrogateescape on the standard streams in the POSIX locale, has been implemented (since that was implemented in Python 3.5). Hence the various test cases complaining that

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden
Kjell Braden added the comment: I tried some debugging with Python 3.9.0a4 and it looks like unparse_address in overlapped.c (https://github.com/python/cpython/blob/v3.9.0a4/Modules/overlapped.c#L689) raises the error. Almost seems like ENABLE_IPV6 is not set... --

[issue39380] ftplib uses latin-1 as default encoding

2020-03-22 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Yes, I will update the PR before the end of next week. -- ___ Python tracker ___ ___

[issue40024] Add _PyModule_AddType private helper function

2020-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 05e4a296ecc127641160a04f39cc02c0f66a8c27 by Dong-hee Na in branch 'master': bpo-40024: Add PyModule_AddType() helper function (GH-19088) https://github.com/python/cpython/commit/05e4a296ecc127641160a04f39cc02c0f66a8c27 --

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Junyu Zhang
Junyu Zhang added the comment: Thank you for your reply, this report is indeed the situation prompted by the warning. There will be few problems in the single-machine deployment mode. Of course, it is also possible to take advantage of the possibility of elevation of privilege. In the

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden
Kjell Braden added the comment: Just to confirm, for some reason ENABLE_IPV6 is not set when compiling _overlapped. I'm not familiar enough with the windows build infrastructure to submit a PR though. -- versions: +Python 3.9 ___ Python tracker

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

2020-03-22 Thread STINNER Victor
STINNER Victor added the comment: Remaining issue: optimize list(iterable), PR 18928. I reviewed the PR and I'm waiting for Petr. -- ___ Python tracker ___

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-22 Thread Matej Cepl
Matej Cepl added the comment: Thank you very much for the hint. Do I have to include the patch for bpo-19977 only (that would be easy), or also all twelve PRs for bpo-29240 (that would probably broke my will to do it)? -- ___ Python tracker

[issue40043] Poor RegEx example for (?(id/name)yes-pattern|no-pattern)

2020-03-22 Thread Leon Hampton
New submission from Leon Hampton : Hello, In the 3.7.7 documentation on Regular Expression, the Conditional Construct, (?(id/name)yes-pattern|no-pattern), is discussed. (This is a very thorough document, by the way. Good job!) One example given for the Conditional Construct does not work as

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 044cf94f610e831464a69a8e713dad89878824ce by Ronald Oussoren in branch 'master': bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) https://github.com/python/cpython/commit/044cf94f610e831464a69a8e713dad89878824ce

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +18471 pull_request: https://github.com/python/cpython/pull/19110 ___ Python tracker

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

2020-03-22 Thread Leon Hampton
Leon Hampton added the comment: Hello, There may be a bug in the implementation of the Conditional Construction of Regular Expressions, namely the (?(id/name)yes-pattern|no-pattern). In the Regular Expression documentation (https://docs.python.org/3.7/library/re.html), in the portion about

[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bace59d8b8e38f5c779ff6296ebdc0527f6db14a by Serhiy Storchaka in branch 'master': bpo-3: Improve compatibility of the ast module. (GH-19056) https://github.com/python/cpython/commit/bace59d8b8e38f5c779ff6296ebdc0527f6db14a --

[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +18472 pull_request: https://github.com/python/cpython/pull/19111 ___ Python tracker ___

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c959fa9353b92ce95dd7fe3f25fe65bacbe22338 by Miss Islington (bot) in branch '3.8': bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) (GH-19110)

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

2020-03-22 Thread Matthew Barnett
Matthew Barnett added the comment: The documentation is talking about whether it'll match at the current position in the string. It's not a bug. -- resolution: -> not a bug ___ Python tracker

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 5765acaf64cc2c52ce8a35de9407faddf6885598 by Jason R. Coombs in branch '3.7': [3.7] bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) (GH-19111)

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18473 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19112 ___ Python tracker

[issue40044] Tests failing with the latest update of openssl to version 1.1.1e

2020-03-22 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : The fedora rawhide buildbots started failing due to the latest update of openssl to version 1.1.1e. e.g. https://buildbot.python.org/all/#/builders/607/builds/137 Changelog: https://www.openssl.org/news/cl111.txt The relevant info which seems to

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many functions that accepts non-integer arguments (except float) and truncate them to integers emits a deprecation warning since 3.8 (see issue36048 and issue20092). They will be errors in 3.10 (see 37999). --

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-22 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: The relevant info which seems to make the tests fail: Properly detect EOF while reading in libssl. Previously if we hit an EOF while reading in libssl then we would report an error back to the application (SSL_ERROR_SYSCALL) but errno would be 0. We

[issue40044] Tests failing with the latest update of openssl to version 1.1.1e

2020-03-22 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Closing it as duplicate of https://bugs.python.org/issue40018 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue15436] __sizeof__ is not documented

2020-03-22 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10572] Move test sub-packages to Lib/test

2020-03-22 Thread Ido Michael
Ido Michael added the comment: GH-18727 Only tkinter module for start. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15436] __sizeof__ is not documented

2020-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I can add those changes if someone didn't take it already? I think we've decided that this is an implementation specific detail. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed

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

2020-03-22 Thread Paulo Henrique Silva
Paulo Henrique Silva added the comment: About half of the remaining refs are related to encodings. I noticed that caches on Lib/encodings/__init__.py and codec_search_cach of PyInterpreterState are the places holding the refs. I removed those caches and number went do to: Before: 4382 refs

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm generally against "fixing" things that aren't broken. AFAICT, this has never been an issue for any real user over its 20 year history. Also, the current PR makes the code look gross and may impact code that is currently working. Tim, this is

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-03-22 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-03-22 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-22 Thread SilentGhost
SilentGhost added the comment: Leon, this most likely is not a bug, not because what's stated in documentation, but because you're most likely not testing what you think you do. Here is the test that you should be doing: >>> re.match(r'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)', '>> No match. If

[issue39989] Output closing parenthesis in ast.dump() on separate line

2020-03-22 Thread Anthony Sottile
Anthony Sottile added the comment: fwiw, astpretty's output looks like the black output: https://github.com/asottile/astpretty >>> astpretty.pprint(ast.parse('if x == y: y += 4').body[0]) If( lineno=1, col_offset=0, test=Compare( lineno=1, col_offset=3,

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using index() simplifies the code. Adding deprecation warnings complicates it. The PR consists of two commits, look at the first one to see how the code can finally look. If you think that the deprecation is not needed, we can just keep the simplified

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-22 Thread Tim Peters
Tim Peters added the comment: Jonathan, _almost_ no factoring algorithms have any use for a table of primes. Brute force trial division can use one, but that's about it. A table of primes _is_ useful for implementing functions related to pi(x) = the number of primes <= x, and the bigger

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've filed [Homebrew/brew#7204](https://github.com/Homebrew/brew/issues/7204) to track the testing/validation of this change against Homebrew. -- ___ Python tracker

[issue35885] configparser: indentation

2020-03-22 Thread Ido Michael
Ido Michael added the comment: @SilentGhost Added documentation to the module and a test for a give space indent in the module test. -- ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-03-22 Thread Kyle Stanley
Change by Kyle Stanley : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Tim Peters
Tim Peters added the comment: I have scant memory of working on this code. But back then Python wasn't at all keen to enforce type checking in harmless contexts. If, e.g., someone found it convenient to pass integers that happened to be in float format to randrange(), why not? Going

[issue30951] Documentation error in inspect module

2020-03-22 Thread laike9m
Change by laike9m : -- nosy: +laike9m ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-22 Thread hai shi
hai shi added the comment: > I noticed that caches on Lib/encodings/__init__.py and codec_search_cach of > PyInterpreterState are the places holding the refs. I removed those caches > and number went do to. Good Catch, Paulo. IMHO, caches is useful in codecs(it's improve the search

[issue21760] inspect documentation describes module type inaccurately

2020-03-22 Thread Furkan Önder
Furkan Önder added the comment: I sent a PR to fix a __file__ description. https://github.com/python/cpython/pull/19097 -- ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-03-22 Thread Kyle Stanley
New submission from Kyle Stanley : In a recent python-ideas thread, the rule of dunder methods being reserved for Python internal usage only was brought up (https://mail.python.org/archives/list/python-id...@python.org/message/GMRPSSQW3SXNCP4WU7SYDINL67M2WLQI/), due to an author of a third