[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Steven's more careful analysis and with canning 'pseudo'. Current suggestion. A *future statement*, "from __future__ import *feature* ...", directs the compiler to compile the current module using syntax or semantics that will become

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-23 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: What exactly is a "pseudo-module"? I can only imagine it is something like sys, which exists internally in the interpreter but doesn't have an independent existence as a .py .dll or .so file. That's not the case with `__future__`, which is an *actual*

[issue44719] Incorrect callable object crashes Python 3.11.0a0

2021-07-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think GH-27313 will fix this -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: Here's a simpler reproducer: not_an_iterator = lambda: 0 class A: def __iter__(self): return weakref.proxy(not_an_iterator) a = A() list(a) I opened a PR. -- title: Finding string in

[issue44720] Finding string in iteratively deleted object cause segfault

2021-07-23 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch nosy: +Dennis Sweeney nosy_count: 1.0 -> 2.0 pull_requests: +25862 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27316 ___ Python tracker

[issue42357] Wrong Availability for signal.SIGCHLD

2021-07-23 Thread Zachary Ware
Zachary Ware added the comment: You are correct, thanks for the ping Andrei. And thank you for the patch, Maiyun! -- nosy: +zach.ware resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9

[issue42357] Wrong Availability for signal.SIGCHLD

2021-07-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: This can be closed (fixed). -- nosy: +andrei.avk ___ Python tracker ___ ___ Python-bugs-list

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread creative-resort
creative-resort added the comment: Thank you for your kind guidance :) -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44685] Email package issue with Outlook msg files

2021-07-23 Thread R. David Murray
R. David Murray added the comment: That file appears to be a binary file? By itself it isn't enough to reproduce the problem. Can you provide a complete script as well as the email message you are parsing that demonstrates the problem? By "looks like any other eml file", are you including

[issue44694] Message from BytesParser cannot be flattened immediately

2021-07-23 Thread R. David Murray
R. David Murray added the comment: I suspect maxheaderlen=0 works because it causes the original lines to be re-emitted without any folding or other processing. Without that, lines longer than the default max_line_length get refolded. Can you provide an example of an input message that

[issue44730] unittest.mock.patch does not work as a decorator on generator functions

2021-07-23 Thread Gareth Williams
Change by Gareth Williams : -- keywords: +patch pull_requests: +25860 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27315 ___ Python tracker ___

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread R. David Murray
R. David Murray added the comment: Having looked at the cited part of the RFC (but not tried to analyze it in detail), I think you are correct. I've also glanced at your PR, and I think your approach is correct in broad outline, but I haven't looked at the details. For full message/global

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread Francis Johnson
Francis Johnson added the comment: The first paragraph of section 3.5 states two positions that the RFC holds on Content-Transfer-Encodings: (1) “allows newly defined MIME types to permit content-transfer-encoding;” and (2) “allows content-transfer-encoding for message/global (see Section 3.7)

[issue44429] Tkinter Flow Geometry Manager

2021-07-23 Thread Gary Davenport
Gary Davenport added the comment: Just an update on this issue. I did make 2 packages available on pypi.org: https://pypi.org/project/flowframe/ and https://pypi.org/project/tkinterflow/ Thank you very much for your help. -- resolution: -> works for me stage: -> resolved

[issue44674] dataclasses should allow frozendict default value

2021-07-23 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44674] dataclasses should allow frozendict default value

2021-07-23 Thread Eric V. Smith
Eric V. Smith added the comment: When I originally read this, I read it as frozenset. I agree that there's no good way of telling if an arbitrary class is immutable, so I'm not sure we can do anything here. So I think we should close this as a rejected idea. --

[issue44730] unittest.mock.patch does not work as a decorator on generator functions

2021-07-23 Thread Gareth Williams
New submission from Gareth Williams : unitest.mock.patch does not work well when applied as a decorator to a function which is a generator. It results in the function being changed from a generator function (co_flags 99) to a non-generator (co_flag 31) and the patch is not applied. [I have

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread blackrose 1337
blackrose 1337 added the comment: #44713: subprocess.rst typo ``"shell=True"`` => ``shell=True`` -- nosy: +virusdetected1337 ___ Python tracker ___

[issue44729] sys.setprofile bug

2021-07-23 Thread Hasan
Change by Hasan : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44729] sys.setprofile bug

2021-07-23 Thread Hasan
New submission from Hasan : 1. If we try to import modules except os or sys, we will get such events. 2. If we access frame.f_locals.items() and frame.f_code.replace() inside tracefunc, function execution shows events and stops, but if access other frame.f_locals.* it begins to call and

[issue44611] CPython uses deprecated randomness API

2021-07-23 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25859 pull_request: https://github.com/python/cpython/pull/27314 ___ Python tracker ___

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread Francis Johnson
Francis Johnson added the comment: Try parsing an example such as this through the Python email library: Content-Type: message/global Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; = charset=3D”us-ascii” Hello, World! You will find that the valid quoted-printable

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: dont obviously *match* -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suggest you close this issue and if you have an improved code, propose it on python-ideas list for discussion. -- nosy: +terry.reedy ___ Python tracker

[issue44674] dataclasses should allow frozendict default value

2021-07-23 Thread Arjun
Arjun added the comment: Which frozendict does your message concern? I found this in some test: https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/test/test_builtin.py#L741 or are you suggesting any user defined immutable object? I'm not sure indicating that

[issue44709] [3.7] Popen Control Characters in stdout affect shell session

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interpreting the last post ... -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thnk the glossary should say both. Approximately: "When the first statement of a program starts 'from __future__ import feature', a pseudo-module ... . When used later in a program, __future__ is a real module." Link each statement to an appropriate

[issue44671] Create a built-in yaml module

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current status of this idea is that it has been rejected. Please read the previous discussion(s) and consider the arguments against. If you then still want this idea reconsidered, please post to the python-ideas list explaining why you think the

[issue44660] email.feedparser: support RFC 6532 section 3.5

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: RFC 6532 Internationalized Email Headers https://datatracker.ietf.org/doc/html/rfc6532 3.5. Changes to MIME Message Type Encoding Restrictions https://datatracker.ietf.org/doc/html/rfc6532#section-3.5 don't obviously "message/global Emails with non-identity

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-23 Thread Éric Araujo
Éric Araujo added the comment: > it doesn't do a normal import of the `__future__.py` module, it is actually a > compiler directive. It’s both! The compiler has special handling for this line (pseudo-module), and the interpreter does a regular import that gets the regular python module

[issue42414] unable to document fields of dataclass

2021-07-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: I was thinking about adding this to named tuple as well, but it's less useful than with dataclasses because named tuples are simpler and smaller. However if this feature is added to dataclasses and is widely used, it would make a lot of sense to expand it

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-23 Thread Brandt Bucher
Brandt Bucher added the comment: Two other things we realized while working on this: - The first occurrence of line 15 in the example output should be marked as incorrectly traced. - We should emit a NOP to show coverage of "case _" (that fix will be part of the same PR). --

[issue42414] unable to document fields of dataclass

2021-07-23 Thread Eric V. Smith
Eric V. Smith added the comment: The more I think about this, the less I like it as a dataclasses-specific solution (if it’s accepted at all, that is). Why dataclasses and not attrs or NamedTuple? I suggest bringing it up on python-ideas for wider exposure. --

[issue43950] Include column offsets for bytecode instructions

2021-07-23 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25858 pull_request: https://github.com/python/cpython/pull/27313 ___ Python tracker ___

[issue43950] Include column offsets for bytecode instructions

2021-07-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: bpo-44719 managed to make the `assert(source_line);` fail -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue44719] Incorrect callable object crashes Python 3.11.0a0

2021-07-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: ### Simplified crasher from weakref import ref def f(): ref(lambda: 0, []) f() f() Running this in debug mode, I got a failed assertion at traceback.c, line 746, `assert(source_line);`. If that assertion is commented

[issue35728] Tkinter font nametofont requires default root

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The code I gave above now exits with a clearer message. RuntimeError: No master specified and tkinter is configured to not support default root But now, in 3.10, the master can be specified, so that fnt = font.nametofont('TkFixedFont', root) works. Thank

[issue41256] activate script created by venv is not smart enough

2021-07-23 Thread Jack DeVries
Jack DeVries added the comment: *please disregard the typo in the shebang line!* -- ___ Python tracker ___ ___ Python-bugs-list

[issue41256] activate script created by venv is not smart enough

2021-07-23 Thread Jack DeVries
Jack DeVries added the comment: What do you think about this as an entrypoint? ```sh #!/usr/bin/env # this becomes venv/bin/activate # the old venv/bin/activate is now venv/bin/activate.sh # Try to execute a `return` statement, # but do it in a sub-shell and catch the results. # If this

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-23 Thread Sebastian Rittau
Change by Sebastian Rittau : -- pull_requests: +25857 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27312 ___ Python tracker ___

[issue44728] Testsuite fails on x86_64

2021-07-23 Thread Erich Eckner
New submission from Erich Eckner : The following tests fails on x86 32 bit: test_cmath test_math test_posix test_turtle - looks, like the expected precision is too high. Full log is attached. -- components: Tests files: build-log.php?a=pentium4=python messages: 398084 nosy:

[issue43838] There is a way to access an underlying mapping in MappingProxyType

2021-07-23 Thread Dominic Davis-Foster
Change by Dominic Davis-Foster : -- nosy: +domdfcoding ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44721] Problem in tkinter button widget

2021-07-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44721] Problem in tkinter button widget

2021-07-23 Thread Seyed Amirhossein Misaghi
Change by Seyed Amirhossein Misaghi : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44721] Problem in tkinter button widget

2021-07-23 Thread Seyed Amirhossein Misaghi
Seyed Amirhossein Misaghi added the comment: Thanks for your response -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently deprecation warnings are emitted in test_typing: $ ./python -m test test_typing 0:00:00 load avg: 3.38 Run tests sequentially 0:00:00 load avg: 3.38 [1/1] test_typing /home/serhiy/py/cpython/Lib/test/test_typing.py:4657: DeprecationWarning:

[issue44721] Problem in tkinter button widget

2021-07-23 Thread E. Paine
E. Paine added the comment: Sadly, there is no `activerelief` option. The Tk man pages note the following: > A button's relief is changed to sunken whenever mouse button 1 is pressed > over the button, and the relief is restored to its original value when button > 1 is later released.

[issue44353] PEP 604 NewType

2021-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 27311 copies tests from PR 9951, adds support of nested NewTypes (with __qualname__ containing multiple components) an makes them pickleable by name as functions and classes. -- ___ Python tracker

[issue44353] PEP 604 NewType

2021-07-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25856 pull_request: https://github.com/python/cpython/pull/27311 ___ Python tracker ___

[issue35728] Tkinter font nametofont requires default root

2021-07-23 Thread Leonardo Freua
Leonardo Freua added the comment: Has the PR already solved the problem? If yes, could this issue not be closed? -- nosy: +Leonardofreua ___ Python tracker ___

[issue42378] logging reopens file with same mode, possibly truncating

2021-07-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've put up a PR here: https://github.com/python/cpython/pull/27310/files If this looks good, I will update the docs and add news entry. -- ___ Python tracker

[issue42378] logging reopens file with same mode, possibly truncating

2021-07-23 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 1.0 -> 2.0 pull_requests: +25855 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27310 ___ Python tracker

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: I usually wait until buildbots are green before closing the bpo, but I don't think there's anything else. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22240] argparse support for "python -m module" in help

2021-07-23 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: I expanded the patch from tebeka to also work with invocations like `python3 -m serial.tools.miniterm` where `miniterm.py` is a file and not a directory with a `__main__.py`. This was able to handle everything I threw at it. However due to the import of

[issue44353] PEP 604 NewType

2021-07-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41756] Do not always use exceptions to return result from coroutine

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: that is, bpo-44727 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41756] Do not always use exceptions to return result from coroutine

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: Hello! This change added an enum to the stable ABI: typedef enum { PYGEN_RETURN = 0, PYGEN_ERROR = -1, PYGEN_NEXT = 1, } PySendResult; Adding new values to enums might break the stable ABI in some (admittedly rare) cases; so

[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2021-07-23 Thread Zachary Ware
Zachary Ware added the comment: The bundled version of libffi is no longer included in any version in bugfix support; closing this as out of date. As suggested in an earlier message, the libffi from your system should be used instead if you're building a version of Python that still

[issue43838] There is a way to access an underlying mapping in MappingProxyType

2021-07-23 Thread Brandt Bucher
Brandt Bucher added the comment: > Delegating operations to the underlying mapping is still OK, all we're > wanting to bypass is the operand coercion dances in abstract.c and object.c > that may expose the underlying mapping to the *other* operand. But this won't work if *both* operands are

[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2021-07-23 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: -25844 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2021-07-23 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: As far as I can see, the current enums in the stable ABI are: PySendResult from object.h, return value of PyObject_Send: typedef enum { PYGEN_RETURN = 0, PYGEN_ERROR = -1, PYGEN_NEXT = 1, } PySendResult; (This is unlikely to

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2021-07-23 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +25854 pull_request: https://github.com/python/cpython/pull/27309 ___ Python tracker ___

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: Devguide PR: https://github.com/python/devguide/pull/730 -- ___ Python tracker ___ ___

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2021-07-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is there anything left in this issue? -- nosy: +pablogsal ___ Python tracker ___ ___

[issue42854] OpenSSL 1.1.1: use SSL_write_ex() and SSL_read_ex()

2021-07-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42854] OpenSSL 1.1.1: use SSL_write_ex() and SSL_read_ex()

2021-07-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5ec275758dbc307e9838e7038bfc3b5390950ea7 by Miss Islington (bot) in branch '3.10': bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and _ssl._SSLSocket.write (GH-27271) (GH-27308)

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
New submission from Petr Viktorin : Adding a new enumerator to a C enum can change the size of the type, which would break the ABI. This is not often a problem in practice, but the rules around when it is a problem and when it isn't are complicated enough that I believe enum should not be

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Dong-hee Na
Dong-hee Na added the comment: > Thanks for the suggestion. I will do some testing and, if warranted, make the > necessary changes. Thanks Ned! -- ___ Python tracker ___

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2021-07-23 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: `NewType` was converted into callable class at scope of https://bugs.python.org/issue44353 Currently `repr` of `NewType` is: ``` >>> UserId = NewType("UserId", int) __main__.UserId ``` -- nosy: +uriyyo

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggestion. I will do some testing and, if warranted, make the necessary changes. -- assignee: -> ned.deily ___ Python tracker

[issue42854] OpenSSL 1.1.1: use SSL_write_ex() and SSL_read_ex()

2021-07-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 83d1430ee5b8008631e7f2a75447e740eed065c1 by Pablo Galindo Salgado in branch 'main': bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and _ssl._SSLSocket.write (GH-27271)

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Dong-hee Na
Dong-hee Na added the comment: However, to use thin-lto, build-installer.py should use clang compiler. We need to check this issue. -- ___ Python tracker ___

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 632e8a69593efb12ec58d90e624ddf249a7a1b65 by Miss Islington (bot) in branch '3.10': bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260) (GH-27306)

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Dong-hee Na
Dong-hee Na added the comment: see bpo-44340 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

2021-07-23 Thread Łukasz Langa
Łukasz Langa added the comment: I'm still unable to reproduce this locally. Objects/listobject.c:527:24 is this line in `list_concat`: dest = np->ob_item + Py_SIZE(a); (permalink: https://github.com/python/cpython/blob/8f42106b5c362495f72c6ca2fa3884538e4023db/Objects/listobject.c#L527)

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +25852 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27307 ___ Python tracker ___

[issue44726] Build macOS version with thin lto option

2021-07-23 Thread Dong-hee Na
New submission from Dong-hee Na : Since the thin-lto option is available for macOS distribution. We can consider using the thin-lto option for the next macOS Python distribution? -- components: Build, macOS messages: 398058 nosy: corona10, ned.deily, ronaldoussoren priority: normal

[issue44353] PEP 604 NewType

2021-07-23 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44353] PEP 604 NewType

2021-07-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8f42106b5c362495f72c6ca2fa3884538e4023db by Yurii Karabas in branch 'main': bpo-44353: Fix memory leak introduced by GH-27262 (GH-27305) https://github.com/python/cpython/commit/8f42106b5c362495f72c6ca2fa3884538e4023db --

[issue44725] Expose specialization stats in python

2021-07-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +25851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27192 ___ Python tracker ___

[issue44611] CPython uses deprecated randomness API

2021-07-23 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44611] CPython uses deprecated randomness API

2021-07-23 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 906fe47083bc9ab7ed2b70c99c1b0daad021f126 by Dong-hee Na in branch 'main': bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168) https://github.com/python/cpython/commit/906fe47083bc9ab7ed2b70c99c1b0daad021f126 --

[issue44725] Expose specialization stats in python

2021-07-23 Thread Irit Katriel
New submission from Irit Katriel : Make it possible to fetch the current specialization stats in python so that we can compute deltas for small code snippets as well as use them for specialization unit tests. -- components: Interpreter Core messages: 398055 nosy: iritkatriel

[issue42414] unable to document fields of dataclass

2021-07-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: I haven't modified `_finddoc` in my PR because it currently doesn't show all existing dataclass fields (only those with default set) -- therefore it would make sense to consider this addition if / when complete set of dataclass fields is added to _finddoc.

[issue44724] Resource Tracker is never reaped

2021-07-23 Thread Viktor Ivanov
New submission from Viktor Ivanov : The multiprocessing.resource_tracker instance is never reaped, leaving zombie processes. There is a waitpid() call for the ResourceTracker's pid but it is in a private method _stop() which seems to be only called from some test modules. Usually

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 097801844c99ea3916bebe1cc761257ea7083d34 by Miss Islington (bot) in branch '3.9': bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27304) https://github.com/python/cpython/commit/097801844c99ea3916bebe1cc761257ea7083d34

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset c589992e09d0db7cb47d21d5948929e599fdbb94 by Miss Islington (bot) in branch '3.10': bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27303) https://github.com/python/cpython/commit/c589992e09d0db7cb47d21d5948929e599fdbb94

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2021-07-23 Thread miss-islington
miss-islington added the comment: New changeset a4760cc32d9e5dac7be262e9736eb30502cd7be3 by Petr Viktorin in branch 'main': bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260)

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2021-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +25850 pull_request: https://github.com/python/cpython/pull/27306 ___ Python tracker ___

[issue44353] PEP 604 NewType

2021-07-23 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25849 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27305 ___ Python tracker

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +25848 pull_request: https://github.com/python/cpython/pull/27304 ___ Python tracker ___

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +25847 pull_request: https://github.com/python/cpython/pull/27303 ___ Python tracker

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-23 Thread miss-islington
miss-islington added the comment: New changeset 17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c by Anthony Sottile in branch 'main': bpo-29298: Fix crash with required subparsers without dest (GH-3680) https://github.com/python/cpython/commit/17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c --

[issue44353] PEP 604 NewType

2021-07-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR27262 introduced reference leaks and currently all refleak buildbots are red: Example: https://buildbot.python.org/all/#/builders/205/builds/102/steps/5/logs/stdio Ran 367 tests in 0.198s OK (skipped=1) . test_typing leaked [220, 220, 220]

[issue29555] Update Python Software Foundation Copyright Year

2021-07-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, closing this. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue44405] add program passed as string to dis module.

2021-07-23 Thread Nick Coghlan
Nick Coghlan added the comment: I suspect the only reason the dis CLI isn't documented is because it's been around for so long (22 years!) that nobody previously noticed it was missing: https://github.com/python/cpython/commit/1fdae12c93246fcf4abbf882ba08df789070dfcc Folks then either

[issue43838] There is a way to access an underlying mapping in MappingProxyType

2021-07-23 Thread Nick Coghlan
Nick Coghlan added the comment: Delegating operations to the underlying mapping is still OK, all we're wanting to bypass is the operand coercion dances in abstract.c and object.c that may expose the underlying mapping to the *other* operand. We don't want to implicitly copy though, as the

  1   2   >