[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
Change by hai shi : -- keywords: +patch nosy: +shihai1991 nosy_count: 1.0 -> 2.0 pull_requests: +18929 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19592 ___ Python tracker

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-19 Thread Markus Mohrhard
New submission from Markus Mohrhard : We have hit an issue in the pickle module where the code throws an exception in a threaded environment: The interesting piece of the backtrace is: File "/xxx/1004060/lib/python3.7/site-packages/numpy/core/__init__.py", line 130, in _ufunc_reduce

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: asyncio is now imported in unittest. Removing direct import from test.support does not help. -- ___ Python tracker ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have pushed the fix onto https://github.com/python/cpython/pull/19595 with an API test case and the changes to keep the debain subclassing working. I'm new the the work flow. Let me know if I need to change anything. --

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +18934 pull_request: https://github.com/python/cpython/pull/19598 ___ Python tracker ___

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread miss-islington
miss-islington added the comment: New changeset c12375aa0b838d34067efa3f1b9a1fbc632d0413 by Tim Lo in branch 'master': bpo-39285: Clarify example for PurePath.match (GH-19458) https://github.com/python/cpython/commit/c12375aa0b838d34067efa3f1b9a1fbc632d0413 -- nosy: +miss-islington

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +18933 pull_request: https://github.com/python/cpython/pull/19597 ___ Python tracker ___

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread miss-islington
miss-islington added the comment: New changeset 8c0734397603d84e3a2e753463b44cf904147cc4 by Miss Islington (bot) in branch '3.8': bpo-39285: Clarify example for PurePath.match (GH-19458) https://github.com/python/cpython/commit/8c0734397603d84e3a2e753463b44cf904147cc4 --

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread miss-islington
miss-islington added the comment: New changeset 143147d94f3e55a929327ddae1d0d3c260d71cef by Miss Islington (bot) in branch '3.7': bpo-39285: Clarify example for PurePath.match (GH-19458) https://github.com/python/cpython/commit/143147d94f3e55a929327ddae1d0d3c260d71cef --

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18939 pull_request: https://github.com/python/cpython/pull/19603 ___ Python tracker ___

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Yuval S added the comment: Thank you for the attention and the quick fix. However, the current documentation for "Notes on Reproducibility" should still address this issue of hash randomization. Not only `sample` is affected by this, but any code that combines strings (or bytes or datetime)

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: logging is also imported in unittest and indirectly in asyncio. -- ___ Python tracker ___ ___

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

2020-04-19 Thread szb512
szb512 added the comment: That backfired horribly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-19 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Moving assertion from _PyObject_GC_TRACK to gen_dealloc (just before the _PyObject_GC_TRACK call) results with success () if (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); - +_PyObject_ASSERT_FROM(self,

[issue40269] Inconsistent complex behavior with (-1j)

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried to make repr of floats producing a string which rounds up with eval() (see PR 19593). >>> complex(0.0, 1.0) 1j >>> complex(0.0, -1.0) (0-1j) >>> complex(-0.0, 1.0) -(0-1j) >>> complex(-0.0, -1.0) (-0.0-1j) >>> complex(1.0, 0.0) (1+0j) >>>

[issue40313] bytes.hex(sep, bytes_per_sep) is many times slower than manually inserting the separators

2020-04-19 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +18930 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19594 ___ Python tracker ___

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18936 pull_request: https://github.com/python/cpython/pull/19600 ___ Python tracker ___

[issue40326] A string contains an empty string?

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue40269] Inconsistent complex behavior with (-1j)

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18928 pull_request: https://github.com/python/cpython/pull/19593 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 for splitting test.support on several submodules! Some imports can also be lazy. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Change by Barry Alan Scott : -- pull_requests: +18931 pull_request: https://github.com/python/cpython/pull/19595 ___ Python tracker ___

[issue40326] A string contains an empty string?

2020-04-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: https://docs.python.org/3/reference/expressions.html#membership-test-operations -- nosy: +steven.daprano ___ Python tracker ___

[issue40313] bytes.hex(sep, bytes_per_sep) is many times slower than manually inserting the separators

2020-04-19 Thread Dennis Sweeney
Dennis Sweeney added the comment: == Master == .\python.bat -m pyperf timeit -s "import random, math; data=random.getrandbits(8*10_000_000).to_bytes(10_000_000, 'big')" "temp = data.hex(); '\n'.join(temp[n:n+128] for n in range(0, len(temp), 128))" Mean +- std dev: 74.3 ms

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Change by Yuval S : -- pull_requests: +18932 pull_request: https://github.com/python/cpython/pull/19596 ___ Python tracker ___ ___

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4fe002045fcf40823154b709fef0948b2bc5e934 by Raymond Hettinger in branch 'master': bpo-40325: Deprecate set object support in random.sample() (GH-19591) https://github.com/python/cpython/commit/4fe002045fcf40823154b709fef0948b2bc5e934

[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
hai shi added the comment: > "import test.support" imports not less than 171... That's quite "heavy". If we split some "heavy" modules to xxxutils, what benefits will we make in fact(more exact module importing behavior)? -- ___ Python tracker

[issue22548] Bogus parsing of negative zeros in complex literals

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -18927 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40284] Add mapping methods to types.SimpleNamespace

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

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yuval, thanks for the report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40313] bytes.hex(sep, bytes_per_sep) is many times slower than manually inserting the separators

2020-04-19 Thread Dennis Sweeney
Dennis Sweeney added the comment: I replicated this behavior. This looks like the relevant loop in pystrhex.c: for (i=j=0; i < arglen; ++i) { assert((j + 1) < resultlen); unsigned char c; c = (argbuf[i] >> 4) & 0x0f; retbuf[j++] = Py_hexdigits[c]; c

[issue22548] Bogus parsing of negative zeros in complex literals

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 3.0 -> 4.0 pull_requests: +18927 pull_request: https://github.com/python/cpython/pull/19593 ___ Python tracker

[issue40328] Add tools for generating mappings_XX.h

2020-04-19 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +18938 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19602 ___ Python tracker ___

[issue40326] A string contains an empty string?

2020-04-19 Thread Ronie Martinez
New submission from Ronie Martinez : Testing if an empty string is in a given string returns True. Tried only on Python 3.7 but might exists on other versions. Python 3.7.6 (default, Mar 13 2020, 18:48:35) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin ``` >> "" in "hello" True ```

[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
hai shi added the comment: > asyncio is now imported in unittest. Removing direct import from test.support > does not help. Oh, thanks, you are right. Looks like we need check which submodules should be splitted. -- ___ Python tracker

[issue40269] Inconsistent complex behavior with (-1j)

2020-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: > I tried to make repr of floats producing a string which rounds up with eval() We've looked at this before. There just isn't any sane and easy way to do this, except for changing the repr to be "complex(real, imag)", which is the solution that I favour.

[issue40328] Add tools for generating mappings_XX.h

2020-04-19 Thread Dong-hee Na
New submission from Dong-hee Na : AFAIK, there are no tools for generating mappings_XX.h under Modules/cjkcodecs. It would cause a maintainable issue, fortunately, I got the old source from https://github.com/BackupTheBerlios/cjkpython. And I success to port into Python3 version and

[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
Change by hai shi : -- pull_requests: +18935 pull_request: https://github.com/python/cpython/pull/19599 ___ Python tracker ___ ___

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18937 pull_request: https://github.com/python/cpython/pull/19601 ___ Python tracker ___

[issue40329] Faulty dict arg gives ValueError but mostly TypeError

2020-04-19 Thread Tomas Nordin
New submission from Tomas Nordin : Hello Python bug tracker Trying to create a dict with a top level set pair will fail, but how will it fail? Here comes a terminal session to reproduce the behavior. The same command is just repeated.

[issue28002] ast.unparse can't roundtrip some f-strings

2020-04-19 Thread Simon Percivall
Simon Percivall added the comment: Any and all code from astunparse is certainly available for inclusion. Go ahead. -- nosy: +simon.percivall ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-04-19 Thread Guido van Rossum
New submission from Guido van Rossum : Note: PEP 617 is currently under review by the Steering Council, but if they approve we'd like to get it into alpha 6, and reviews are welcome (even though we're still finagling some corner cases of the implementation). -- messages: 366803 nosy:

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23980] Documentation for format units starting with 'e' is inconsistent

2020-04-19 Thread Zackery Spytz
Change by Zackery Spytz : -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The regression happened in: commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 Author: Lysandros Nikolaou Date: Sun Apr 12 21:21:00 2020 +0300 bpo-40246: Report a better error message for invalid string prefixes (GH-19476) Will try to get a look

[issue40334] PEP 617: new PEG-based parser

2020-04-19 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9751] _PyInstance_Lookup() defeats its purpose

2020-04-19 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40334] PEP 617: new PEG-based parser

2020-04-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +18943 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19503 ___ Python tracker

[issue23980] Documentation for format units starting with 'e' is inconsistent

2020-04-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 7.0 -> 8.0 pull_requests: +18944 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19610 ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-04-19 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28002] ast.unparse can't roundtrip some f-strings

2020-04-19 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +18946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19612 ___ Python tracker ___

[issue40333] Request for multi-phase initialization API to run code after importlib init

2020-04-19 Thread Gregory Szorc
Change by Gregory Szorc : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40333] Request for multi-phase initialization API to run code after importlib init

2020-04-19 Thread Gregory Szorc
New submission from Gregory Szorc : I'm porting PyOxidizer to the PEP 587 APIs. So far, it is mostly straightforward. I was looking forward to adopting the multi-phase initialization API because I thought it would enable me to get rid of the very ugly hack PyOxidizer uses to inject its

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: We should consider making this change just about everywhere in the standard library. Besides avoiding a race condition, running a for loop over `d.copy().items()` is more memory efficient and possibly faster than a for loop over `list(d.items())`.

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40332] RegEx for numbers in documentation (easy fix - solution provided)

2020-04-19 Thread Brandon
New submission from Brandon : The regular expression used for matching numbers in the documentation for the regular expressions module (the tokenizer section) doesn't match the string ".5", but does match the string "3.". Here's a link to the tokenizer section of the documentation:

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread Anthony Sottile
New submission from Anthony Sottile : this was noticed in pyflakes's testsuite: https://github.com/PyCQA/pyflakes/pull/532#pullrequestreview-396059622 I've created a small script to reproduce the problem ``` import sys SRC = b"""\ def foo(): ''' def bar(): pass def baz():

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread gaborbernat
Change by gaborbernat : -- nosy: +gaborbernat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23082] pathlib relative_to() can give confusing error message

2020-04-19 Thread Sadhana Srinivasan
Change by Sadhana Srinivasan : -- keywords: +patch pull_requests: +18945 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19611 ___ Python tracker

[issue37006] Add top level await statement support for doctest

2020-04-19 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38891] ShareableList read and write access is O(N), should be O(1)

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40331] Increase test coverage for the statistics module

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37373] Configuration of windows event loop for libraries

2020-04-19 Thread Łukasz Langa
Łukasz Langa added the comment: I'd be +1 to bringing uvloop into the stdlib, it would solve many things while introducing an acceptable dependency in the form of libuv. However, uvloop itself is written in Cython which makes it impossible for us to directly merge it. So that option is

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-04-19 Thread Łukasz Langa
Łukasz Langa added the comment: Good catch. We should fix this for Python 3.8.3. -- nosy: +lukasz.langa priority: normal -> release blocker ___ Python tracker ___

[issue17986] Alternative async subprocesses (pep 3145)

2020-04-19 Thread Łukasz Langa
Łukasz Langa added the comment: Should this still be open given that PEP 3145 is withdrawn and asyncio subprocesses have been used in production for five Python releases now? -- nosy: +lukasz.langa ___ Python tracker

[issue40313] bytes.hex(sep, bytes_per_sep) is many times slower than manually inserting the separators

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I used -X importtime. Your benchmark measures the performance of look up in sys.modules. -- ___ Python tracker ___

[issue40331] Increase test coverage for the statistics module

2020-04-19 Thread Tzanetos Balitsaris
Change by Tzanetos Balitsaris : -- keywords: +patch pull_requests: +18941 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19608 ___ Python tracker

[issue40083] No run option available in python idle in version 3.8.2

2020-04-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3. You did not answer about the tcl/tk version. 4. When you start from the start menu, there is no Editor window, just the Shell window, which does not have the Run menu. Again, how did you get an editor window? 5. Search the Web for an illustrated

[issue40324] python 3.8.2 idle not opening

2020-04-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The relevant one. Skip 3 and 4. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40329] Faulty dict arg gives ValueError but mostly TypeError

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is all correct. Note that set is unordered, so "element #0" can be 1, and can be "one". If it is 1, you get a type error. If it is "one", which is a sequence with length 3, you get a value error. -- nosy: +serhiy.storchaka resolution: -> not a

[issue40329] Faulty dict arg gives ValueError but mostly TypeError

2020-04-19 Thread Tomas Nordin
Tomas Nordin added the comment: Serhiy Storchaka writes: > Serhiy Storchaka added the comment: > > It is all correct. Note that set is unordered, so "element #0" can be 1, and > can be "one". If it is 1, you get a type error. If it is "one", which is a > sequence with length 3, you get a

[issue40307] multiprocessing.BaseManager does not retain Client type.

2020-04-19 Thread Alessandro Molina
Change by Alessandro Molina : -- keywords: +patch pull_requests: +18942 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19609 ___ Python tracker

[issue40330] ShareableList size guard incorrect for str data

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +18940 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19606 ___ Python tracker

[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-04-19 Thread miss-islington
miss-islington added the comment: New changeset 1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe by Kyle Stanley in branch 'master': bpo-39207: Spawn workers on demand in ProcessPoolExecutor (GH-19453) https://github.com/python/cpython/commit/1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe --

[issue40275] test.support has way too many imports

2020-04-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These three PRs combined reduce the number of imported modules from 179 to 105 (not including 24 modules imported by the bare interpreter) and reduce the hot import time from 160 ms to 80 ms. -- ___ Python

[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
hai shi added the comment: > These three PRs combined reduce the number of imported modules from 179 to > 105 (not including 24 modules imported by the bare interpreter) and reduce > the hot import time from 160 ms to 80 ms. Good job, serhiy. I tested your patches in my vm, the number of

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-19 Thread Tim Peters
Tim Peters added the comment: Things get complicated here because in older versions of Python an instance of ForeverObject(True) could "leak" forever: if an object in a trash cycle had a __del__ method, that method would never be called, and the object would never be collected. Starting

[issue40328] Add tools for generating mappings_XX.h

2020-04-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Demos and Tools nosy: +hyeshik.chang, serhiy.storchaka versions: +Python 3.9 ___ Python tracker ___

[issue28002] ast.unparse can't roundtrip some f-strings

2020-04-19 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > If that sounds good, I can submit a PR and inform the original author I can't say anything before seeing the approach but fixing the problem definitely sounds good. -- ___ Python tracker

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Suggest making this change: -for module_name, module in list(sys.modules.items()): +for module_name, module in sys.modules.copy().items(): -- nosy: +rhettinger ___ Python tracker

[issue40330] ShareableList size guard incorrect for str data

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- assignee: pitrou components: Library (Lib) nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: ShareableList size guard incorrect for str data type: behavior versions: Python 3.7, Python 3.8, Python 3.9

[issue40330] ShareableList size guard incorrect for str data

2020-04-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : The size check is done before encoding to utf-8... -- ___ Python tracker ___ ___

[issue38891] ShareableList read and write access is O(N), should be O(1)

2020-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c8f1715283ec51822fb37a702bf253cbac1af276 by Thomas Krennwallner in branch 'master': bpo-38891: avoid quadratic item access performance of ShareableList (GH-18996) https://github.com/python/cpython/commit/c8f1715283ec51822fb37a702bf253cbac1af276

[issue40148] Add PurePath.with_stem()

2020-04-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40148] Add PurePath.with_stem()

2020-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 8aea4b3605059e243f1827d9328d6fc8d698c0a7 by Tim Hoffmann in branch 'master': bpo-40148: Add PurePath.with_stem() (GH-19295) https://github.com/python/cpython/commit/8aea4b3605059e243f1827d9328d6fc8d698c0a7 --

[issue40331] Increase test coverage for the statistics module

2020-04-19 Thread Tzanetos Balitsaris
New submission from Tzanetos Balitsaris : The statistics module is already highly tested but it seems that there are 4 statements [0] that are not executed by the equivalent unit tests. Specifically, 3 statements which are part of the `_convert`, `_find_lteq`, and `_find_rteq` functions, and

[issue40275] test.support has way too many imports

2020-04-19 Thread hai shi
hai shi added the comment: > I used -X importtime. copy that, thanks. In master branch: import time: 5011 | 133562 | test.support After apply serhiy's patches: import time: 4863 | 66940 | test.support -- ___ Python tracker

[issue37373] Configuration of windows event loop for libraries

2020-04-19 Thread Ben Darnell
Ben Darnell added the comment: > Would it be acceptable for you to *require* use of uvloop when Tornado is > used with AsyncIO? How, exactly? Adding the dependency is no problem, but AFAIK I'd still be stuck with an import-time side effect to set the event loop policy (or a .pth file hack,

[issue40307] multiprocessing.BaseManager does not retain Client type.

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40275] test.support has way too many imports

2020-04-19 Thread Vinay Sajip
Vinay Sajip added the comment: What is the practical impact on the time taken for test runs? How much does the total time for a test run reduce as a result of refactoring test.support to minimise imports? -- nosy: +vinay.sajip ___ Python tracker

[issue40198] macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to hardened runtime

2020-04-19 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Yes, the choice of entitlements to request whith code hardening was somewhat arbitrary; we tried to keep them to a minimum. I didn't anticipate that the DYLD_ env variables would be used much, sorry about that. Future python.org macOS

[issue39849] Compiler warninig: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]

2020-04-19 Thread hai shi
hai shi added the comment: I found this warning too(ps: my gcc is 9.3.0 ;) Can we add a inner macro like `_unused(var) (void) var`? Hi, serhiy, can you give us some advice? -- ___ Python tracker

[issue39849] Compiler warninig: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]

2020-04-19 Thread hai shi
Change by hai shi : -- keywords: +patch nosy: +shihai1991 nosy_count: 2.0 -> 3.0 pull_requests: +18947 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19615 ___ Python tracker

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2020-04-19 Thread Tigran
Tigran added the comment: Do we have any news about this? -- nosy: +nargit ___ Python tracker ___ ___ Python-bugs-list mailing