[issue1076955] Tutorial corrections (various issues spaced throughout the document)

2020-05-13 Thread Chas Belov
Change by Chas Belov : -- title: Tutorial corrections -> Tutorial corrections (various issues spaced throughout the document) ___ Python tracker ___

[issue11425] Cleanup sample code spacing and block arrangement in tutorial.

2020-05-13 Thread Chas Belov
Change by Chas Belov : -- title: Cleanup sample codes in tutorial. -> Cleanup sample code spacing and block arrangement in tutorial. ___ Python tracker ___

[issue3490] Example Code Error in Tutorial Documentation Section 4.4

2020-05-13 Thread Chas Belov
Change by Chas Belov : -- title: Example Code Error in Tutorial Documentation -> Example Code Error in Tutorial Documentation Section 4.4 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-05-13 Thread hai shi
hai shi added the comment: Hi, folks. If there have no other imports should be improved, I suggest to close this bpo ;) -- ___ Python tracker ___

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

2020-05-13 Thread Guido van Rossum
New submission from Guido van Rossum : Example: >>> compile("pass\n(1+)\npass", "", "exec") Traceback (most recent call last): File "", line 1, in File "", line 2 (1+) pass ^ SyntaxError: invalid syntax >>> Note that the input is pass (1+) pass The second "pass" (and in

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

2020-05-13 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40275] test.support has way too many imports

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7443d42021d433da0497f8ba651daa47e7dc1991 by Hai Shi in branch 'master': bpo-40275: Import locale module lazily in gettext (GH-19905) https://github.com/python/cpython/commit/7443d42021d433da0497f8ba651daa47e7dc1991 --

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: The issue has been fixed in the master branch, thanks Pablo! I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40429] [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence

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

[issue40609] _tracemalloc: remove pointer_t type

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: I modified _Py_hashtable_t to remove key_size and data_size: keys are now always "void *" and values are now always "void *". See also bpo-40602: Move Modules/hashtable.h to Include/internal/pycore_hashtable.h. -- resolution: -> fixed stage: patch

[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-05-13 Thread R. David Murray
R. David Murray added the comment: Thanks, Arkadiusz. -- resolution: -> fixed stage: patch review -> backport needed versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

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

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19389 pull_request: https://github.com/python/cpython/pull/20085 ___ Python tracker ___

[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-05-13 Thread R. David Murray
R. David Murray added the comment: New changeset 6f2f475d5a2cd7675dce844f3af436ba919ef92b by Arkadiusz Hiler in branch 'master': bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038)

[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-05-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19388 pull_request: https://github.com/python/cpython/pull/20084 ___ Python tracker

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

2020-05-13 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +19387 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20083 ___ Python tracker

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

2020-05-13 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Tuples and lists, which are invalid augmented assignment targets, currently get successfully parsed, without failing. ➜ cpython git:(targets-fix) ✗ ./python -X oldparser Python 3.9.0a6+ (heads/master-dirty:75cd8e48c6, May 14 2020,

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

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2 by Victor Stinner in branch 'master': bpo-40521: Add PyInterpreterState.unicode (GH-20081) https://github.com/python/cpython/commit/3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2 --

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

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: I wrote a draft PR to make interned strings per-interpreter. It does crash because it requires to make method cache and _PyUnicode_FromId() (bpo-39465) compatible with subinterpreters. -- ___ Python tracker

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 75cd8e48c62c97fdb9d9a94fd2335be06084471d by Chris Jerdonek in branch 'master': bpo-29587: Make gen.throw() chain exceptions with yield from (GH-19858) https://github.com/python/cpython/commit/75cd8e48c62c97fdb9d9a94fd2335be06084471d

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

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19386 pull_request: https://github.com/python/cpython/pull/20082 ___ Python tracker ___

[issue39465] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb by Victor Stinner in branch 'master': bpo-39465: Remove _PyUnicode_ClearStaticStrings() from C API (GH-20078) https://github.com/python/cpython/commit/d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb

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

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19385 pull_request: https://github.com/python/cpython/pull/20081 ___ Python tracker ___

[issue39465] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19384 pull_request: https://github.com/python/cpython/pull/20078 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 97e1568325e4d8eff2fc80eeb174b3f3e5d1c350 by Victor Stinner in branch 'master': bpo-38787: Fix Argument Clinic defining_class_converter (GH-20074) https://github.com/python/cpython/commit/97e1568325e4d8eff2fc80eeb174b3f3e5d1c350 --

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

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19383 pull_request: https://github.com/python/cpython/pull/20077 ___ Python tracker ___

[issue35967] Better platform.processor support

2020-05-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: My bad. I probably could have been more proactive about providing a reproducer. The problem, as described above (msg335220) and in the associated cmdix ticket, is that invocation of `platform.(anything)` causes shelling out to execute "uname", so it's not

[issue40334] PEP 617: new PEG-based parser

2020-05-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19382 pull_request: https://github.com/python/cpython/pull/20076 ___ Python tracker ___

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

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19381 pull_request: https://github.com/python/cpython/pull/20075 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19380 pull_request: https://github.com/python/cpython/pull/20074 ___ Python tracker ___

[issue40474] Code coverage report not entirely accurate

2020-05-13 Thread Lewis Ball
Lewis Ball added the comment: I don't have triage permissions so I don't think I can request a review. Although @aeros has requested one. -- ___ Python tracker ___

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19379 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20073 ___ Python tracker ___

[issue26175] Fully implement IOBase abstract on SpooledTemporaryFile

2020-05-13 Thread Daniel Jewell
Daniel Jewell added the comment: To add something additional here: The current documentation for tempfile.SpooledTemporaryFile indicates "This function operates exactly as TemporaryFile() does, except that data is spooled in memory until the file size exceeds max_size[...]" (see

[issue40503] PEP 615: Add zoneinfo module

2020-05-13 Thread Paul Ganssle
Paul Ganssle added the comment: Talked to Steve Dower in a sidebar about the issue with compile-time configuration, he is convinced that compile-time configuration is not something that would be useful or worth doing on Windows. I am indifferent on the matter, so I am fine with calling the

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-13 Thread Paul Ganssle
Paul Ganssle added the comment: >From some discussion on the reference implementation PR, it seems that this >may be a more complicated feature than I had bargained for: >https://github.com/pganssle/zoneinfo/pull/60 The issue is that the current implementation picks up the posix/ and right/

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can just copy the implementation of inspect.getdoc() and related functions in pydoc for use in help(), and restore the old code in the inspect module. Of course it will mean that third-party tools will continue to show incorrect docstrings in some

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Łukasz Langa
Łukasz Langa added the comment: OK, that was my intuition, too. I will block beta on it then. -- ___ Python tracker ___ ___

[issue40334] PEP 617: new PEG-based parser

2020-05-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a15c9b3a0524e5ca0434d2ad11076677824af941 by Lysandros Nikolaou in branch 'master': bpo-40334: Always show the caret on SyntaxErrors (GH-20050) https://github.com/python/cpython/commit/a15c9b3a0524e5ca0434d2ad11076677824af941 --

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2020-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset de92769d473d1c0955d36da2fc71462621326f00 by jack1142 in branch 'master': bpo-34790: add version of removal of explicit passing of coros to `asyncio.wait`'s documentation (#20008)

[issue40617] sqlite3: expose sqlite3_create_window_function

2020-05-13 Thread Ilja Umov
New submission from Ilja Umov : Expose sqlite3_create_window_function as sqlite3.create_window_function. There already exists sqlite3.create_aggregate, which uses sqlite3_create_function_v2 and is conceptually similar. Window functions are available in sqlite starting from 2018-09-15

[issue40607] asyncio.wait_for should reraise future exception even if timeout expires

2020-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: > I think that in case inner task cancelation fails with some error, > asyncio.wait_for should reraise it instead of silently losing it. +1. -- ___ Python tracker

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: I feel it should. At the very least, a decision should be made on how to move forward. -- ___ Python tracker ___

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-05-13 Thread Łukasz Langa
Łukasz Langa added the comment: This sadly missed 3.8.3 but I want this addressed for 3.8.4. -- ___ Python tracker ___ ___

[issue40257] Improve the use of __doc__ in pydoc

2020-05-13 Thread Łukasz Langa
Łukasz Langa added the comment: Should this block 3.9.0b1, planned for Monday May 18th? -- nosy: +lukasz.langa ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-13 Thread hai shi
hai shi added the comment: > I guess I'll need to clarify the documentation here. > Call `PyType_GetModule` on the *defining class*, not on type(self). +1, I didn't notice this detail until I got the error. > The associated module is not inherited; each class in the MRO can be > > defined

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

2020-05-13 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +19378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20072 ___ Python tracker

[issue40616] Add `asyncio.BufferQueue`

2020-05-13 Thread Serge Matveenko
New submission from Serge Matveenko : It looks handy to be able to leverage `collections.deque` ability to be sized it `asyncio.Queue`. This could provide the ability to implement backpressure in the queue or just use it as a buffer in messaging systems. The implementation provided in the

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2020-05-13 Thread Ebraheem Akhter
Ebraheem Akhter added the comment: try this: https://www.zmdrivers.com/ -- nosy: +jugnugee2 ___ Python tracker ___ ___

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-13 Thread Filipe Laíns
Filipe Laíns added the comment: > Just like Travis, Github actions also automatically rebases pull requests > onto the latest master. As you can see from a recent workflow run, it uses > the special ref: "refs/remote/pull/20047/merge" >

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2020-05-13 Thread Christian KNITTL-FRANK
Christian KNITTL-FRANK added the comment: I just stumbled over this too. Very eager to know if there are any news on the state of out-of-box support for the "mUTF-7" codec. -- nosy: +Christian KNITTL-FRANK ___ Python tracker

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

2020-05-13 Thread Dong-hee Na
Dong-hee Na added the comment: The issue is now fixed. The PR was tested by me and Victor. Thanks for the suggestion and review Victor! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2020-05-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset fa0a66e62d087765dbc5c1b89d6149a23ecfb0a6 by Dong-hee Na in branch 'master': bpo-40613: Remove compiler warning from _xxsubinterpretersmodule (GH-20069) https://github.com/python/cpython/commit/fa0a66e62d087765dbc5c1b89d6149a23ecfb0a6 --

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: >> Perhaps you missed it because you're not in the CODEOWNERS so don't >> automatically get notified by GitHub? > That's quite possible. I can't fix that as Github considers everything to do with my computer and browser too old. I don't think you need to use

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread Eric V. Smith
Eric V. Smith added the comment: I wish the abbreviation behavior was opt-in instead of opt-out, but such is life. Closing as not a bug. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior

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

2020-05-13 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20069 ___ Python tracker ___

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: One thing that's interesting is that you don't get the "ambiguous option" error if what's provided is an exact match (even if a prefix of both). For example, if you instead parsed "--clea", it would give the error: > error: ambiguous option: --clea could

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread gaborbernat
gaborbernat added the comment: I did not, nm then. Thanks for the link. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Do you know about this section of the docs? https://docs.python.org/3/library/argparse.html#argument-abbreviations-prefix-matching -- nosy: +chris.jerdonek ___ Python tracker

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

2020-05-13 Thread STINNER Victor
STINNER Victor added the comment: The two functions are only used in assertions. They should be surrounded by "#ifndef NDEBUG (...) #endif". -- ___ Python tracker ___

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread gaborbernat
Change by gaborbernat : -- title: argparse -> unstable behaviour for options in argparse ___ Python tracker ___ ___

[issue40615] argparse

2020-05-13 Thread gaborbernat
New submission from gaborbernat : Consider the following code: from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument("--clear-magic", action="store_true") print(parser.parse_args(["--clear"])) parser.add_argument("--clear", action="store_true")

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Perhaps you missed it because you're not in the CODEOWNERS so don't > automatically get notified by GitHub? That's quite possible. I can't fix that as Github considers everything to do with my computer and browser too old. Until I can get a new

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Tal Einat
Tal Einat added the comment: Steven, the conversation happened in the GitHub PR comments. The PR went through multiple iterations of code review, by both Kyle Stanley and myself, and I even waited an extra couple of weeks to see if anyone had any more comments before merging it... Perhaps

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: *blink* How did I miss this entire thing? Where was the code review? Thanks Tal for shepherding this through, and thanks Tzanetos for caring about the unit tests. -- ___ Python tracker

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Tal Einat
Tal Einat added the comment: Tzanetos, thanks for the report, PR, patience iterating through several rounds of code review comments, and overall great work! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue40331] Increase test coverage for the statistics module

2020-05-13 Thread Tal Einat
Tal Einat added the comment: New changeset b809717c1ead26b4e3693b8a5505dd8f8f666f08 by Tzanetos Balitsaris in branch 'master': bpo-40331: Increase test coverage for the statistics module (GH-19608) https://github.com/python/cpython/commit/b809717c1ead26b4e3693b8a5505dd8f8f666f08 --

[issue39959] Bug on multiprocessing.shared_memory

2020-05-13 Thread Floris
Floris added the comment: I confirm the same issue as Diogo. The provided workaround of unregistering the sharedmemory segment in the 'consuming' process, as suggested by Jeff, solves the issue where exiting the consuming process causes the tracker to incorrectly free the shared memory.

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-13 Thread Ammar Askar
Ammar Askar added the comment: Just like Travis, Github actions also automatically rebases pull requests onto the latest master. As you can see from a recent workflow run, it uses the special ref: "refs/remote/pull/20047/merge"

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-13 Thread Petr Viktorin
Petr Viktorin added the comment: I guess I'll need to clarify the documentation here. Call `PyType_GetModule` on the *defining class*, not on type(self). See the PEP for details. The associated module is not inherited; each class in the MRO can be defined in a different module. --

[issue40543] Tamil locale is using outdated encoding

2020-05-13 Thread Ammar Askar
Ammar Askar added the comment: Hi Muthu, thanks for reporting this! Looks like this is related to issue20087 whereby the X11 locale data for TA_IN is using TSCII but the glibc supported file has the UTF-8 alias. Pending a resolution to that bug, I think your best course of action would be

[issue40578] Deprecate numeric item access for platform.uname()

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I am closing this issue, since deprecations should really only be used when no other means are possible. The namedtuples returned by platform.uname() do support index access and so any implementation change altering this is surprising and backwards

[issue35967] Better platform.processor support

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Reopening the ticket, since the implementation makes backwards incompatible changes to platform.uname(): see https://bugs.python.org/issue40570 for a discussion on a better approach to lazy evaluation of getting the processor information. Before we

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Jason, I think I have to review the whole set of changes again to understand what your motivation is/was. For https://bugs.python.org/issue35967 I had already stated that your use case is not special enough to make the platform.py logic more

[issue40614] ast.parse doesn't respect feature_version for debug f-strings

2020-05-13 Thread Shantanu
New submission from Shantanu : ``` ~master λ python3.8 Python 3.8.2 (default, Apr 21 2020, 00:39:48) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> ast.parse('''f"{x=}"''') # should work

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

2020-05-13 Thread Dong-hee Na
Change by Dong-hee Na : -- title: gcc 10 emits error for unused function: _xxsubinterpretersmodule -> gcc 10 emits warning for unused function: _xxsubinterpretersmodule ___ Python tracker

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

2020-05-13 Thread Dong-hee Na
New submission from Dong-hee Na : /oss/cpython/Modules/_xxsubinterpretersmodule.c:1089:1: warning: ‘_sharedexception_is_clear’ defined but not used [-Wunused-function] 1089 | _sharedexception_is_clear(_sharedexception *she) | ^