[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Maybe instead of releasing the lock in the forked child process, we should > try to acquire the lock in the os.fork() implementation, and then release it? In bpo-40089, I added _PyThread_at_fork_reinit() for this purpose: reinitialize a lock after a fork t

[issue22652] Add suggestion about keyword arguments to this error message: "builtins.TypeError: my_func() takes 1 positional argument but 2 were given"

2020-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Also, python-ideas list is a good place to get more opinions (too many sometimes) on an enhancement proposal. -- ___ Python tracker ___

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

2020-05-14 Thread Furkan Onder
Furkan Onder added the comment: You are welcome :=) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue22652] Add suggestion about keyword arguments to this error message: "builtins.TypeError: my_func() takes 1 positional argument but 2 were given"

2020-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, I am nosying you because you have worked on argument issues in the last year. Minimal example: def f(a, *, b): pass. In 3.9.0a6, >>> f(1,2) # ... Same as 5 years ago. TypeError: f() takes 1 positional argument but 2 were given My first inclinatio

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

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

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

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does the example code (which should be posted here) still hang? If so, automated tests that hang indefinitely on failure are a nuisance. A revised example that failed after, say, a second would be better. -- nosy: +terry.reedy versions: +Python 3.9

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Furkan Önder! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4b972faf605912092013a1fdbf486c498d002926 by Victor Stinner in branch 'master': bpo-40462: Fix typo in test_json (GH-20094) https://github.com/python/cpython/commit/4b972faf605912092013a1fdbf486c498d002926 -- __

[issue40142] Modify _PyObject_GC_TRACK() to ensure that newly tracked object is valid

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: While it might be doable, I don't have the bandwidth to investigate this issue and so I prefer to close it as out of date. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracke

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

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

[issue40460] [easy] undefined name in Lib/idlelib/zzdummy.py

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Yes, simple typo. Ok, thanks for the confirmation :-) It's now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue40460] [easy] undefined name in Lib/idlelib/zzdummy.py

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset edf2643bbb9859403239fe1cb3c212b1a2a8e65c by Victor Stinner in branch 'master': bpo-40460: Fix typo in idlelib/zzdummy.py (GH-20093) https://github.com/python/cpython/commit/edf2643bbb9859403239fe1cb3c212b1a2a8e65c -- _

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

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

[issue40460] [easy] undefined name in Lib/idlelib/zzdummy.py

2020-05-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19399 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20093 ___ Python tracker ___ _

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

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 75d7257b201a56f950c20cd9f5753a83fff4742b by Filipe Laíns in branch 'master': bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-19983) https://github.com/python/cpython/commit/75d7257b201a56f950c20cd9f5753a83fff4742b -- _

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: It seems like results at published at: https://codecov.io/gh/python/cpython/ It seems like there is coverage on both C and Python code. I never used this service. -- nosy: +p-ganssle ___ Python tracker

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

[issue40377] APPDATA

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

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

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

[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: https://mail.pyth

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

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

[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) https://github.com/python/cpython/commit/ce21cfca7bb2d18921bc4ac27cb06472699

[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) https://github.com/python/cpython/commit/bcc30360951a303aa72b0502b77aad2c5f09f3

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

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

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

[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

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

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

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

2020-05-14 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Understood. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2020-05-14 Thread Glenn Travis
Glenn Travis added the comment: It is working now. However, I end up with two terminal windows open. One is the one that I opened and the second appears to have been opened by the Launcher?? -- ___ Python tracker

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

2020-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: (And, to be clear, I don't *want* to strip trailing spaces.) -- ___ Python tracker ___ ___ Pyth

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

2020-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: My current PR does not strip trailing whitespace. It only strips a single trailing newline (since this is usually but not always present, and we don't want to its presence to cause an extra blank line, nor do we want its absence to cause the text line and

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

2020-05-14 Thread Glenn Travis
Glenn Travis added the comment: Thank you Ned. So close now. After your final fix, if I understood you correctly, we will no longer have to open Terminal? And, excuse my vast knowledge gap, but will it ever be possible to not have the terminal run in the future? -- _

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

2020-05-14 Thread Ned Deily
Ned Deily added the comment: Glenn, you will need to change the Interpreter setting in the Launcher Preferences panel. In the box that says "/usr/bin/pythonw", type "/usr/local/bin/python3"; that setting will then be remembered on subsequent launches. -- __

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

2020-05-14 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Agreed on everything. One thing I don't really understand is if you propose to also strip trailing whitespace. Does "limit the offset to just past the end of the source text" include whitespace or not? For example, the linked PR does not change this beha

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

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

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I consider that all things that could be done have already been done, so I close the issue. Thanks for Hai and Dong-hee who helped ;-) > * _functools: Py_CLEAR(kwd_mark); is commented in _functools_free() Sadly, PEP 573 implementation is not complete enough

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

2020-05-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19395 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20090 ___ Python tracker ___

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The revert fixed the test: $ ./python -m test -R 3:3 test__xxsubinterpreters (...) Tests result: SUCCESS -- ___ Python tracker ___

[issue40556] test__xxsubinterpreters leaked [1486, 1484, 1484, 1484] references

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The revert fixed the test: $ ./python -m test -R 3:3 test__xxsubinterpreters (...) Tests result: SUCCESS -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue40613] gcc 10 emits warning for unused function: _xxsubinterpretersmodule

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2c3b6823bc4777d4a14eb0c3615b719521f763a by Victor Stinner in branch 'master': Revert "bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768)" (GH-20089) https://github.com/python/cpython/commit/f2c3b6823bc4777d4a14eb0c3615b719521f763

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2c3b6823bc4777d4a14eb0c3615b719521f763a by Victor Stinner in branch 'master': Revert "bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768)" (GH-20089) https://github.com/python/cpython/commit/f2c3b6823bc4777d4a14eb0c3615b719521f763

[issue25872] multithreading traceback KeyError when modifying file

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

[issue40556] test__xxsubinterpreters leaked [1486, 1484, 1484, 1484] references

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 20089 to revert the change which introduced the leak. -- ___ Python tracker ___ ___ Py

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

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The buildbots are broken for one whole week and nobody is available to investigate the reference leak regression. Following the CI policy, I wrote PR 20089 to revert the change which broke the CI: https://pythondev.readthedocs.io/ci.html#revert-on-fail If so

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

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

[issue40549] Convert posixmodule.c to multiphase initialization (PEP 489)

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 97f33c35445e6d67df24dcbafef7b78333feb778 by Victor Stinner in branch 'master': bpo-40549: posixmodule.c uses defining_class (GH-20075) https://github.com/python/cpython/commit/97f33c35445e6d67df24dcbafef7b78333feb778 -- __

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

2020-05-14 Thread Christopher Marchfelder
Change by Christopher Marchfelder : -- keywords: +patch pull_requests: +19392 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20088 ___ Python tracker

[issue37573] asyncio: freeze when using MultiLoopChildWatcher on Solaris

2020-05-14 Thread Jakub Kulik
Jakub Kulik added the comment: You are right, that seems to be the same issue. Thanks for closing this. -- ___ Python tracker ___ _

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

2020-05-14 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-05-14 Thread MARK SCHWAB
New submission from MARK SCHWAB : The HDF data group relased HDF5 many years ago, it is a common data type for many science files. Their recommendation for file extension is '.h5', and mimetype 'application/x-hdf5'. See 'Recommendations' section for mime types from the HDF group here: https

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Lumír and Miro! I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset e77d428856fbd339faee44ff47214eda5fb51d57 by Lumír 'Frenzy' Balhar in branch 'master': bpo-40495: compileall option to hardlink duplicate pyc files (GH-19901) https://github.com/python/cpython/commit/e77d428856fbd339faee44ff47214eda5fb51d57

[issue40275] test.support has way too many imports

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: While the number of imports reduced a lot, "import test.support" still imports 98 modules. That's a lot! IMO we can reduce it a little bit more :-) Examples of imports which could be lazy: * faulthandler: move it into start_threads() and disable_faulthandler

[issue40512] Meta issue: per-interpreter GIL

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Add a lock to pymalloc, or disable pymalloc when subinterpreters are used: > (...) By the way, tracemalloc is not compatible with subinterpreters. test.support.run_in_subinterp() skips the test if tracemalloc is tracing. -- __

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

[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

[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. -- nosy:

[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 '/Volumes/BigHDD/Ortho4XP-mas

[issue38804] Regular Expression Denial of Service in http.cookiejar

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: The fix landed in all maintained versions, thanks. I close the issue. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: I tested manually the just released Python 3.8.3 with msg365311: I confirm that it's fixed. Thanks! -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker

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

2020-05-14 Thread Glenn Travis
Glenn Travis added the comment: I appreciate the update. As an aside, I keep the terminal in the dock. -- ___ Python tracker ___ __

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

2020-05-14 Thread Serge Matveenko
Change by Serge Matveenko : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2020-05-14 Thread Serge Matveenko
Change by Serge Matveenko : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue38701] datetime.timedelta string representation is ambiguous

2020-05-14 Thread Serge Matveenko
Serge Matveenko added the comment: I would be happy to submit a PR if there would be an agreement on the format. -- ___ Python tracker ___

[issue38045] enum.Flag instance creation is slow

2020-05-14 Thread Antony Lee
Antony Lee added the comment: Now fixed, I believe. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40625] Autogenerate signature for METH_NOARGS and perhaps METH_O extension functions

2020-05-14 Thread Antony Lee
New submission from Antony Lee : It would be nice if METH_NOARGS extension methods had an autogenerated signature (or rather, autogenerated __text_signature__ that gets picked up by inspect.signature). After all, the signature is trivially known at compile time. The same *could* possibly be

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

[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: https://mail.pytho

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

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

[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

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

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

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

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

[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. -- nosy:

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

[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 ~/dev/cpyt

<    1   2