[issue18930] os.spawnXX functions terminates process if second argument is empty list

2020-01-06 Thread Stefan Schukat
Stefan Schukat added the comment: @Batuhan the error does not appear anymore in at least Python 3.6.1 >>> import os >>> nPath = os.path.join(os.environ["windir"], "notepad.exe") >>> os.spawnv(os.P_NOWAIT, nPath, []) # or os.spawnv(os.P_NOWAIT, nPath, [], {}) Traceback (most recent call last):

[issue30717] Add unicode grapheme cluster break algorithm

2020-01-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: > I think it would be a mistake to make the stdlib use this for most > notions of what a "character" is, as I said this notion is also > inaccurate. Having an iterator library somewhere that you can use and > compose is great, changing the internal workings

[issue30717] Add unicode grapheme cluster break algorithm

2020-01-06 Thread Manish
Manish added the comment: > one never needs to look at more than two adjacent code points to tell whether or not a grapheme break will occur between them, so this ought to be pretty efficient. That note is outdated (and has been outdated since Unicode 9). The regional indicator rules (GB1

[issue38599] Deprecate creation of asyncio object when the loop is not running

2020-01-06 Thread Joongi Kim
Joongi Kim added the comment: It is also generating deprecation warning: > /opt/python/3.8.0/lib/python3.8/asyncio/queues.py:48: DeprecationWarning: The > loop argument is deprecated since Python 3.8, and scheduled for removal in > Python 3.10. > self._finished = locks.Event(loop=loop) --

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

2020-01-06 Thread Peter Bittner
Peter Bittner added the comment: There is a specific question this change attempts to answer: "Where is the module I imported located in the file system?" I suspect this comes up a lot because developers want to inspect or mess with installed modules, add debug output and the like, to unders

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

2020-01-06 Thread Inada Naoki
Inada Naoki added the comment: > There is a specific question this change attempts to answer: "Where is the > module I imported located in the file system?" So `print(the_module.__file__)` is better answer. (or `pip list -v` if the module is third party package installed via pip). `python

[issue39212] Show qualified function name when giving arguments error

2020-01-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sun, Jan 05, 2020 at 10:32:26PM +, Ram Rachum wrote: [...] > TypeError: __init__() takes 2 positional arguments but 3 were given > > As you can see, it's pretty simple to get this exception text, so I'm not > sure why you didn't get that text.

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

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I bisected this to this commit: 995d9b92979768125ced4da3a56f755bcdf80f6e is the first bad commit commit 995d9b92979768125ced4da3a56f755bcdf80f6e Author: Anthony Sottile Date: Sat Jan 12 20:05:13 2019 -0800 bpo-16806: Fix `lineno` and `col_offset

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

2020-01-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This commit seems to generate some warnings in the nested run_until_complete test. The check for running loop is now done at run_until_complete itself before going through the below code in it to create a future and raised a RuntimeError by run_for

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

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

[issue39190] _result_handler dies on raised exceptions [multiprocessing]

2020-01-06 Thread Sindri Guðmundsson
Change by Sindri Guðmundsson : -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2020-01-06 Thread Dong-hee Na
Dong-hee Na added the comment: @pablogsal Works correct with PR 17860 :) Python 3.9.0a2+ (heads/pr/17860:958541d67c, Jan 6 2020, 20:45:49) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> a = """ ... ... ...

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ooh, you are right. The warning is printed only, test runner thinks that the test is ok. I'll prepare a quick fix. -- assignee: -> asvetlov status: closed -> open ___ Python tracker

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +17280 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/17863 ___ 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: New changeset 5ed9d60bc53e2eb0a88f07d5afe5299acdc0b216 by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851) (#17854) https://github.com/python/cpython/commit/5ed9d60bc53e

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

2020-01-06 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +17281 pull_request: https://github.com/python/cpython/pull/17864 ___ Python tracker ___ _

[issue18930] os.spawnXX functions terminates process if second argument is empty list

2020-01-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as this also does not happen anymore on master as well. -- nosy: +pablogsal resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

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

2020-01-06 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick 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 sure

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

2020-01-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +17282 pull_request: https://github.com/python/cpython/pull/17865 ___ 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: New changeset 7cdc31a14c824000cbe8b487900c9826a33f6940 by Jason R. Coombs in branch 'master': bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864) https://github.com/python/cpython/commit/7cdc31a14c824000cbe8b487900c9826a33f6940

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

[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

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

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

[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

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

[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

[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

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

[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

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

[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

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

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

[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

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

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

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

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

[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

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

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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

[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
Lysandros Nikolaou added the comment: Do you think it is okay to just remove the call to copy_location? -- ___ 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

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

[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

[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

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

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

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

[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

[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 miss-islington
Change by miss-islington : -- pull_requests: +17291 pull_request: https://github.com/python/cpython/pull/17875 ___ Python tracker ___ __

[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

[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

[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
Change by Alex Henrie : -- keywords: +patch pull_requests: +17293 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17877 ___ 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

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

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

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

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

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

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

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

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

[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

[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

[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 :-( -- __

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

[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

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

  1   2   >