[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f0501630b0ba31448c230c756b1027647f4ef100 by Benjamin Peterson in branch '3.6': [3.6] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16410) https://github.com/python/cpython/commit/f0501630b0ba31448c230c756b1027647f4ef100

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e73b93ab3e0bc2e5a3591f125f465353e025ecaf by Benjamin Peterson in branch '2.7': [2.7] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16408) https://github.com/python/cpython/commit/e73b93ab3e0bc2e5a3591f125f465353e025ecaf

[issue38163] AsyncMock child mocks should detect their type

2019-09-25 Thread Lisa Roach
Lisa Roach added the comment: Lately I have been having my doubts around having MagicMocks also create AsyncMocks as children. Should a MagicMock really have a __aenter__ magic method? Is this too far from the original MagicMock if we change child mocks to default not to their parent

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 52b940803860e37bcc3f6096b2d24e7c20a0e807 by Benjamin Peterson in branch 'master': closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) https://github.com/python/cpython/commit/52b940803860e37bcc3f6096b2d24e7c20a0e807

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 8e4622ea898bdda687eb2fb0747721c0cd8b0d02 by Benjamin Peterson in branch '3.7': [3.7] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16407) https://github.com/python/cpython/commit/8e4622ea898bdda687eb2fb0747721c0cd8b0d02

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 90b4e49c98dd0ff948e13dd0618240c2294eb23d by Benjamin Peterson in branch '2.7': bpo-38174 follow up: Remove loadlibrary.c from VS9.0. (GH-16411) https://github.com/python/cpython/commit/90b4e49c98dd0ff948e13dd0618240c2294eb23d --

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15991 pull_request: https://github.com/python/cpython/pull/16409 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15992 pull_request: https://github.com/python/cpython/pull/16410 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset d75bf44a2812a249663f979dc8379d27c1633ba5 by Benjamin Peterson in branch '3.8': [3.8] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16409) https://github.com/python/cpython/commit/d75bf44a2812a249663f979dc8379d27c1633ba5

[issue38163] AsyncMock child mocks should detect their type

2019-09-25 Thread Lisa Roach
Lisa Roach added the comment: This should be simple to do, after https://github.com/python/cpython/pull/16060 we can add: elif self._mock_methods and _new_name in self._mock_methods: # Methods that are not in _spec_asyncs are normal methods klass = 

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15993 pull_request: https://github.com/python/cpython/pull/16411 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15989 pull_request: https://github.com/python/cpython/pull/16407 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-25 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15990 pull_request: https://github.com/python/cpython/pull/16408 ___ Python tracker ___

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: IIRC there was a debate over allowing top level assignment expression without parentheses in original PEP 572 issue and most of the docs and examples follow using parentheses to avoid this confusion. I just noticed while reading the PEP that list

[issue31349] Embedded initialization ignores Py_SetProgramName()

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38282] socketmodule.c: _FORTIFY_SOURCE=2 warning in AF_ALG case of getsockaddrarg()

2019-09-25 Thread STINNER Victor
New submission from STINNER Victor : To test bpo-32375, I just recompiled the master branch of Python twice using these flags: * -D_FORTIFY_SOURCE=2 -Og * -D_FORTIFY_SOURCE=2 -O3 I got a few warnings, the same that I get without FORTIFY SOURCE. Using -D_FORTIFY_SOURCE=2 -O3, I get one

[issue32375] Compilation warnings in getpath.c with gcc on Ubuntu / -D_FORTIFY_SOURCE=2

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: I just recompiled the master branch of Python twice using these flags: * -D_FORTIFY_SOURCE=2 -Og * -D_FORTIFY_SOURCE=2 -O3 I got a few warnings, the same that I get without FORTIFY SOURCE. Using -D_FORTIFY_SOURCE=2 -O3, I get one warning, but it's no longer

[issue34300] gcc 7.3 causes a warning when compiling getpath.c in python 2.7

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: This issue is only a compiler warning, you can ignore it. Python 2.7 is close to its end of life: I close the issue. I don't think that it's worth it to spend time trying to fix this old issue in 2.7. In the master branch, Py_FatalError uses

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88feaecd46a8f427e30ef7ad8cfcddfe392a2402 by Victor Stinner in branch 'master': bpo-38234: Complete init config documentation (GH-16404) https://github.com/python/cpython/commit/88feaecd46a8f427e30ef7ad8cfcddfe392a2402 --

[issue37089] `import Lib.os` works on windows (but shouldn't)

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26539] frozen executables should have an empty path

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: The PEP 587 has been implemented in Python 3.8. The new API allows to initialize sys.path to a really empty list: sys.path = []. * https://docs.python.org/dev/c-api/init_config.html *

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15988 pull_request: https://github.com/python/cpython/pull/16406 ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 49d99f01e6e51acec5ca57a02e857f0796bc418b by Victor Stinner in branch 'master': bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406) https://github.com/python/cpython/commit/49d99f01e6e51acec5ca57a02e857f0796bc418b

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-25 Thread Guido van Rossum
Guido van Rossum added the comment: @xtreak do you think we need to keep this issue open then? -- ___ Python tracker ___ ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15985 pull_request: https://github.com/python/cpython/pull/16404 ___ Python tracker ___

[issue38281] "+" ignored when determining file mode in gzip.GzipFile.__init__

2019-09-25 Thread __starrify__
New submission from __starrify__ : Currently (as of df69e75) it checks only the initial letter (via `mode.startswith`) of "mode" in gzip.GzipFile.__init__. See also: https://github.com/python/cpython/blob/df69e75/Lib/gzip.py#L183 I'd personally suggest that it takes also "+" into

[issue18309] Make python slightly more relocatable

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: The PEP 587 "Python Initialization Configuration" has been implemented in Python 3.8. It provides fine control on the "Path Configuration": * https://docs.python.org/dev/c-api/init_config.html *

[issue25631] Segmentation fault with invalid Unicode command-line arguments in embedded Python

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: This bug has been fixed in the implementation of the PEP 587. $ gcc x.c -l python3.8 $(pkg-config python-3.8 --cflags --libs) -o x $ ./x Fatal Python error: pyinit_main: can't finish initializing sys ValueError: character U+11 is not in range [U+;

[issue35173] Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path according to the shared library

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: Modules/getpath.c and PC/getpathp.c have been deeply reworked with the implementation of the PEP 587 in Python 3.8. Parameters which are already set (ex: Py_SetProgramName() or using the new PyConfig API) are no longer overriden. I added some tests on the

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8bf39b606ef7b02c0279a80789f3c4824b0da5e9 by Victor Stinner in branch 'master': bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402) https://github.com/python/cpython/commit/8bf39b606ef7b02c0279a80789f3c4824b0da5e9 --

[issue15577] Real argc and argv in embedded interpreter

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: I only saw one request (this issue) for this feature, in 2012. So it doesn't sound really important. I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue38281] "+" ignored when determining file mode in gzip.GzipFile.__init__

2019-09-25 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +15986 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16405 ___ Python tracker ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: The PEP 587 has been implemented in Python 3.8 with a "Multi-Phase Initialization Private Provisional API": https://docs.python.org/dev/c-api/init_config.html#multi-phase-initialization-private-provisional-api I suggest to close this issue. When somone will

[issue31210] Can not import modules if sys.prefix contains DELIM

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: I consider that the current behavior is correct. They are other ways to put a path which contains ":" into sys.path. I close the issue. -- nosy: +vstinner resolution: -> not a bug stage: -> resolved status: open -> closed

[issue31349] Embedded initialization ignores Py_SetProgramName()

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: Modules/getpath.c and PC/getpathp.c have been deeply reworked with the implementation of the PEP 587 in Python 3.8. Parameters which are already set (ex: Py_SetProgramName() or using the new PyConfig API) are no longer overriden. I added some tests on the

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: In the implementation of the PEP 587 in Python 3.8, I created Python/pathconfig.c and the _PyPathConfig to share code which can be easily shared. Right now, remaining code is platform specific. -- resolution: -> fixed stage: -> resolved status:

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-25 Thread Michael Felt
Michael Felt added the comment: Added a backport for 3.8. p.s. - what is the file "name of the past"? -- ___ Python tracker ___

[issue38219] Optimize dict.__init__ and dict.update for dict argument

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f163aeaa8c15b806b622c9cb10bc1d2a6e034e24 by Serhiy Storchaka in branch 'master': bpo-38219: Optimize dict creating and updating by a dict. (GH-16268) https://github.com/python/cpython/commit/f163aeaa8c15b806b622c9cb10bc1d2a6e034e24

[issue36232] Improve error message on dbm.open

2019-09-25 Thread Marco Rougeth
Change by Marco Rougeth : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-25 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +15955 pull_request: https://github.com/python/cpython/pull/16376 ___ Python tracker ___

[issue38219] Optimize dict.__init__ and dict.update for dict argument

2019-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38268] Unclear definition of ceil, floor and trunc in documentation mathmodule.c

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The word "integral" has also other meaning. This is a duplicate of issue26512. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Vocabulary: Using "integral" in library/stdtypes.html

[issue38260] asyncio.run documentation does not mention its return value

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15960 pull_request: https://github.com/python/cpython/pull/16380 ___ Python tracker ___

[issue38260] asyncio.run documentation does not mention its return value

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15959 pull_request: https://github.com/python/cpython/pull/16379 ___ Python tracker ___

[issue38260] asyncio.run documentation does not mention its return value

2019-09-25 Thread miss-islington
miss-islington added the comment: New changeset 17deb16883fa574a86e42551cc37f044182347ad by Miss Islington (bot) (Emmanuel Arias) in branch 'master': bpo-38260: Add Docs on asyncio.run (GH-16337) https://github.com/python/cpython/commit/17deb16883fa574a86e42551cc37f044182347ad --

[issue22273] abort when passing certain structs by value using ctypes

2019-09-25 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +15956 pull_request: https://github.com/python/cpython/pull/16377 ___ Python tracker ___

[issue32820] Add and document __format__ method for IPv[46]Address

2019-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15957 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16378 ___ Python tracker ___

[issue13153] IDLE 3.x on Windows exits when pasting non-BMP unicode

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I now have an access to Windows (I did not have it 5 years ago), so I'm going to finish this issue if I have a time. -- ___ Python tracker

[issue38269] test_venv failed on AMD64 Debian PGO 3.x

2019-09-25 Thread Dong-hee Na
New submission from Dong-hee Na : https://buildbot.python.org/all/#/builders/47/builds/3578 This issue was found from GH-16359 The main issue of this failure is the lack of storage space. OSError: [Errno 28] No space left on device: '/tmp/tmpnmcjxia9/bin/python' ->

[issue38260] asyncio.run documentation does not mention its return value

2019-09-25 Thread miss-islington
miss-islington added the comment: New changeset d3666945d78508970002653c4d46221a4306f55b by Miss Islington (bot) in branch '3.7': bpo-38260: Add Docs on asyncio.run (GH-16337) https://github.com/python/cpython/commit/d3666945d78508970002653c4d46221a4306f55b --

[issue38260] asyncio.run documentation does not mention its return value

2019-09-25 Thread miss-islington
miss-islington added the comment: New changeset 4633355a063c7bf068bdd72dfdd32f4c22cf382f by Miss Islington (bot) in branch '3.8': bpo-38260: Add Docs on asyncio.run (GH-16337) https://github.com/python/cpython/commit/4633355a063c7bf068bdd72dfdd32f4c22cf382f --

[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-09-25 Thread Pierre Quentel
Pierre Quentel added the comment: @ethan.furman Yes, in test_cgi.py, the method test_fieldstorage_multipart_w3c https://github.com/python/cpython/blob/master/Lib/test/test_cgi.py#L316) uses a multipart content with 2 files in it

[issue32820] Add and document __format__ method for IPv[46]Address

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 16378 simplifies the implementation. It also caches the compiled RE. Needed the documentation for the new feature. -- ___ Python tracker

[issue36947] Fix 3.3.3.1 Metaclasses Documentation

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Josh. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22273] abort when passing certain structs by value using ctypes

2019-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 57dc7d5ae8ebfb6da1ea2b25e61260ecb9c79faf by Vinay Sajip in branch 'master': bpo-22273: Disabled tests while investigating buildbot failures on ARM7L/PPC64. (GH-16377)

[issue38268] Unclear definition of ceil, floor and trunc in documentation mathmodule.c

2019-09-25 Thread Sophie
New submission from Sophie : The functions ceil(), floor() and trunc() define their result as an Integral. But an Integral is the result of an integration calculation. Better say Integer IMHO. -- assignee: docs@python components: Documentation messages: 353151 nosy: Sophie,

[issue38269] test_venv failed on AMD64 Debian PGO 3.x

2019-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think there was a bug in the past in regrtest or tempfile where the temporary files for tests were not deleted and lead to disk space filled up in several buildbots. -- nosy: +pablogsal, vstinner, xtreak

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-09-25 Thread Christian Heimes
New submission from Christian Heimes : MD5 hash digest algorithm has known security issues and is getting blocked on systems with strict security policies. Python uses MD5 in several unittests. These tests should either avoid MD5 and use SHA256 instead. Or tests that really require MD5

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-09-25 Thread Carol Willing
Carol Willing added the comment: New changeset edad4d89e357c92f70c0324b937845d652b20afd by Carol Willing (Yury Selivanov) in branch 'master': bpo-38248: Fix inconsistent immediate asyncio.Task cancellation (GH-16330)

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: > I've proposed the patch on GitHub which escaping the server_title when the > documenter.page is called. (It different point with msg353132. The attached poc.py seems to show that server name and server documentation are not escaped neither.

[issue38265] Update os.pread to accept the length type as size_t

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because this looks rather as a new feature than a bug fix. We don't add new features in maintained versions. Always there is a risk of introducing a regression. We don't know what bugs are contained in 64-bit size support on different platforms. I would

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1dc1acbd73f05f14c974b7ce1041787d7abef31e by Victor Stinner (PatrikKopkan) in branch 'master': bpo-37064: Add option -a to pathfix.py tool (GH-15717) https://github.com/python/cpython/commit/1dc1acbd73f05f14c974b7ce1041787d7abef31e --

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Géry
Géry added the comment: Alright, I am fine with @rhettinger's alternative PR too. I am closing this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22273] abort when passing certain structs by value using ctypes

2019-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 417089e88bd4ea146b9497e06e8edeb58a59cd65 by Vinay Sajip in branch 'master': bpo-22273: Re-enabled ctypes test on ARM machines. (GH-16388) https://github.com/python/cpython/commit/417089e88bd4ea146b9497e06e8edeb58a59cd65 --

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread Ben Spiller
Ben Spiller added the comment: Thanks... yep I realise method calls are slower than operators, am hoping we can still find a cunning way to speed up this use case nonetheless. :D For example by having a configuration option on dict (or making a new subclass) that gives the (speedy!) []

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 15ccc4fac09b866d61b069c6c136aabfe4bac09c by Raymond Hettinger in branch 'master': bpo-38255: super() can search attributes as well as methods (GH-16368) https://github.com/python/cpython/commit/15ccc4fac09b866d61b069c6c136aabfe4bac09c

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15974 pull_request: https://github.com/python/cpython/pull/16392 ___ Python tracker ___

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15973 pull_request: https://github.com/python/cpython/pull/16391 ___ Python tracker ___

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3b5e9241142d6b7c22059115c0e68a8912753818 by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-38255: super() can search attributes as well as methods (GH-16368) (GH-16392)

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Patrik Kopkan for your contributions! It's now part of 3.8 and master branches. Your work will be part of the incoming Python 3.8.0 final release. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue38273] Got an compile failed info about typeobject.c

2019-09-25 Thread hai shi
hai shi added the comment: oh, thanks, guys. This error info is disappeared when i followed victor's advice. It must be i changed the configure/make file by accident. Sorry for this noisy info -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue36046] subprocess: add user, group and extra_groups parameters

2019-09-25 Thread Thomas Wouters
Thomas Wouters added the comment: As mentioned in the code review for Victor's fix, it feels like the big conditional on the use of self._posix_spawn in Popen._execute_child should perhaps be pulled into _posix_spawn, or at least refactored so it's closer to _posix_spawn, with some

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-25 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.7 ___ Python tracker ___

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-09-25 Thread miss-islington
miss-islington added the comment: New changeset c64a1a61e6fc542cada40eb069a239317e1af36e by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382)

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: I also suggest you to not focus on such micro-benchmarks. It's not relevant to make a whole application faster. Use PyPy if you care about performances. PyPy has a very efficient implementation for dictionary and it's JIT compiler can go way further than

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15975 pull_request: https://github.com/python/cpython/pull/16393 ___ Python tracker ___

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread Ben Spiller
New submission from Ben Spiller : In performance-critical python code, it's quite common to need to get an item from a dictionary, falling back on a default (e.g. None, 0 etc) if it doesn't yet exist. The obvious way to do this based on the documentation is to call the dict.get() method: >

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset c71c54c62600fd721baed3c96709e3d6e9c33817 by Victor Stinner in branch '3.8': bpo-37064: Add -k and -a options to pathfix.py tool (GH-16387) https://github.com/python/cpython/commit/c71c54c62600fd721baed3c96709e3d6e9c33817 --

[issue36046] subprocess: add user, group and extra_groups parameters

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: The posix_spawn() bug is now fixed, I close again the issue. Feel free to open a new issue if you want to follow-up on reworking the posix_spawn() code path ;-) -- resolution: -> fixed stage: commit review -> resolved status: open -> closed

[issue36046] subprocess: add user, group and extra_groups parameters

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: > As mentioned in the code review for Victor's fix, it feels like the big > conditional on the use of self._posix_spawn in Popen._execute_child should > perhaps be pulled into _posix_spawn, or at least refactored so it's closer to > _posix_spawn, with some

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15972 pull_request: https://github.com/python/cpython/pull/16390 ___ Python tracker ___

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2e566bf35e96f0d6ca6fe291f179e832d1c32186 by Victor Stinner in branch '3.8': bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) (GH-16389) https://github.com/python/cpython/commit/2e566bf35e96f0d6ca6fe291f179e832d1c32186

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-25 Thread Arne Recknagel
New submission from Arne Recknagel : All code is run on python build from the current 3.8 branch. The following doesn't work: >>> [x for x in 'foo' if y := True] File "", line 1 [x for x in 'foo' if y := True] ^ SyntaxError: invalid syntax While

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: dict.get() is a method call wheras "key in dict" and "dict[key]" are operators. Method calls are still slower than operators, even after past optimizations. For example, when dict.get was converted to METH_FASTCALL, it was around 20 ns faster:

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +15976 pull_request: https://github.com/python/cpython/pull/16394 ___ Python tracker ___

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 543a3951a1c96bae0ea839eacec71d3b1a563a10 by Serhiy Storchaka in branch 'master': bpo-38005: Remove support of string argument in InterpreterID(). (GH-16227) https://github.com/python/cpython/commit/543a3951a1c96bae0ea839eacec71d3b1a563a10

[issue22273] abort when passing certain structs by value using ctypes

2019-09-25 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +15970 pull_request: https://github.com/python/cpython/pull/16388 ___ Python tracker ___

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-09-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15971 pull_request: https://github.com/python/cpython/pull/16389 ___ Python tracker ___

[issue36046] subprocess: add user, group and extra_groups parameters

2019-09-25 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset faca8553425c231d867dcabf6a69a9dd21118b6c by T. Wouters (Victor Stinner) in branch 'master': bpo-36046: posix_spawn() doesn't support uid/gid (GH-16384) https://github.com/python/cpython/commit/faca8553425c231d867dcabf6a69a9dd21118b6c

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-25 Thread Ned Deily
Change by Ned Deily : Removed file: https://bugs.python.org/file48241/name of the past ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-09-25 Thread Ned Deily
Ned Deily added the comment: New changeset e4be8c984d035da30f9ed051aa6f3f762f0e9060 by Ned Deily (Michael Felt) in branch '3.8': bpo-36210: correct logic in setup.py for optional extensions for AIX (GH-12202) (GH-16376)

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 00508a7407d7d300b487532e2271534b20e378a7 by Victor Stinner in branch 'master': bpo-38234: Fix test_embed pathconfig tests (GH-16390) https://github.com/python/cpython/commit/00508a7407d7d300b487532e2271534b20e378a7 --

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: >python -m timeit -s "import collections; d=collections.defaultdict(lambda: >None); d['abc']=123; " "x=d['XXX']" 500 loops, best of 5: 34.3 nsec per loop This benchmark is not a fair comparison: the 'XXX' key is created at the first access. In short,

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: > Lots of solutions are possible - maybe some kind of peephole optimization to > make dict.get() itself perform similarly to the [] operator, or if that's > challenging perhaps providing a class or option that behaves like defaultdict > but without the

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 7444a5a402bbac4268b95958a9578a9e3dae33e0 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-38255: super() can search attributes as well as methods (GH-16368) (GH-16391)

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Carol Willing
Carol Willing added the comment: @maggyero Thanks for the PR and working to improve the docs. For this particular issue, I prefer PR 16368 for its brevity and common use case. I'm recommending that it be merged. -- nosy: +willingc ___ Python

[issue2454] sha and md5 fixer

2019-09-25 Thread Christian Heimes
Christian Heimes added the comment: The issue is already fixed. Python 3.7+ no longer import the md5 module directly. -- nosy: +christian.heimes resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38271] test_ssl: replace 3DES with AES encrypted private keys

2019-09-25 Thread Christian Heimes
New submission from Christian Heimes : test_ssl uses two encrypted private key files to verify the password hook. The private key files are currently encrypted with 3DES (DES-EDE3-CBC). The algorithm is very old and blocked by some crypto policies. Let's use AES256 instead. AES is mandatory

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-09-25 Thread Carol Willing
Carol Willing added the comment: New changeset 16cec136b75daf438080a5b6685d2679dfa406af by Carol Willing (Miss Islington (bot)) in branch '3.8': bpo-38248: Fix inconsistent immediate asyncio.Task cancellation (GH-16330) (GH-16383)

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-25 Thread Christian Heimes
New submission from Christian Heimes : test_ssl has some checks for TLS/SSL versions that are not available or disabled during compile-time of Python and OpenSSL. It's missing run-time checks and checks for TLS 1.0 and 1.1. Several test scenarios assume that TLS 1.0 and 1.1 are always

  1   2   >