[issue36792] [Windows] time: crash on formatting time with de_DE locale

2020-02-05 Thread Eryk Sun
Eryk Sun added the comment: > Perhaps it would be easy to do the replacement of underscores with > hyphens on Windows in this function? I think that's safe enough, yes? Recent releases of ucrt implement this translation from underscore to hyphen for us, so this suggestion is no longer

[issue33351] Support compiling with clang-cl on Windows

2020-02-05 Thread Isuru Fernando
Change by Isuru Fernando : -- pull_requests: +17747 pull_request: https://github.com/python/cpython/pull/18371 ___ Python tracker ___

[issue38967] Improve error message in enum for member name surrounded by underscore.

2020-02-05 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17746 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18370 ___ Python tracker ___

[issue39555] test_distutils fails for Windows debug build

2020-02-05 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39555] test_distutils fails for Windows debug build

2020-02-05 Thread Steve Dower
Steve Dower added the comment: New changeset ab0d892288f3058856a821e8c3e4ed8a562b by Steve Dower in branch 'master': bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357) https://github.com/python/cpython/commit/ab0d892288f3058856a821e8c3e4ed8a562b

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-02-05 Thread Mark Sapiro
Mark Sapiro added the comment: I've researched this further, and I know how this happens. The original message contains a text/html part (in my case, the only part) which contains a base64 or quoted-printable body which when decoded contains non-ascii. It is parsed correctly by

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Guido van Rossum
Guido van Rossum added the comment: Wow. Do you still have a branch with that non-working patch? Maybe there are some ideas that can be salvaged. I'm wondering if maybe we're better leaving f-strings alone? The current code is quite voluminous, but it looks as if by the time you've

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2020-02-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pmoody versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, my approach is to use the tokenizer to produce the parts of the f-string, instead of treating it as a normal string and making a second pass to parse out the pieces. I've been discussing this for a few years, and at last PyCon I talked to many tool

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

2020-02-05 Thread hai shi
hai shi added the comment: > 1) python-ast.c have one question, i fix it in PR18365. > 2) most of the questions in extension module, for example: > https://github.com/python/cpython/blob/master/Modules/gcmodule.c#L2019-L2022 brandt does relevant work already in PR17276、PR38823. --

[issue35493] multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit

2020-02-05 Thread Stefano Rivera
Stefano Rivera added the comment: This change seems to be causing a deadlock in multiprocessing shut-down: bpo-38501 -- nosy: +stefanor ___ Python tracker ___

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-02-05 Thread Stefano Rivera
Stefano Rivera added the comment: A bisect points at https://github.com/python/cpython/pull/11488 being the change that introduced this hang (bpo-35493) -- nosy: +stefanor ___ Python tracker

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2020-02-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this one should have been closed long ago. -- nosy: +rhettinger resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Guido van Rossum
Guido van Rossum added the comment: This is indeed a duplicate of issue35212 (the second message there also shows a problem with implicit f-string concatenation). There's not much information in issue34364 (just a merged PR, and a mention of a PR of yours from 2 years ago that apparently

[issue39566] inspect.Signature.__init__ asks for parameters as dict but treats as list

2020-02-05 Thread Nicholas Matthews
New submission from Nicholas Matthews : The class inspect.Signature asks for parameters of type dict in python 3.8+ (and OrderedDict in earlier versions); however the __init__ function iterates over parameters as if it were a list, specifically: for param in parameters: name = param.name

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread Steve Dower
Steve Dower added the comment: issue39555 and PR 18357 have the fix for the buildbot. -- ___ Python tracker ___ ___

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Guido van Rossum
Guido van Rossum added the comment: Note that this is somewhat urgent for oefen, since we strive to match the produced AST exactly. -- --Guido (mobile) -- ___ Python tracker

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

2020-02-05 Thread Dan Arad
Change by Dan Arad : -- nosy: +Dan Arad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39565] Modules/signalmodule.c only works with `NSIG` signals; requires fudging to support realtime signals, etc

2020-02-05 Thread Enji Cooper
New submission from Enji Cooper : The code in Modules/signalmodule.c makes a number of assumptions of what signals are considered valid, as well as what handlers need to be setup as part of the core interpreter. For example: much of the initialization of signal handlers, etc, is actually

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Eric V. Smith
Eric V. Smith added the comment: There are a number of bugs about this. See issue 35212 and issue 34364, at least. I have a stale patch that tried to fix this, but I was never able to get it completely correct. I have another approach that I hope to discuss at the language summit at PyCon.

[issue39564] Parsed expression has wrong line/col info when concatenating f-strings

2020-02-05 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : When concatenating f-strings, if there is an expression in any STRING node other than the first, col_offset of the parsed expression has a wrong value. For example, parsing f"hello" f"{world}" outputs the following AST: Module( body=[

[issue39564] Parsed expression has wrong col_offset when concatenating f-strings

2020-02-05 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- title: Parsed expression has wrong line/col info when concatenating f-strings -> Parsed expression has wrong col_offset when concatenating f-strings ___ Python tracker

[issue39127] _Py_HashPointer's void * argument should be const

2020-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3d06953c34fd6421dd1dfdb615578cde676ee0eb by Andy Lester in branch 'master': bpo-39127: Make _Py_HashPointer's argument be const (GH-17690) https://github.com/python/cpython/commit/3d06953c34fd6421dd1dfdb615578cde676ee0eb -- nosy:

[issue18213] py-bt errors on backtrace with PyRun_SimpleString and friends

2020-02-05 Thread Enji Cooper
Enji Cooper added the comment: This particular issue has been resolved in python 3.x. -- nosy: +ngie ___ Python tracker ___ ___

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

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

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree. It was added in issue32502, but was never documented and used. Thank you Sebastian and Shantanu. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8b6f6526f857bb7523b0fcff09b45bc6471289e9 by Shantanu in branch 'master': bpo-39559: Remove unused, undocumented argument from uuid.getnode (GH-18369) https://github.com/python/cpython/commit/8b6f6526f857bb7523b0fcff09b45bc6471289e9

[issue39556] Different objects of the same class references the same dictionary

2020-02-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Ammar: it is definitely a feature that default values are created only once, when the function is created, not over and over again every time the function is called. (These are sometimes called "early binding" and "late binding" respectively.) With early

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2020-02-05 Thread Dan Arad
Dan Arad added the comment: Hi everyone! I thought to take this issue up by updating the documentation. Is this still relevant? If so I think the best place to add the documentation is in the "name or flags" section, where people will go looking first. I think to add both the metavar and

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Mark Dickinson
Change by Mark Dickinson : -- superseder: -> Add __len__ to map, everything in itertools ___ Python tracker ___ ___

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-02-05 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Sebastian Rittau
Sebastian Rittau added the comment: Code using this argument is in all likelihood already subtly broken, because it depends on non-existing functionality. I believe that a "hard" break would be better (for Python 3.9). -- ___ Python tracker

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Shantanu
Shantanu added the comment: Github code search isn't great, but I was unable to find any usage of `uuid.getnode(getters=`, whereas I was able to find usage of `uuid.uuid1(node=` (even though `node` is optional and can be passed positionally). I'd be surprised if it was used in practice,

[issue38823] Improve stdlib module initialization error handling.

2020-02-05 Thread hai shi
Change by hai shi : -- pull_requests: +17745 pull_request: https://github.com/python/cpython/pull/18365 ___ Python tracker ___ ___

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Tal Einat
Tal Einat added the comment: Simply removing the argument would be backwards-incompatible. Unless someone can show via a code search that this is never used in practice, we may want to consider deprecating this argument before removing it. -- nosy: +taleinat versions: +Python 3.9

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +17743 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18369 ___ Python tracker ___

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-02-05 Thread Shantanu
Change by Shantanu : -- pull_requests: +17744 pull_request: https://github.com/python/cpython/pull/18369 ___ Python tracker ___ ___

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

2020-02-05 Thread Brett Cannon
Brett Cannon added the comment: distutils might get pulled out at some point to it's at the bottom of the priority list for now. Basically move the tests for a package to under Lib/test under the proper subpackage name and make sure the tests didn't break due to the move. That's pretty

[issue39563] asyncio.Protocol on windows 10 x64

2020-02-05 Thread Hector E. Socarras
Change by Hector E. Socarras : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-02-05 Thread jack1142
jack1142 added the comment: I also noticed that putting `await` before the async comprehension will make the code inside the comprehension run (though after it runs, it will fail on awaiting list): >>> await [await asyncio.sleep(1, print(x)) for x in range(5)] 0 1 2 3 4 Traceback (most

[issue39563] asyncio.Protocol on windows 10 x64

2020-02-05 Thread Hector E. Socarras
New submission from Hector E. Socarras : I test de sample Echo Tcp Server on https://docs.python.org/3.8/library/asyncio-protocol.html. When I run de server i got the following error from python interpreter Traceback (most recent call last): File "server_test.py", line 1, in import

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-02-05 Thread jack1142
New submission from jack1142 : asyncio REPL doesn't allow using asynchronous comprehensions outside of async func. Same behavior can also be observed when using `ast.PyCF_ALLOW_TOP_LEVEL_AWAIT` flag in `compile()` Example with `async for`: >>> async def async_gen(): ... for x in

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56 by Victor Stinner in branch 'master': bpo-39542: Declare _Py_AddToAllObjects() in pycore_object.h (GH-18368) https://github.com/python/cpython/commit/58f4e1a6ee4c6ea82f3f5075d9d9d344ce6b8a56 --

[issue39488] test_largefile: TestSocketSendfile.test_it() uses too much disk space

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: Giampaolo Rodola modified the tests to skip them if there is not enough disk space. Let's see if it's enough to fix these buildbots. Since the issue was random, I close the issue and just hope that it's now fixed :-) -- resolution: -> fixed stage:

[issue39488] test_largefile: TestSocketSendfile.test_it() uses too much disk space

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset b39fb8e847ac59b539ad7e93df91c1709815180e by Giampaolo Rodola in branch 'master': bpo-39488: Skip test_largefile tests if not enough disk space (GH-18261) https://github.com/python/cpython/commit/b39fb8e847ac59b539ad7e93df91c1709815180e

[issue39561] AMD64 Fedora Rawhide LTO + PGO 3.x: "checking for getaddrinfo... no"

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: Oh strange, it's back to green on the follow build: https://buildbot.python.org/all/#/builders/154/builds/244 I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue39561] AMD64 Fedora Rawhide LTO + PGO 3.x: "checking for getaddrinfo... no"

2020-02-05 Thread STINNER Victor
New submission from STINNER Victor : On AMD64 Fedora Rawhide LTO + PGO 3.x buildbot, "checking for getaddrinfo... no" failed: https://buildbot.python.org/all/#/builders/154/builds/243 checking for getaddrinfo... no Fatal: You must get working getaddrinfo() function. or you can specify

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: On Windows, names get a "_d" suffix for debug. Extract of build_ext.py: def get_libraries(self, ext): """Return the list of libraries to link against when building a shared extension. On most platforms, this is just 'ext.libraries';

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: I put a breakpoint before the error: test_unicode_module_names (distutils.tests.test_build_ext.BuildExtTestCase) ... > c:\vstinner\python\master\lib\distutils\tests \test_build_ext.py(316)test_unicode_module_names() ->

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6 doesn't accept bugfixes anymore: https://devguide.python.org/#status-of-python-branches The bugfix can go into 3.7 and 3.8. -- versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: The test fails on Windows. Example on AMD64 Windows8.1 Refleaks 3.x: https://buildbot.python.org/all/#/builders/157/builds/76 == FAIL: test_unicode_module_names

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17742 pull_request: https://github.com/python/cpython/pull/18368 ___ Python tracker ___

[issue38628] Issue with ctypes in AIX

2020-02-05 Thread David Edelsohn
David Edelsohn added the comment: The bug report implies a different bug than what is being reported. The bug is not related to calling a LIBC function with an argument list that does not match the function signature. The true issue is that a Python ctypes structure definition on AIX that

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: Ok, object.h looks much better now! I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0e4e735d06967145b49fd00693627f3624991dbc by Victor Stinner in branch 'master': bpo-39542: Define PyTypeObject earlier in object.h (GH-18366) https://github.com/python/cpython/commit/0e4e735d06967145b49fd00693627f3624991dbc --

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Mark Dickinson
Mark Dickinson added the comment: This is essentially a duplicate of #27678 and #24849 (and there may be others). Note that the math module now has `prod`, `comb` and `perm`, which match the lengths of the full `product`, `combinations` and `permutations` itertools functions. --

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17741 pull_request: https://github.com/python/cpython/pull/18366 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 509dd90f4684e40af3105dd3e754fa4b9c1530c1 by Victor Stinner in branch 'master': bpo-39542: Convert PyType_Check() to static inline function (GH-18364) https://github.com/python/cpython/commit/509dd90f4684e40af3105dd3e754fa4b9c1530c1 --

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-02-05 Thread hai shi
hai shi added the comment: update the above info: 1) python-ast.c have one question, i fix it in PR18365. -- ___ Python tracker ___

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

2020-02-05 Thread hai shi
hai shi added the comment: i thinkt that not checking `PyModule_AddObject()`'s result may cause this probleam too. 1) python-ast.c have one question, i fix it in PR18358. 2) most of the questions in extension module, for example:

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39560] PyUnicode_FromKindAndData kind transformation is not documented

2020-02-05 Thread Santiago M. Mola
New submission from Santiago M. Mola : PyUnicode_FromKindAndData copies input data and transforms it to the most compact representation. This behavior is not documented. Proposed wording: > The input buffer is copied and transformed into the canonical representation, > if necessary. For

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

2020-02-05 Thread hai shi
Change by hai shi : -- pull_requests: +17740 pull_request: https://github.com/python/cpython/pull/18365 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17739 pull_request: https://github.com/python/cpython/pull/18364 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset f58bd7c1693fe041f7296a5778d0a11287895648 by Victor Stinner in branch 'master': bpo-39542: Make PyObject_INIT() opaque in limited C API (GH-18363) https://github.com/python/cpython/commit/f58bd7c1693fe041f7296a5778d0a11287895648 --

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Sebastian Rittau
Sebastian Rittau added the comment: Shantanu points out in https://github.com/python/typeshed/pull/3715 that the argument was made useless due to bpo-28009. -- ___ Python tracker

[issue39559] uuid.getnode() has unused argument

2020-02-05 Thread Sebastian Rittau
New submission from Sebastian Rittau : uuid.getnode() has an undocumented, keyword-only "getters" argument that gets discarded immediately. This is confusing when using code inspection tools and can give the wrong impression that you can somehow override the node getters when you can't. I

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17738 pull_request: https://github.com/python/cpython/pull/18363 ___ Python tracker ___

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0fa4f43db086ac3459811cca4ec5201ffbee694a by Victor Stinner in branch 'master': bpo-39542: Exclude trashcan from the limited C API (GH-18362) https://github.com/python/cpython/commit/0fa4f43db086ac3459811cca4ec5201ffbee694a --

[issue39558] Implement __len__() for itertools.combinations

2020-02-05 Thread Борис Верховский
New submission from Борис Верховский : and the other objects that have a straightforward formula for the number of elements they will generate. -- components: Library (Lib) messages: 361421 nosy: boris priority: normal severity: normal status: open title: Implement __len__() for

[issue39543] Remove unused _Py_Dealloc() macro

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Py_DECREF(): use inlined _Py_Dealloc() -> Remove unused _Py_Dealloc() macro versions: -Python 3.8 ___ Python tracker

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset f16433a73138f279642e581074135694ddcfe965 by Victor Stinner in branch 'master': bpo-39543: Remove unused _Py_Dealloc() macro (GH-18361) https://github.com/python/cpython/commit/f16433a73138f279642e581074135694ddcfe965 --

[issue35799] fix or remove smtpd.PureProxy

2020-02-05 Thread Carl Harris
Change by Carl Harris : -- nosy: +hitbox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39127] _Py_HashPointer's void * argument should be const

2020-02-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: -> enhancement versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39542] Cleanup object.h header

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17737 pull_request: https://github.com/python/cpython/pull/18362 ___ Python tracker ___

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote a quick & dirty local patch to define again _Py_NewReference() and _Py_Dealloc() as inline function in object.h before Py_DECREF(). I failed to see a clear win in term of performance. Microbenchmark: ./python -m pyperf timeit --duplicate=4096

[issue39543] Py_DECREF(): use inlined _Py_Dealloc()

2020-02-05 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17736 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18361 ___ Python tracker ___

[issue38149] sys.audit() is called multiple times for glob.glob()

2020-02-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +17735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18360 ___ Python tracker

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

2020-02-05 Thread Stefan Behnel
Stefan Behnel added the comment: I agree that SystemError is the wrong response. Whether it needs to be AttributeError – probably fine to consider this an implementation detail. TypeError also seems ok in at least some of the cases. I think we should widen the code to expect some kind of

[issue39505] redundant ‘/’ in $env:VIRTUAL_ENV when use venv in powershell

2020-02-05 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39505] redundant ‘/’ in $env:VIRTUAL_ENV when use venv in powershell

2020-02-05 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 927d3aab1c7874b5705fcc8269ea608315434e66 by Miss Islington (bot) in branch '3.8': bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) (GH-18359) https://github.com/python/cpython/commit/927d3aab1c7874b5705fcc8269ea608315434e66

[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-02-05 Thread Stefan Behnel
Stefan Behnel added the comment: Ok, this is merged into 3.9. To which versions should we backport it? Definitely 3.8, definitely not 3.5, probably not 3.6 (since it's not a security issue). Ned, what about 3.7? -- nosy: +ned.deily stage: patch review -> backport needed

[issue39557] ThreadPoolExecutor is busy-waiting when idle.

2020-02-05 Thread Avraham Mahfuda
Avraham Mahfuda added the comment: If I understand the following code correctly, there seems to be a busy loop waiting for the SimpleQueue.put to signal that an item was entered to queue. https://github.com/python/cpython/blob/3.7/Modules/_queuemodule.c#L217 --

[issue39505] redundant ‘/’ in $env:VIRTUAL_ENV when use venv in powershell

2020-02-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +17734 pull_request: https://github.com/python/cpython/pull/18359 ___ Python tracker ___

[issue39505] redundant ‘/’ in $env:VIRTUAL_ENV when use venv in powershell

2020-02-05 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 787b6d548c250f36df6d3f3179f60d754c8aa5e3 by schwarzichet in branch 'master': bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) https://github.com/python/cpython/commit/787b6d548c250f36df6d3f3179f60d754c8aa5e3 --

[issue39557] ThreadPoolExecutor is busy-waiting when idle.

2020-02-05 Thread Avraham Mahfuda
Avraham Mahfuda added the comment: 1. I can confirm that the posted code above is the correct one. 2. The 100% CPU was observed in a docker instance using python:3.7.0-alpine3.8 image. 3. The docker image was running on a 2 cores VM. -- ___ Python

[issue39557] ThreadPoolExecutor is busy-waiting when idle.

2020-02-05 Thread Mark Dickinson
Mark Dickinson added the comment: It would also be helpful to know which platform you're observing the 100% CPU usage on, so that we can try to reproduce. -- ___ Python tracker

[issue39557] ThreadPoolExecutor is busy-waiting when idle.

2020-02-05 Thread Mark Dickinson
Mark Dickinson added the comment: On the HEAD of the current 3.7 branch, the file you refer to has the following code starting at line 37: while True: work_item = work_queue.get(block=True) if work_item is not None: work_item.run()