[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-01 Thread swgmma
swgmma added the comment: Sorry, perhaps I did not word it clearly. Indeed the code to implement this looks trivial, however the part I am having trouble with is reproducing the reported issue in the first place. For example, running the attached file from a command prompt (`python

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brandtbucher, gvanrossum, steven.daprano ___ Python tracker ___ ___ Python-bugs-list

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Augmented assignment behaves identically to the update method called with a > single positional argument, so it also accepts anything implementing the > Mapping protocol (more specifically, anything with the keys and __getitem__ > methods) or

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Manjusaka
Manjusaka added the comment: In my opinion, make more lenient or not is OK, but we should guarantee the magic method should keep clean and right meaning For example, the __iadd__ in std data structure should be as same as the __add__ except it's an in-place operator. If it's necessary, I

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Manjusaka
Change by Manjusaka : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39577] venv --prompt argument is ignored

2020-03-01 Thread Andrea
Andrea added the comment: Hi, Apologies for the delays in returning to you. I have been using ZSH and Oh My ZSH on top. The prompt variable, which I have customised, looks like the following: %

[issue39810] Generic script for finding bugs in get_source_segment

2020-03-01 Thread Alex Hall
New submission from Alex Hall : Attached is a script which: - Gets all the source code it can find from sys.modules - Looks at every node in the parsed source - Gets source text for that node using ast.get_source_segment - Parses the source text again - Compares the original node with the

[issue39811] Curses crash on ^4

2020-03-01 Thread toonn
New submission from toonn : We got a report about a crash which seems to happen in the curses library when a user pressed ^4. How do we go about debugging this? https://github.com/ranger/ranger/issues/1859 -- components: Library (Lib) messages: 363057 nosy: toonn priority: normal

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Manjusaka
New submission from Manjusaka : Hello Guys: I have tried Python 3.9.0a4, I have an issue: the __ior__ and the __or__ have different behavior For example: x={} y=[(1,2)] x|=y is right and x=x|y will raise an exception. I think it's should be better make the same between two magic method ?

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is how PEP 584 specifies it. The in-place operator is more lenient. It corresponds the behavior of list operators. >>> x = [] >>> y = (1, 2) >>> x + y Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate list (not

[issue39807] Python38 installed in wrong directory on Windows

2020-03-01 Thread Young Wong
New submission from Young Wong : I'm on Windows 10 and downloaded the Python 3.8 installation package. I explicitly selected `C:\Program Files\Python38` as my installation path during in the menu, but it installs it in `C:\Program Files (x86)\Python38` at the end. My `C:\Program Files` has

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Manjusaka
Manjusaka added the comment: > Augmented assignment behaves identically to the update method called with a > single positional argument, so it also accepts anything implementing the > Mapping protocol (more specifically, anything with the keys and __getitem__ > methods) or iterables of

[issue39808] pathlib: reword docs for stat()

2020-03-01 Thread swgmma
Change by swgmma : -- keywords: +patch pull_requests: +18076 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18719 ___ Python tracker ___

[issue39577] venv --prompt argument is ignored

2020-03-01 Thread Andrea
Andrea added the comment: Actually, the virtual_info appears to be a function within the theme, that does the following function virtualenv_info { [ $VIRTUAL_ENV ] && echo '('%F{blue}`basename $VIRTUAL_ENV`%f') ' } So, eventually the problems is in the function that retrieves the wrong

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-01 Thread Antoine Pitrou
New submission from Antoine Pitrou : Since issue37266 (which forbid daemon threads in subinterpreters), we probably want to forego daemon threads in concurrent.futures. This means we also need a way to run an atexit-like hook before non-daemon threads are joined on (sub)interpreter

[issue39808] pathlib: reword docs for stat()

2020-03-01 Thread swgmma
New submission from swgmma : The docs for stat() (https://docs.python.org/3.9/library/pathlib.html#pathlib.Path.stat) state: > Return information about this path (similarly to os.stat()). The result is > looked up at each call to this method." Nit picks: 1) It states "similarly to

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: @Elad: > I'm not convinced that a multi-threaded fork()+exec() from C would be any > better, unless the Python code goes to great lengths to avoid any > non-async-signal-safe operations between the fork() and the exec(). That's exactly what the C code in

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2020-03-01 Thread Steve Dower
Steve Dower added the comment: Try running that script with pythonw.exe instead. -- ___ Python tracker ___ ___ Python-bugs-list

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-03-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- priority: normal -> critical versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-01 Thread Luca
New submission from Luca : It is often desirable to limit the help text width, for instance to 78 or 88 columns, regardless of the actual size of the terminal window. Currently you can achieve this in rather cumbersome ways, for instance by setting "os.environ['COLUMNS'] = '80'" (but this

[issue12915] Add inspect.locate and inspect.resolve

2020-03-01 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +18078 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/18720 ___ Python tracker ___

[issue39811] Curses crash on ^4

2020-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not related to curses and Python. Run arbitrary program (for example `cat` or `sleep 100`) and press Ctrl-4. You will get a core dump. This is because your terminal generates the signal SIGQUIT on Ctrl-4, and default action on SIGQUIT is core dump.

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: https://github.com/python/cpython/pull/18721 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39750] UnicodeError becomes unpicklable if data is appended to args

2020-03-01 Thread João Eiras
João Eiras added the comment: On a related note, after inspecting the UnicodeEror C code, the exception object keeps explicit references to 'encoding', 'object', 'start', 'end' and 'reason'. That means that if those properties are set (the C code does have setters) then the properties stored

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-03-01 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +18082 pull_request: https://github.com/python/cpython/pull/18725 ___ Python tracker ___

[issue15012] test issue

2020-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could someone please post a dummy reply to this issue? I'm hoping to fix e-mail notifications for me. -- ___ Python tracker ___

[issue38597] C Extension import limit

2020-03-01 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +18080 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18724 ___ Python tracker ___

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: Mmmm... wait a moment. It seems the behavior is intended: https://bugs.python.org/issue1324762 I quote: The patch contains the following changes: [...] 2) The compiler used to translate python's main() function is stored in the configure / Makefile

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2020-03-01 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I am not too attached to "my" patch, but because I love Python I really would like us to land on a solution. > However I want all changes and new additions to the SSL module to follow PEP > 543 so I can provide a PEP 543-compatible interface in the near

[issue39814] Hyphens not generated for split-words in a "note" directive

2020-03-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : The justification algorithm for the docs will sometimes split words at the end of a line and will add a hyphen to indicate the continuation. This works in most text but is broken within a "note" directive. For example, there dangling "im" split of

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-03-01 Thread Ido Michael
Ido Michael added the comment: Is it a bug? I can add the signature and set a PR -- nosy: +Ido Michael ___ Python tracker ___ ___

[issue15012] test issue

2020-03-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15012] test issue

2020-03-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: test comment for email -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: The problem is here: Programs/_testembed.o: $(srcdir)/Programs/_testembed.c $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c `MAINCC` in my Makefile is `g++-9`. Probably, MAINCC is set to the value of ``--with-cxx-main`, if

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ce720d3e0674d6ac6f1b950c20a89be4cfde7853 by Gregory P. Smith in branch '3.8': bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) https://github.com/python/cpython/commit/ce720d3e0674d6ac6f1b950c20a89be4cfde7853 --

[issue38597] C Extension import limit

2020-03-01 Thread Xinfa Zhu
Xinfa Zhu added the comment: Steve, don't know if you still need it but here is what you requested. Sorry for the slow move (I was working on something else). Seems mine is finding the x64 before the OneCore, though I don't know the significance. Python 3.7.1 (default, Dec 10 2018,

[issue39813] test_ioctl skipped -- Unable to open /dev/tty

2020-03-01 Thread Marco Sulla
New submission from Marco Sulla : During `make test`, I get the error in the title. (venv_3_9) marco@buzz:~/sources/cpython_test$ ll /dev/tty crw-rw-rw- 1 root tty 5, 0 Mar 1 15:24 /dev/tty -- components: Tests messages: 363063 nosy: Marco Sulla priority: normal severity: normal

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Change by Marco Sulla : -- keywords: +patch pull_requests: +18079 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18721 ___ Python tracker ___

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: What seems to be, at least, the conclusion of the thread: https://mail.python.org/archives/list/python-...@python.org/thread/YXMD5EIHAODRZGTQ3HU74OPGEBAVCSK6/ -- nosy: +jkloth ___ Python tracker

[issue39813] test_ioctl skipped -- Unable to open /dev/tty

2020-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: Can you give us some information about your operating system? Did you build this version of python yourself? Assuming so, how did you build it? Please show us the header you see when starting this version of python. How are you invoking this test?

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-01 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue13041 is (I think) the latest issue/patch to deal with the help width. I don't like the idea of adding more parameters to the `ArgumentParser` class. It's too complicated already. There are a couple of ways that a user can do this

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: if anyone needs this on their older 3.6 or 3.5 trees, the 3.7/3.8 patch is a trivial backport. -- stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7c64726ced3d6b5d04537386d6a9ca6d179c3be4 by Gregory P. Smith in branch '3.7': [3.7] bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) (GH-18718) (GH-18725)

[issue39814] Hyphens not generated for split-words in a "note" directive

2020-03-01 Thread Ido Michael
Ido Michael added the comment: Looks like a bug in the dev repo? What's the class responsible for rendering the notes? I can take this -- nosy: +Ido Michael ___ Python tracker

[issue39816] More descriptive error message than "too many values to unpack"

2020-03-01 Thread Alex Hall
New submission from Alex Hall : Based on the discussion in https://mail.python.org/archives/list/python-id...@python.org/thread/C6QEAEEAELUHMLB23OBRSQK2UYU3AF5O/ When unpacking fails with an error such as: ValueError: too many values to unpack (expected 2) the name of the type of the

[issue38597] C Extension import limit

2020-03-01 Thread Steve Dower
Steve Dower added the comment: In thinking about this, I think the best way forward is to just remove the logic that might statically link the initialization code, and instead commit to CPython releases always including vcruntime140.dll even if we switch to a newer version one day.

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't like the idea of adding more parameters to > the `ArgumentParser` class. It's too complicated already. I concur with Paul. Let's pass on this suggestion. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: Library (Lib) keywords: easy nosy: rhettinger priority: normal severity: normal status: open title: functools.cached_property() not included in __all__ type: behavior versions: Python 3.8, Python 3.9 ___

[issue39813] test_ioctl skipped -- Unable to open /dev/tty

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: OS: Lubuntu 18.04.4 Steps to reproduce: sudo apt-get install git libbz2-dev liblzma-dev uuid-dev libffi-dev libsqlite3-dev libreadline-dev libssl-dev libgdbm-dev libgdbm-compat-dev tk-dev libncurses5-dev git clone https://github.com/python/cpython.git cd

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : >>> import functools >>> functools.cached_property >>> functools.__all__ ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES', 'total_ordering', 'cmp_to_key', 'lru_cache', 'reduce', 'partial', 'partialmethod', 'singledispatch',

[issue38870] Expose ast.unparse in the ast module

2020-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 397b96f6d7a89f778ebc0591e32216a8183fe667 by Batuhan Taşkaya in branch 'master': bpo-38870: Implement a precedence algorithm in ast.unparse (GH-17377) https://github.com/python/cpython/commit/397b96f6d7a89f778ebc0591e32216a8183fe667

[issue32630] Migrate decimal to use PEP 567 context variables

2020-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - this appears to have caused a regression - https://bugs.python.org/issue39776 -- nosy: +gregory.p.smith ___ Python tracker ___

[issue39803] _PyLong_FormatAdvancedWriter has an unnecessary str

2020-03-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c by Andy Lester in branch 'master': closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709) https://github.com/python/cpython/commit/3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c

[issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584

2020-03-01 Thread Guido van Rossum
Guido van Rossum added the comment: This is as intended. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39818] Declaring local variable invalidates access to a global variable

2020-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: This is by design. See https://eli.thegreenplace.net/2011/05/15/understanding-unboundlocalerror-in-python for a good explanation. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2020-03-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I gave up contributing a long time ago now because it was too emotionally exhausting to me. This issue was one that helped tip the scales. I hope things have become easier now because good projects like Python need the enthusiasm and spirit of

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: Furthermore, I have not understood a think: if I understood well, --with-cxx-main is used on _some_ platforms that have problems with C++ extensions. What platforms? Is there somewhere a unit test for testing if Python compiled on one of these platforms with

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

2020-03-01 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +18084 pull_request: https://github.com/python/cpython/pull/18727 ___ Python tracker ___

[issue39794] Add --without-decimal-contextvar option to use just threads in decimal

2020-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: While i don't think this was needed in 3.7 and 3.8, you kept the default behavior the same so I don't think it is a problem. If someone builds an interpreter with this configure flag, does it break compatibility with anything that code may have started to

[issue15012] test issue

2020-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unfortunately, I didn't receive the notification :-( -- ___ Python tracker ___ ___

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-03-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39818] Declaring local variable invalidates access to a global variable

2020-03-01 Thread Grzegorz Krasoń
Grzegorz Krasoń added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-03-01 Thread Ido Michael
Ido Michael added the comment: I've created a clean PR - will do it in 2 rounds: This PR GH-18727, contains the modified test of ctypes, sqlite3 and tkinter modules. Once that's approved I'll deal with the other remaining 3. -- ___ Python tracker

[issue39819] NULL pointer crash in Modules/_cursesmodule.c in PyInit__curses() on MIPS uclibc-ng and ncurses-6.2

2020-03-01 Thread Joshua Kinard
de the malfunctioning python binary and the separate debug symbol files generated from my build. -- components: Extension Modules files: py37-gdb-bt-sigsegv-cursesmodule-uclibc-20200301.txt messages: 363107 nosy: kumba priority: normal severity: normal status: open title: NULL pointer crash in Mo

[issue39820] Bracketed paste mode for REPL

2020-03-01 Thread Marco Sulla
New submission from Marco Sulla : I suggest to add an implementation of bracketed paste mode in the REPL. Currently if you, for example, copy & paste a piece of Python code to see if it works, if the code have a blank line without indentation and the previous and next line are indented, REPL

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 12b714391e485d0150b343b114999bae4a0d34dd by Pablo Galindo in branch '3.8': [3.8] bpo-39815: add cached_property to all (GH-18726) (GH-18728) https://github.com/python/cpython/commit/12b714391e485d0150b343b114999bae4a0d34dd --

[issue39815] functools.cached_property() not included in __all__

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

[issue38641] lib2to3 does not support py38 return/yield syntax with starred expressions

2020-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 768d739c1cd8c1d41902229581811a9b86bcc76e by Vlad Emelianov in branch 'master': bpo-38641: Add lib2to3 support for starred expressions in return/yield statements (GH-16994)

[issue38641] lib2to3 does not support py38 return/yield syntax with starred expressions

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

[issue39817] CRITICAL: TypeError: cannot pickle 'generator'

2020-03-01 Thread Oscar
New submission from Oscar : I use Windows 10 Home 1909 CRITICAL: TypeError: cannot pickle 'generator' object PS D:\projects\user.log> Traceback (most recent call last): File "", line 1, in File "c:\users\user\appdata\local\programs\python\python38\lib\multiprocessing\spawn.py", line

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread Hakan
Change by Hakan : -- keywords: +patch nosy: +hakancelik nosy_count: 1.0 -> 2.0 pull_requests: +18083 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18726 ___ Python tracker

[issue39811] Curses crash on ^4

2020-03-01 Thread toonn
toonn added the comment: Vim can handle ^4 just fine while still responding to SIGQUIT though. Is there a way to determine where the signal's coming from to decide whether to react to it? -- ___ Python tracker

[issue39817] CRITICAL: TypeError: cannot pickle 'generator'

2020-03-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Oscar, can you attach a small program that reproduce the error? It's probable that the error is in your code and not in Python. -- nosy: +remi.lapeyre -paul.moore, steve.dower, tim.golden, zach.ware ___ Python

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 3.0 -> 4.0 pull_requests: +18085 pull_request: https://github.com/python/cpython/pull/18728 ___ Python tracker

[issue39520] AST Unparser can't unparse ext slices correctly

2020-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 185903de12de8837bf0dc0008a16e5e56c66a019 by Batuhan Taşkaya in branch 'master': bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304) https://github.com/python/cpython/commit/185903de12de8837bf0dc0008a16e5e56c66a019

[issue39816] More descriptive error message than "too many values to unpack"

2020-03-01 Thread Kyle Stanley
Kyle Stanley added the comment: +1, I've always found the "too many values to unpack" error messages be rather vague. Adding the type should make the message more clear, and easier to debug the error for users. But, I think Chris Angelico raised a good point regarding the length (in the

[issue39678] RFC improve readability of _queue_management_worker for ProcessPoolExecutor

2020-03-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue39678] RFC improve readability of _queue_management_worker for ProcessPoolExecutor

2020-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 0e89076247580ba0e570c4816f0e5628a7e36e83 by Thomas Moreau in branch 'master': bpo-39678: refactor queue manager thread (GH-18551) https://github.com/python/cpython/commit/0e89076247580ba0e570c4816f0e5628a7e36e83 --

[issue39815] functools.cached_property() not included in __all__

2020-03-01 Thread miss-islington
miss-islington added the comment: New changeset 217dce9ee6e3cf27a0cedbe1e4a6455776373ec2 by Hakan Çelik in branch 'master': bpo-39815: add cached_property to all (GH-18726) https://github.com/python/cpython/commit/217dce9ee6e3cf27a0cedbe1e4a6455776373ec2 -- nosy: +miss-islington

[issue39818] Declaring local variable invalidates access to a global variable

2020-03-01 Thread Grzegorz Krasoń
New submission from Grzegorz Krasoń : I'm not certain if this is intended behavior, but I would like to make sure. Please resolve with the lowest priority. It seems tricky that line #6 can influence instruction that chronologically appears earlier. Especially taking into account that line #6

[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-03-01 Thread Ido Michael
Ido Michael added the comment: @vstinner ready for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-03-01 Thread Marco Sulla
Marco Sulla added the comment: Okay... if I have understood well, the problem is with C++ Extensions. Some questions: 1. does this problem exists yet? 2. if yes, maybe Python have to wrap the python.c and _testembed.c so they can also be compiled with a C++ compiler? 3. --with-cxx-main is

[issue39199] Improve the AST documentation

2020-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 114081f8adafa16283df30c456716a1bef4758d0 by Pablo Galindo in branch 'master': bpo-39199: Add descriptions of non-deprecated nodes to the AST module documentation (GH-17812)

[issue39794] Add --without-decimal-contextvar option to use just threads in decimal

2020-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for the backport. A build option isn't new feature, but it does provide a debugging tool and work-around for people who are having problems. -- ___ Python tracker

[issue39821] grp library functions grp.getgrnam() & grp.getgrgid() returning incorrect gr_mem information

2020-03-01 Thread Abhishek
New submission from Abhishek : If root user is part of a linux group, then in the response of getgrnam() & grp.getgrid(), in te gr_mem part, root user is not listed. [root@biplab2 ~]# getent group | grep starwars starwars:x:1011:root,abhi [root@biplab2 ~]# python3 Python 3.6.8 (default, Dec

[issue39753] inspecting a partial with bound keywords gives incorrect signature

2020-03-01 Thread Chris Withers
Chris Withers added the comment: Not sure I understand your comment. The results of calling inpsect on a partial with bound keyword parameters are incorrect. Furthermore, it is surprisingly that partial objects don't maintain their own __signature__. What is it you're suggesting?

[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently None is used instead of an empty directory for the attrib field in the C implementation of Element in ElementTree. It is a pure optimization: an empty dict takes a memory and its creation has a cost. The proposed PR makes NULL be using instead

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2020-03-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18090 pull_request: https://github.com/python/cpython/pull/18733 ___ Python tracker

[issue39822] Use NULL instead of None for empty attrib in C implementation of Element

2020-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18092 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18735 ___ Python tracker

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2020-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +18091 pull_request: https://github.com/python/cpython/pull/18734 ___ Python tracker ___

[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2020-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a7b8a969eb3daacb1fcb029a8c5fecb5d09c964b by Serhiy Storchaka in branch '3.8': [3.8] bpo-38913: Fix segfault in Py_BuildValue("(sGH-O)", ...) if entered with exception raised. (GH-18656). (GH-18732)

[issue39495] xml.etree.ElementTree.TreeBuilder.start differs between pure Python and C implementations

2020-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker ___

[issue38913] Py_BuildValue("(s#O)", ...) segfaults if entered with exception raised

2020-03-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> crash versions: +Python 3.9 ___ Python tracker ___

[issue38410] Possible fatal errors due to _PyEval_SetAsyncGen{Finalizer, Firstiter}()

2020-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 87a4cd5fbebdd0e6166b421d2c3706bc2f2e5a11 by Serhiy Storchaka in branch '3.8': bpo-38410: Properly handle PySys_Audit() failures (GH-18658) https://github.com/python/cpython/commit/87a4cd5fbebdd0e6166b421d2c3706bc2f2e5a11 --

[issue39821] grp library functions grp.getgrnam() & grp.getgrgid() returning incorrect gr_mem information

2020-03-01 Thread Ammar Askar
Ammar Askar added the comment: I can't re-create this locally (tested on master and 3.5.2): ammar@cowlick:~/cpython$ getent group | grep testgroup testgroup:x:1008:ammar,root ammar@cowlick:~/cpython$ ./python Python 3.9.0a4+ (heads/master:02a4d57, Feb 27 2020, 01:54:32) [GCC 5.4.0

[issue39645] Read approximate state of concurrent.futures.Future

2020-03-01 Thread Kyle Stanley
Kyle Stanley added the comment: > I’m a bit disappointed, since it looks like this won’t allow implementing the > OP’s classes without using private APIs. The debugging and loggin use cases > aren’t very compelling to me. Yeah, I had every intention when I initially proposed the idea on the

[issue39807] Python38 installed in wrong directory on Windows

2020-03-01 Thread Zachary Ware
Zachary Ware added the comment: That almost certainly means you were installing the 32-bit version of Python. 32-bit processes see `C:\Program Files (x86)\` as `C:\Program Files\`; I no longer remember whether they can actually see the real `C:\Program Files\` at all. --

[issue26460] datetime.strptime without a year fails on Feb 29

2020-03-01 Thread Nick Moore
Nick Moore added the comment: I suspect this is going to come up about this time of every leap year :-/ The workaround is prepending "%Y " to the pattern and eg: "2020 " to the date string, but that's not very nice. Would adding a kwarg "default_year" be an acceptable solution? I can't

  1   2   >