[issue40620] Range tutorial shorthand could be made clearer

2020-05-14 Thread Chas Belov
New submission from Chas Belov : I found https://docs.python.org/3.7/tutorial/controlflow.html#the-range-function section 4.3 confusing. The range() Function shows the following example: >>> for i in range(5): ... print(i) ... 0 1 2 3 4 [some instructional text] range(5, 10) 5, 6,

[issue40621] Python crashes with new parser on invalid exception handlers

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

[issue40621] Python crashes with new parser on invalid exception handlers

2020-05-14 Thread Shantanu
New submission from Shantanu : ``` ~/dev/cpython master λ ./python.exe --version --version Python 3.9.0a6+ (heads/master:a15c9b3a05, May 14 2020, 00:31:47) [Clang 11.0.0 (clang-1100.0.33.17)] # should raise a syntax error, instead crashes

[issue40627] Bus error on 'except E as a.b:'

2020-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry! -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> PEG Parser: Invalid targets for augassign and except succeed ___ Python tracker

[issue40628] sockmodule.c: sock_connect vs negative errno values...

2020-05-14 Thread Ryan C. Gordon
New submission from Ryan C. Gordon : (Forgive any obvious mistakes in this report, I'm almost illiterate with Python, doubly so with Python internals.) In trying to get buildbot-worker running on Haiku ( https://haiku-os.org/ ), it runs into a situation where it tries to connect a

[issue40619] compile() passes rest of file as SyntaxError().text when file unreadable

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

[issue40619] compile() passes rest of file as SyntaxError().text when file unreadable

2020-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset bcc30360951a303aa72b0502b77aad2c5f09f30d by Pablo Galindo in branch 'master': bpo-40619: Correctly handle error lines in programs without file mode (GH-20090)

[issue40602] Move Modules/hashtable.h to Include/internal/pycore_hashtable.h

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25872] multithreading traceback KeyError when modifying file

2020-05-14 Thread A.M. Kuchling
Change by A.M. Kuchling : -- nosy: +akuchling nosy_count: 5.0 -> 6.0 pull_requests: +19398 pull_request: https://github.com/python/cpython/pull/20092 ___ Python tracker ___

[issue40602] Move Modules/hashtable.h to Include/internal/pycore_hashtable.h

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d2dc827d16479d99927a6923a0347199d7c694fb by Victor Stinner in branch 'master': bpo-40602: _Py_hashtable_set() reports rehash failure (GH-20077) https://github.com/python/cpython/commit/d2dc827d16479d99927a6923a0347199d7c694fb --

[issue31375] [subinterpreters] Add the interpreters module to stdlib (PEP 554).

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters title: Add the interpreters module to stdlib (PEP 554). -> [subinterpreters] Add the interpreters module to stdlib (PEP 554). ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 16ab07063cb564c1937714bd39d6915172f005b5 by Pablo Galindo in branch 'master': bpo-40334: Correctly identify invalid target in assignment errors (GH-20076) https://github.com/python/cpython/commit/16ab07063cb564c1937714bd39d6915172f005b5

[issue34346] dir() hangs interpreter

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Only present with 2.7 new-style classes. Old-style 2.7 did not exhibit this > behavior nor did 3.x. Python 2 is no longer supported, I close the issue as out of date. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open

[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah nosy_count: 12.0 -> 13.0 pull_requests: +19405 pull_request: https://github.com/python/cpython/pull/18817 ___ Python tracker

[issue39881] [subinterpreters] Multiple Interpreters in the Stdlib (PEP 554) - High-level Implementation

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-32604. Please change the bpo number of your PRs: use bpo-32604. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> [subinterpreters] Expose the subinterpreters

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset c1203b75ffe429b28cb2e2480deb0d0b8d3a941c by Miss Islington (bot) in branch '3.7': bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (#20099) https://github.com/python/cpython/commit/c1203b75ffe429b28cb2e2480deb0d0b8d3a941c

[issue40513] [subinterpreters] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Well, the remaining field which should be moved is the GIL lock itself. It will likely be the last thing to do in bpo-40512. I consider that the work is done in this issue and so I close it. -- resolution: -> fixed stage: patch review -> resolved

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a78589b6b22878491a4b042bb8b3161e1d120f6 by Filipe Laíns in branch 'master': bpo-40548: github actions: pass the changes check on no source changes (GH-20097) https://github.com/python/cpython/commit/6a78589b6b22878491a4b042bb8b3161e1d120f6

[issue40612] Make traceback module's formatting of SyntaxError more similar to system formatting

2020-05-14 Thread miss-islington
miss-islington added the comment: New changeset 15bc9ab301d73f20bff47a12ef05326feb40f797 by Guido van Rossum in branch 'master': bpo-40612: Fix SyntaxError edge cases in traceback formatting (GH-20072) https://github.com/python/cpython/commit/15bc9ab301d73f20bff47a12ef05326feb40f797

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: @serhiy: this was pretty straightfowrard to fix as you suspected -- would you be able to review it? -- ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread miss-islington
miss-islington added the comment: New changeset 6ad51a1fd6715d8266a43a4a89d496cf0615aace by Miss Islington (bot) in branch '3.7': [3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100) https://github.com/python/cpython/commit/6ad51a1fd6715d8266a43a4a89d496cf0615aace

[issue1332869] Fatal Python error: Interpreter not initialized

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity since 2006, I close the issue as out of date. -- nosy: +vstinner resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-14 Thread paul rubin
paul rubin added the comment: I don't think the interface needs much bikeshedding, as long as the implementer chooses something reasonable. E.g. factor(30) gives the list [2,3,5]. Implementation is harder if you want to handle numbers of non-trivial size. Neal Koblitz's book "A Course in

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19403 pull_request: https://github.com/python/cpython/pull/20098 ___ Python tracker

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in bpo-38691: commit fc72ab6913f2b5337ae7fda711f2de846d38f479 Author: idomic Date: Mon Mar 9 07:57:53 2020 -0400 bpo-38691: importlib ignores PYTHONCASEOK if -E is used (GH-18627) The importlib module now ignores the PYTHONCASEOK

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac by Joannah Nanjekye in branch 'master': bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) https://github.com/python/cpython/commit/7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +19404 pull_request: https://github.com/python/cpython/pull/20099 ___ Python tracker ___

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue24228] Interpreter triggers segmentation fault at the starting

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity since 2015, it was a bug in Python 3.4. Please retry with Python 3.8.3. I close the issue. -- nosy: +vstinner resolution: third party -> out of date stage: -> resolved status: open -> closed ___

[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +19406 pull_request: https://github.com/python/cpython/pull/19985 ___ Python tracker ___

[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-39881 as a duplicate of this issue. It has two open PRs: * PR 18817 * PR 19985 I changed their title to use bpo-32604. -- ___ Python tracker

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- title: [subinterpreters] Expose the subinterpreters C-API in Python for testing use. -> [subinterpreters] PEP 554 implementation: add interpreters module ___ Python tracker

[issue10915] [subinterpreters] Make the PyGILState API compatible with multiple interpreters

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked this issue as a duplicate of bpo-15751. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> [subinterpreters] Support subinterpreters in the GIL state API ___

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-10915 as a duplicate of this issue. See also bpo-1021318: "PyThreadState_Next not thread safe". -- components: +C API title: [subinterpreters] Support subinterpreters in the GIL state API -> [subinterpreters] Make the PyGILState API

[issue4202] [subinterpreters] Multiple interpreters and readline module hook functions.

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-15751: [subinterpreters] Make the PyGILState API compatible with subinterpreters. -- nosy: +vstinner ___ Python tracker ___

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-4202: [subinterpreters] Multiple interpreters and readline module hook functions. -- ___ Python tracker ___

[issue36876] [subinterpreters] Global C variables are a problem

2020-05-14 Thread David Bolen
Change by David Bolen : -- nosy: -db3l ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40601] [C API] Hide static types from the limited C API

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I see two options: * Add a field to PyObject, but only in a special debug mode. Maybe not even in Py_DEBUG (since I managed to make Py_DEBUG ABI-compatible with the release mode!) * Add an hash table mapping an object to its interpreter. The hash table

[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-14 Thread Huon Wilson
New submission from Huon Wilson : Per https://mail.python.org/archives/list/python-id...@python.org/thread/QDWI37A4TJXOYUKULGPY2GKD7IG2JNDC/ , it would be helpful to have a function that resets the peak memory usage of the tracemalloc module, without changing all the traces. This allows for

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Which implementation is currently used on AIX? What's the output of the following command? $ ./python Python 3.9.0a6+ (heads/master:4a12d12186, May 15 2020, 04:55:17) >>> import time; time.get_clock_info('thread_time') namespace(adjustable=False,

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19407 pull_request: https://github.com/python/cpython/pull/20100 ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 07bd5cf3d9551ae84100e6400836163fcd507f07 by Victor Stinner in branch '3.8': [3.8] bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-20100) https://github.com/python/cpython/commit/07bd5cf3d9551ae84100e6400836163fcd507f07

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19408 pull_request: https://github.com/python/cpython/pull/20101 ___ Python tracker

[issue38160] [subinterpreters] Add a "PyInterpreterState *" field to PyTypeObject.

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: Add a "PyInterpreterState *" field to PyTypeObject. -> [subinterpreters] Add a "PyInterpreterState *" field to PyTypeObject. ___ Python tracker

[issue37888] [subinterpreters] Confusing docs about state after calling Py_NewInterpreter()

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters title: Sub-interpreters : Confusing docs about state after calling Py_NewInterpreter() -> [subinterpreters] Confusing docs about state after calling Py_NewInterpreter() ___ Python tracker

[issue28411] [subinterpreters] Eliminate PyInterpreterState.modules.

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: Eliminate PyInterpreterState.modules. -> [subinterpreters] Eliminate PyInterpreterState.modules. ___ Python tracker

[issue34821] Crash after run Python interpreter from removed directory

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I understood that the bug was fixed in Python 3.5. Python 3.4 and older are no longer supported, I close the issue. -- nosy: +vstinner resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue35969] Interpreter crashes with "can't initialize init_sys_streams" when abc fails to import

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: > I agree with @p-ganssle, If exist some problem on initialize Python > interpreter it would be great if it return a non-zero status and avoid an > abort() Since Python 3.8 (PEP 587), Python no longer call abort() on initialization error. $ echo bug >

[issue4202] [subinterpreters] Multiple interpreters and readline module hook functions.

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: Multiple interpreters and readline module hook functions. -> [subinterpreters] Multiple interpreters and readline module hook functions. ___ Python tracker

[issue26461] PyInterpreterState_Head(), PyThreadState_Next() etc can't be sanely used

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-1021318. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PyThreadState_Next not thread safe ___ Python tracker

[issue1021318] PyThreadState_Next not thread safe

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-26461 as a duplicate of this issue. -- ___ Python tracker ___ ___

[issue6531] [subinterpreters] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters. -> [subinterpreters] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

[issue24554] [subinterpreters] GC should happen when a subinterpreter is destroyed

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: GC should happen when a subinterpreter is destroyed -> [subinterpreters] GC should happen when a subinterpreter is destroyed ___ Python tracker

[issue32604] [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-30439 and bpo-31375 as duplicates of this issue. -- ___ Python tracker ___ ___

[issue31375] [subinterpreters] Add the interpreters module to stdlib (PEP 554).

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-32604. -- nosy: +vstinner resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

[issue30439] [subinterpreters] Expose the subinterpreters C-API in the stdlib

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-32604. -- nosy: +vstinner resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> [subinterpreters] Expose the subinterpreters C-API in Python for testing use.

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-36877 "[subinterpreters][meta] Move fields from _PyRuntimeState to PyInterpreterState" as a duplicate of this issue. -- ___ Python tracker

[issue36877] [subinterpreters][meta] Move fields from _PyRuntimeState to PyInterpreterState.

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-40512. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> [subinterpreters] Meta issue: per-interpreter GIL ___ Python tracker

[issue40234] [subinterpreters] Disallow daemon threads in subinterpreters optionally

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Issue title: "[subinterpreters] Disallow daemon threads in subinterpreters optionally" This issue is basically addressed by bpo-40453: daemon threads continue to be allowed by default when using Py_NewInterpreter(), but it's possible to opt-in for

[issue38872] Document exec symbol for codeop.compile_command

2020-05-14 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset eb5ce324f724a59c51d7a76d1dd49b550cdf386b by Miss Islington (bot) in branch '3.8': bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)

[issue36876] [subinterpreters] Global C variables are a problem

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: More and more C extensions are converted to multiphase initialization API (PEP 489) and their global variables are moved into a new module state. bpo-39465 will make _Py_IDENTIFIER compatible with subinterpreters. See also bpo-40521 for caches like free

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I created a new "Subinterpreters" component in the bug tracker. It may help to better track all issues related to subinterpreters. -- ___ Python tracker

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The following change broke test_fstring when using the old parser. I reopen the issue. commit 846d8b28ab9bb6197ee81372820311c0abe509c0 (refs/bisect/bad) Author: Lysandros Nikolaou Date: Mon May 4 14:32:18 2020 +0300 bpo-40246: Revert reporting of

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The error can be seen on the new cool AMD64 Arch Linux VintageParser 3.x, vintage is the new cool: https://buildbot.python.org/all/#builders/648/builds/185 -- ___ Python tracker

[issue40630] tracemalloc: allow resetting peak memory metric without touching other traces

2020-05-14 Thread Huon Wilson
Change by Huon Wilson : -- keywords: +patch pull_requests: +19409 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20102 ___ Python tracker ___

[issue40627] Bus error on 'except E as a.b:'

2020-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, looks like https://github.com/python/cpython/pull/20083 fixes it. -- keywords: +patch message_count: 1.0 -> 2.0 pull_requests: +19397 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20083

[issue1776160] Buffer overflow when listing deeply nested directory

2020-05-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue40621] Python crashes with new parser on invalid exception handlers

2020-05-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> PEG Parser: Invalid targets for augassign and except succeed ___ Python tracker

[issue40618] PEG Parser: Invalid targets for augassign and except succeed

2020-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ce21cfca7bb2d18921bc4ac27cb064726996c519 by Lysandros Nikolaou in branch 'master': bpo-40618: Disallow invalid targets in augassign and except clauses (GH-20083)

[issue1776160] Buffer overflow when listing deeply nested directory

2020-05-14 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40377] APPDATA

2020-05-14 Thread Chris Billington
Change by Chris Billington : -- title: APPDATA location in Microsoft Store version -> APPDATA ___ Python tracker ___ ___

[issue40627] Bus error on 'except E as a.b:'

2020-05-14 Thread Guido van Rossum
New submission from Guido van Rossum : This seems due to some new check in pegen: >>> try: ... pass ... except E as a.b: ... pass ... Bus error: 10 -- messages: 368860 nosy: gvanrossum, lys.nikolaou, pablogsal priority: normal severity: normal stage: needs patch status: open

[issue22107] tempfile module misinterprets access denied error on Windows

2020-05-14 Thread Tor Colvin
Change by Tor Colvin : -- nosy: +Tor.Colvin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40602] Move Modules/hashtable.h to Include/internal/pycore_hashtable.h

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset a482dc500b6ec4889f6a126ba08cbad6c11e37bc by Victor Stinner in branch 'master': bpo-40602: Write unit tests for _Py_hashtable_t (GH-20091) https://github.com/python/cpython/commit/a482dc500b6ec4889f6a126ba08cbad6c11e37bc --

[issue40377] APPDATA location in Microsoft Store version

2020-05-14 Thread Chris Billington
Change by Chris Billington : -- title: APPDATA -> APPDATA location in Microsoft Store version ___ Python tracker ___ ___

[issue40623] JSON streaming

2020-05-14 Thread paul rubin
paul rubin added the comment: Also I didn't know about ndjson (I just looked at it, ndjson.org) but its existence and formalization is even more evidence that this is useful. I'll check what the two different python modules linked from that site do that's different from your example of

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-14 Thread Glenn Travis
Glenn Travis added the comment: Well heck. I just tried it, and got an error. The error does not occur when I run the script directly from the Terminal, nor when I run it via IDLE (double click) Last login: Thu May 14 07:57:11 on ttys000 But what do I know? % cd

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-05-14 Thread Christopher Marchfelder
Christopher Marchfelder added the comment: @steve.dower I would really love to work on this and make my first contribution. Never did one, so I would some help doing this one :) -- nosy: +Christopher Marchfelder ___ Python tracker

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-14 Thread paul rubin
paul rubin added the comment: I'm the one always asking for more stuff in the stdlib, but above some simplistic approaches this seems out of scope. Doing it usefully above say 2**32 requires fancy algorithms. Better to use some external package that implements that stuff. --

[issue40622] Using VS2019 to automatically build Python3 and Runtest and it failed to Runtest

2020-05-14 Thread Lin Gao
New submission from Lin Gao : Here is repro steps: 1. git clone -b "3.6" -c core.autocrlf=true https://github.com/python/cpython.git F:\gitP\python\cpython 2. Open a VS 2019 16.4.5 x86 command prompt and browse to F:\gitP\python\cpython 3. checkout the revision to f3a5b7a. 4. Add #include to

[issue40623] JSON streaming

2020-05-14 Thread paul rubin
New submission from paul rubin : This is a well-explored issue in other contexts: https://en.wikipedia.org/wiki/JSON_streaming There is also a patch for it in json.tool, for release in 3.9: https://bugs.python.org/issue31553 Basically it's often convenient to have a file containing a list

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2020-05-14 Thread Tim Nyborg
Tim Nyborg added the comment: Echoing Fran Boon, I'm wondering what needs to happen to get the fixes merged and this issue resolved. It affects web servers run on several frameworks, which is more of a problem now, since so many of us migrated to py3 in advance of py2 EOL. --

[issue33953] The DEFAULT_ENTROPY variable used to store the current default random bytes value should be documented for `secrets` module

2020-05-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> steven.daprano nosy: +steven.daprano ___ Python tracker ___ ___

[issue40411] frozen collection.Counter

2020-05-14 Thread paul rubin
paul rubin added the comment: Note: PEP 603 may essentially take care of this, if it is accepted. -- ___ Python tracker ___ ___

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: We should run the tests with the old parser in at least one build. -- ___ Python tracker ___

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-05-14 Thread hai shi
hai shi added the comment: > It seems like there is coverage on both C and Python code. Great, MAYBE we can use this coverage result to improve our testcases. -- ___ Python tracker

[issue40623] JSON streaming

2020-05-14 Thread paul rubin
paul rubin added the comment: Note: the function in my attached file wants no separation at all between the json docs (rather than a newline between them), but that was ok for the application I wrote it for some time back. I forgot about that when first writing this rfe so thought I better

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-14 Thread Ned Deily
Ned Deily added the comment: An update on this: it turns out there are two different problems with the launcher app as a result of security changes introduced in macOS 10.15 Catalina. The first is that the launcher did not execute files launched with it (for example, by double-clicking on

[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

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

[issue40624] add support for != (not-equals) in ElementTree XPath

2020-05-14 Thread Antony Lee
New submission from Antony Lee : It would be a small usability improvement if ElementTree's XPath support also supported the != (not-equals) operator. I am specifically mentioning only != and not >/ ___

[issue40623] JSON streaming

2020-05-14 Thread paul rubin
Change by paul rubin : Added file: https://bugs.python.org/file49154/jsonstream.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40623] JSON streaming

2020-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you want to read json objects encoded one per line (JSON Lines or NDJSON), you can do this with just two lines of code: for line in file: yield json.loads(line) This format is not formally standardized, but it is popular because its support

[issue36027] Support negative exponents in pow() where a modulus is specified.

2020-05-14 Thread paul rubin
paul rubin added the comment: https://bugs.python.org/issue457066 The old is new again ;-). -- nosy: +phr ___ Python tracker ___

[issue40621] Python crashes with new parser on invalid exception handlers

2020-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the issue and the PR @hauntsaninja. Unfortunately, I think this is already covered by #20083 and https://bugs.python.org/issue40618 -- nosy: +pablogsal ___ Python tracker

[issue40623] JSON streaming

2020-05-14 Thread paul rubin
paul rubin added the comment: It's coming back to me, I think I used the no-separator format because I made the multi-document input files by using json.dump after opening the file in append mode. That seems pretty natural. I figured the wikipedia article and the json.tool patch just

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -19288 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40629] Error MSB4086 (numeric comparison)

2020-05-14 Thread veganaiZe
New submission from veganaiZe : I'm getting an "error MSB4086: A numeric comparison was attempted ..." while attempting to build Python 3.8.3 (branch `3.8` from github) on Windows 8.1 (64-bit) with VC++ Build Tools 14.0 (2015 R3), at the command line. I'm guessing that I might have an

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I suggest to implement this idea on PyPI first and only later propose it for inclusion in the stdlib (as a new module, or into an existing module). Bikeshedding on names, debate on the appropriate trade-off between correctness and speed, how many

[issue40522] [subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters -Interpreter Core title: Subinterpreters: get the current Python interpreter state from Thread Local Storage (autoTSSkey) -> [subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)

  1   2   >