[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-39201 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Raphaël M
Raphaël M added the comment: Any pointer would also be welcome, and a piece of code showing the bug would help me a lot. Thank you. -- ___ Python tracker ___ _

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-06 Thread STINNER Victor
New submission from STINNER Victor : The select.epoll.unregister(fd) method currently ignores EBADF error if the file descriptor fd is invalid. I'm surprised by this undocumented behavior: https://docs.python.org/dev/library/select.html#select.epoll.unregister This behavior may lead to bugs i

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17882 ___ Python tracker ___ _

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

2020-01-06 Thread hai shi
Change by hai shi : -- pull_requests: +17299 pull_request: https://github.com/python/cpython/pull/17883 ___ Python tracker ___ ___

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

2020-01-06 Thread hai shi
hai shi added the comment: Compare to _Py_ForgetReference(), _Py_INC_REFTOTAL in _Py_NewReference() looks redundant. REF: https://github.com/python/cpython/blob/master/Include/object.h#L442 master brach baseline in my vm: ``` sys.gettotalrefcount(): 18049 sys.gettotalrefcount(): 22463 ``` a

[issue39240] keyerror in string format

2020-01-06 Thread Gerardo
New submission from Gerardo : Hi, i think tha this is a problem, i'm not have mutch experiencing in programming with python. I have added in the file the line that create the problem and a line that make fully functional. Thanks for the time. Gerry -- components: Regular Expressions f

[issue39240] keyerror in string format

2020-01-06 Thread Eric V. Smith
Eric V. Smith added the comment: When creating a bug report, please show the actual errors that you get. This is not a bug in python. In line 5 you're looking for composer2['third'], so of course you'd need to define it. -- components: -Regular Expressions nosy: +eric.smith resolut

[issue39240] keyerror in string format

2020-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Instead of doing lookups with square brackets, consider using the dict.get() method that returns a default value rather than raising a KeyError for a missing key. composer2[input1] --> composer2.get(input1, 0) -- nosy: +rhettinger _

[issue39227] OverflowError in len(range(2**63))

2020-01-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue39241] Popen of python3.6 hangs on os.read(errpipe_read, 50000)

2020-01-06 Thread Xu
New submission from Xu : I have a piece code hangs on os.read(errpipe_read, 5) So I compared the python3.6 with python2.7 on _execute_child, I saw: for python2.7 we create the errpipe_read/write with pipe_cloexec() 1213 # For transferring possible exec failure from child to par

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the PRs. -- nosy: +eric.smith resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue39236] [venv] Adding a .gitignore file to virtual environments

2020-01-06 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22606] Inconsistency between Python 2 and PyPy regarding future imports

2020-01-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: If you fully compiled this code, it would fail. CPython checks the well-formedness of __future__ statements after ast parsing. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python t

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Inada Naoki
Inada Naoki added the comment: > I've tried writing some Python code to reproduce this bug, but I'm unable to > -- I should be missing something. Is there a simple snippet showing the > issue? Note that this is a bug from long ago. Why this bug had lived long is it can not happen in regu

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2020-01-06 Thread Raphaël M
Raphaël M added the comment: Thank you very much! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue39242] Update news.gmane.org to news.gmane.io

2020-01-06 Thread Dong-hee Na
New submission from Dong-hee Na : https://discuss.python.org/t/ot-gmane-server-moving/2967 AFAIK, we have several codes that use news.gmane.org. According to article, don't we have to update it? (sorry I am not a committer, so I don't have permission to write on that) https://github.com/python

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2020-01-06 Thread Batuhan
Batuhan added the comment: Anything left on this issue, PR 14680 looks resolved this issue. -- nosy: +BTaskaya ___ Python tracker ___ _

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2020-01-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue38623] Python documentation should mention how to find site-packages

2020-01-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +17300 pull_request: https://github.com/python/cpython/pull/17890 ___ Python tracker ___ __

[issue38623] Python documentation should mention how to find site-packages

2020-01-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset ca94677a6216e2d41b04574986ce49d31a0b329c by Inada Naoki in branch 'master': bpo-38623: Doc: Add section for site module CLI. (GH-17858) https://github.com/python/cpython/commit/ca94677a6216e2d41b04574986ce49d31a0b329c --

[issue38623] Python documentation should mention how to find site-packages

2020-01-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +17301 pull_request: https://github.com/python/cpython/pull/17891 ___ Python tracker ___ __

<    1   2