[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 ___ __

[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: +17300 pull_request: https://github.com/python/cpython/pull/17890 ___ 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

[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 ___ _

[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

[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://

[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

[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

[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:/

[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 ___ _

[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

[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

[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 _

[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 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

[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

[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 ___ ___

[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 ___ _

[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

[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 ___ _

[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

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as a duplicate of bpo-37788. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> fix for bpo-36402 (threading._shutdown() race condition) causes reference leak ___

[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-39074 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue39074] Threading memory leak in _shutdown_locks for non-daemon threads

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: Ok, I close this issue as a duplicate of bpo-37788. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> fix for bpo-36402 (threading._shutdown() race condition) causes reference leak ___

[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: > Sure, that's obvious for `datetime` and `sys`. Less obvious for unexpected > conflicts with stdlib modules that begin with an underscore... Yeah, sadly, these modules are less known, but cause the same kind of issues :-( -- __

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: x86 Windows7 3.8: https://buildbot.python.org/all/#/builders/223/builds/59 FAIL: test_no_args_respects_force_flag (test.test_compileall.CommmandLineTestsNoSourceEpoch) -- Traceback (most rece

[issue39238] test_asyncio: test_cancel_make_subprocess_transport_exec() hangs randomly on PPC64LE Fedora 3.x

2020-01-06 Thread STINNER Victor
New submission from STINNER Victor : PPC64LE Fedora 3.x buildbot: https://buildbot.python.org/all/#builders/11/builds/134 0:35:30 load avg: 0.00 [420/420/1] test_asyncio crashed (Exit code 1) Timeout (0:15:00)! Thread 0x3fff82de5330 (most recent call first): File "/home/shager/cpython-bu

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

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset 24bcefcb74231476b055bb6f0726642abeb10f04 by Miss Islington (bot) (YoSTEALTH) in branch 'master': bpo-39234: `enum.auto()` default initial value as 1 (GH-17878) https://github.com/python/cpython/commit/24bcefcb74231476b055bb6f0726642abeb10f04 -

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset 676b16c14040ddb9a2ef3408e66a77c1dfb8e841 by Miss Islington (bot) in branch '3.7': bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873) https://github.com/python/cpython/commit/676b16c14040ddb9a2ef3408e66a77c1dfb8e841 --

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset fb59f5ffe80a1f2dcf7c6cbd2406e15bea49da21 by Miss Islington (bot) in branch '3.8': bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873) https://github.com/python/cpython/commit/fb59f5ffe80a1f2dcf7c6cbd2406e15bea49da21 --

[issue25172] Unix-only crypt should not be present on Windows.

2020-01-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +17297 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17881 ___ Python tracker ___ __

[issue25172] Unix-only crypt should not be present on Windows.

2020-01-06 Thread Steve Dower
Steve Dower added the comment: I started creating an example of improving the skip cases, and ended up just making a PR. It should: * expect a helpful error on Windows * work fine on other platforms with crypt * skip all tests on other platforms without crypt --

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset b1ce22d086660d2505010694c8813cc67adf8f9e by Miss Islington (bot) (Steve Dower) in branch 'master': bpo-39041: Fix coverage upload command for GitHub Actions (GH-17873) https://github.com/python/cpython/commit/b1ce22d086660d2505010694c8813cc67adf

[issue39041] Support GitHub Actions in CI

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

[issue39041] Support GitHub Actions in CI

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

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

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +17294 pull_request: https://github.com/python/cpython/pull/17878 ___ Python tracker ___ ___

[issue25172] Unix-only crypt should not be present on Windows.

2020-01-06 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: @steve.dower - Does this fix need more work for android? @xdegaye says he does not need this for android anymore. -- ___ Python tracker

[issue39237] Redundant call to round in delta_new

2020-01-06 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17293 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17877 ___ Python tracker ___

[issue29154] 5 failures in test_doctest: ModuleNotFoundError: No module named 'IPython'

2020-01-06 Thread Batuhan
Batuhan added the comment: @Gerrit.Holl do you able to reproduce this with a clean python installation, as @eric.snow suggested there is a chance that some kind of pth hack that tried to inject ipython etc. -- nosy: +BTaskaya ___ Python tracker <

[issue39237] Redundant call to round in delta_new

2020-01-06 Thread Alex Henrie
New submission from Alex Henrie : The delta_new function in _datetimemodule.c currently contains the following code: /* Round to nearest whole # of us, and add into x. */ double whole_us = round(leftover_us); int x_is_odd; PyObject *temp; whole_us = round(leftover_us); Th

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

2020-01-06 Thread Batuhan
Batuhan added the comment: I guess this issue expired (due to python2). -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-l

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

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

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

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

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

2020-01-06 Thread Ethan Furman
Ethan Furman added the comment: New changeset 2e9012a3e1e316c54e27f51ba5849ba06eab7da2 by Ethan Furman (YoSTEALTH) in branch 'master': bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) https://github.com/python/cpython/commit/2e9012a3e1e316c54e27f51ba5849ba06eab7da2

[issue39233] glossary entry for parameter out-of-date for positional-only parameters

2020-01-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +17290 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17874 ___ Python tracker __

[issue38901] [venv] Add a CLI flag to venv to use the pwd basename as the prompt

2020-01-06 Thread Brett Cannon
Brett Cannon added the comment: Any more feedback from anyone on the idea of using the basename of a directory if specified for `--prompt`? -- ___ Python tracker ___

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

2020-01-06 Thread Ethan Furman
Ethan Furman added the comment: `auto()` starts with 1 because Enum numbering starts at 1 (which is in the docs, albeit buried in the Functional API section). Thank you for your effort to save somebody else from that frustration, though, I appreciate it. -- nosy: +ethan.furman

[issue38901] [venv] Add a CLI flag to venv to use the pwd basename as the prompt

2020-01-06 Thread Brett Cannon
Change by Brett Cannon : -- title: Add a CLI flag to venv to use the pwd basename as the prompt -> [venv] Add a CLI flag to venv to use the pwd basename as the prompt ___ Python tracker _

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-01-06 Thread Brett Cannon
Change by Brett Cannon : -- title: Link to instructions to change PowerShell execution policy for venv activation -> [venv] Link to instructions to change PowerShell execution policy for venv activation ___ Python tracker

[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > "Safe" means safe from user input to literal_eval(). Yup, apologies. I had something in mind and I realized after writing my initial comment. That is why I said afterwards: > and the security concern is non-existent. -- ___

[issue39235] Generator expression has wrong line/col info when inside a Call object

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >Do you think it is okay to just remove the call to copy_location? I think that because in that case the parenthesis is collapsed with function call parenthesis, the position of the AST node for the generator expression should point to the left parent

[issue23147] Possible error in _header_value_parser.py

2020-01-06 Thread Batuhan
Batuhan added the comment: This issue looks resolved. -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2020-01-06 Thread Brett Cannon
Change by Brett Cannon : -- title: Adding a .gitignore file to virtual environments -> [venv] Adding a .gitignore file to virtual environments ___ Python tracker ___ _

[issue39236] Adding a .gitignore file to virtual environments

2020-01-06 Thread Brett Cannon
New submission from Brett Cannon : In a discussion on Twitter, the idea of having venv lay down a .gitignore file in a newly created virtual environment that consisted of nothing but `*` came up (https://twitter.com/codewithanthony/status/1213680829530099713). The purpose would be to help pre

[issue39235] Generator expression has wrong line/col info when inside a Call object

2020-01-06 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Do you think it is okay to just remove the call to copy_location? -- ___ Python tracker ___ _

[issue39235] Generator expression has wrong line/col info when inside a Call object

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think that was introduced in https://bugs.python.org/issue31241 -- nosy: +pablogsal ___ Python tracker ___

[issue39235] Generator expression has wrong line/col info when inside a Call object

2020-01-06 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : A normal generator expression like (i for i in a) produces the following AST: Module( body=[ Expr( value=GeneratorExp( elt=Name( id="i", ctx=Load(), lineno=1, col_offset=1, end_lineno=1, end_co

[issue39158] ast.literal_eval() doesn't support empty sets

2020-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The function literal_eval is not safe anymore as the > constructor can be intercepted "Safe" means safe from user input to literal_eval(). If a person can already write arbitrary code that redefines a builtin, then they can already do anything they wan

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +17289 pull_request: https://github.com/python/cpython/pull/17873 ___ Python tracker ___ _

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

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +17288 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17872 ___ Python tracker ___ __

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

2020-01-06 Thread YoSTEALTH
New submission from YoSTEALTH : # enum in C # - enum { a, b, c } # a = 0 # b = 1 # b = 2 # enum in Python # -- class Count(enum.IntEnum): a = enum.auto() b = enum.auto() c = enum.auto() # a = 1 # b = 2 # b = 3 I am not sure why the `enum.auto()` sta

[issue39233] glossary entry for parameter out-of-date for positional-only parameters

2020-01-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue39233] glossary entry for parameter out-of-date for positional-only parameters

2020-01-06 Thread Mark Dickinson
New submission from Mark Dickinson : The glossary entry for parameter[1] says: > Python has no syntax for defining positional-only parameters. Since PEP 570 landed in Python 3.8, that's no longer true. [1] https://docs.python.org/3/glossary.html#term-parameter -- assignee: docs@pyth

[issue30717] Add unicode grapheme cluster break algorithm

2020-01-06 Thread Paul Ganssle
Paul Ganssle added the comment: > Oh, also, if y'all are fine with binding to Rust (through a C ABI) I'd love > to help y'all use unicode-segmentation, which is much less work that pulling > in ICU. Otherwise if y'all have implementation questions I can answer them. > This spec is kinda tric

[issue39204] Automate adding Type Annotations to Documentation

2020-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Actually I agree with the OP that we could get some mileage out of joining typeshed with the docs, regardless of whether there are annotations in the stdlib. -- ___ Python tracker

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-01-06 Thread Michael Hall
New submission from Michael Hall : When using asyncio.run for an asynchronous application utilizing ssl, on windows using the proactor event loop the application crashes when the loop is closed, completely skipping a finally block in the process. This appears to be due to a __del__ method on

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

2020-01-06 Thread Brett Cannon
Brett Cannon added the comment: I agree with Inada-san that pointing out how to get the file path on a module is a better solution then explaining directory layouts which are borderline implementation details. -- ___ Python tracker

[issue39204] Automate adding Type Annotations to Documentation

2020-01-06 Thread Brett Cannon
Brett Cannon added the comment: I think a bigger thing is to simply get type annotations to be used in the stdlib first, then we can worry about documenting them as part of the API. :) -- nosy: +brett.cannon ___ Python tracker

[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2020-01-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue39225] Python should warn when a global/local has the same name as a builtin

2020-01-06 Thread Brett Cannon
Brett Cannon added the comment: I agree with Eric that this is the realm of linters as there are legitimate reasons sometimes to mask and redefine built-ins. Thanks for the idea, Reuven, but I'm closing the issue. -- nosy: +brett.cannon resolution: -> rejected stage: -> resolved st

[issue39226] venv does not include pythonXX.lib

2020-01-06 Thread Brett Cannon
Brett Cannon added the comment: When have you seen this work previously? On my Windows 10 machine there is no Scripts\libs directory for Python 3.7, let alone a python37.lib file in any directory that I can find. -- nosy: +brett.cannon, vinay.sajip __

[issue39231] Mistaken notion in tutorial

2020-01-06 Thread Robert
New submission from Robert : https://docs.python.org/3/tutorial/controlflow.html 4.7.8. Function Annotations [...] "The following example has a positional argument, a keyword argument, and the return value annotated:" It is not a "positional argument" but an "optional argument". -- as

[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread mmckerns
mmckerns added the comment: Sure, that's obvious for `datetime` and `sys`. Less obvious for unexpected conflicts with stdlib modules that begin with an underscore... -- ___ Python tracker _

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: Oops, I'm guilty of pushing this change! Sorry & thanks for the fix. if (_Py_dll_path == NULL) { /* Already set: nothing to do */ return _PyStatus_OK(); } -- ___ Python tracker

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset a9a43c221bf3896ed1d1c2eee2531b7121cf78e4 by Miss Islington (bot) in branch '3.8': bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) https://github.com/python/cpython/commit/a9a43c221bf3896ed1d1c2eee2531b7121cf78e4 -

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

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

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-06 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-06 Thread Steve Dower
Steve Dower added the comment: Thanks, Anthony! And congratulations on becoming a CPython contributor! -- ___ Python tracker ___ __

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-06 Thread Steve Dower
Steve Dower added the comment: New changeset 7b79dc9200a19ecbac667111dffd58e314be02a8 by Steve Dower (Anthony Wee) in branch 'master': bpo-29778: Fix incorrect NULL check in _PyPathConfig_InitDLLPath() (GH-17818) https://github.com/python/cpython/commit/7b79dc9200a19ecbac667111dffd58e314be02a

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread Steve Dower
Steve Dower added the comment: New changeset 0048833e1308d39dc9c6489da7872ade0f14486f by Steve Dower (Miss Islington (bot)) in branch '3.8': bpo-39041: Add GitHub Actions support (GH-17594) https://github.com/python/cpython/commit/0048833e1308d39dc9c6489da7872ade0f14486f -- ___

[issue39041] Support GitHub Actions in CI

2020-01-06 Thread Steve Dower
Steve Dower added the comment: New changeset acf5e5f3f42a3d2985499df82331705edbe717be by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-39041: Add GitHub Actions support (GH-17594) https://github.com/python/cpython/commit/acf5e5f3f42a3d2985499df82331705edbe717be -- ___

[issue39209] Crash on REPL mode with long text copy and paste

2020-01-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39209] Crash on REPL mode with long text copy and paste

2020-01-06 Thread miss-islington
miss-islington added the comment: New changeset b2e281aaa2e4a1f24671d293dfd06b23bb052e47 by Miss Islington (bot) in branch '3.8': bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860) https://github.com/python/cpython/commit/b2e281aaa2e4a1f24671d293dfd06b23bb052e47 --

[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: > Initialize ev.data to 0 I dislike this option, since the code is legit: Valgrind produces a false alarm. > Use Misc/valgrind-python.supp to ignore this *false alarm* I prefer this option. -- ___ Python tracker

[issue39041] Support GitHub Actions in CI

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

[issue39041] Support GitHub Actions in CI

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

[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: On my Fedora 31, epoll_event structure is defined in sys/epoll.h as: typedef union epoll_data { void *ptr; int fd; uint32_t u32; uint64_t u64; } epoll_data_t; struct epoll_event { uint32_t events; /* Epoll events */ epoll_data_t data;/* U

[issue39209] Crash on REPL mode with long text copy and paste

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

[issue39209] Crash on REPL mode with long text copy and paste

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5ec91f78d59d9c39b984f284e00cd04b96ddb5db by Pablo Galindo in branch 'master': bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860) https://github.com/python/cpython/commit/5ec91f78d59d9c39b984f284e00cd04b96ddb5db

[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: This issue is not a bug. You should not use the same module name, than a stdlib module. For example, if you have a "sys.py" file in your Python path (PYTHONPATH), you will get big troubles. -- nosy: +vstinner resolution: -> not a bug stage: -> reso

[issue39212] Show qualified function name when giving arguments error

2020-01-06 Thread Ram Rachum
Ram Rachum added the comment: > But I *did* get that text. I'm asking how you got the *different* text > which you gave in your initial request. Oh, right. Looking back, turns out Wing IDE did that for me. Didn't notice, sorry. > So in my opinion, and I recognise that you may disagree, this

[issue39230] fail on datetime import if _datetime.py exists in PATH

2020-01-06 Thread mmckerns
New submission from mmckerns : In Lib/datetime.py, there's an import: `from _datetime import *` which will fail if `_datetime.py` exists in the current directory, or earlier in the path than Lib. For reference, see: https://github.com/numpy/numpy/issues/15257 -- components: Library (L

[issue34480] _markupbase.py fails with UnboundLocalError on invalid keyword in marked section

2020-01-06 Thread Ezio Melotti
Ezio Melotti added the comment: I think so. It might be worth double-checking if BeautifulSoup (and possibly other 3rd party libs) use _markupbase.py and/or ParserBase.error(). If they do, giving them a heads up and/or going through a regular deprecation process might be good, otherwise PR

[issue25872] multithreading traceback KeyError when modifying file

2020-01-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Michael, reopening. I was wrong while trying the reproducer since map is lazy in Python 3 and threads were not executed. -- resolution: wont fix -> stage: resolved -> status: closed -> open versions: +Python 3.9 -Python 2.7 ___

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> I don't have a particularly deep opinion on what should be done, just a bit >> of weirdness I hit upon while implementing the PEP in PyPy. fwiw, we >> implement it as an AST transformer that the compiler runs before running the >> optimizer to make

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-01-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +17283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17866 ___ Python tracker __

[issue38907] http.server (command) fails to bind dual-stack on Windows

2020-01-06 Thread Jason R. Coombs
Jason R. Coombs added the comment: In PR 17378, we discussed and I believe the conclusion is that the fix in the other PR(s) is sufficient to address the deficiency. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue38907] http.server (command) fails to bind dual-stack on Windows

2020-01-06 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 33cb4a62bf6848093b7a05c9794582d204798b1b by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864) (GH-17865) https://github.com/python/cpython/commit/33cb4a62bf68480

[issue39200] Fix inaccurate TypeError messages when calling with insufficient arguments

2020-01-06 Thread Dong-hee Na
Dong-hee Na added the comment: @pablogsal PR 17813 is merged. If you don't mind, can we review PR 17814 that will be applied or not? -- ___ Python tracker ___ __

  1   2   >