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

2021-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For __or__ we need to copy the content of both mapping to the resulting mapping in any case. We can implement it as {**self, **other}. We should not use the copy() method because it is not a part of the Mapping interface. For __eq__, no copying is needed i

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread creative-resort
New submission from creative-resort : I'm opening this issue to propose the following enhancement and a PR on GitHub. Concerning: https://github.com/python/cpython/blob/main/Lib/string.py The idea: Format strings, that are comprised of field values with newlines (Multiline) as Multiline string

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

2021-07-23 Thread San
San added the comment: I get your point. But I thought setting 'stdout=PIPE' should not send the stdout directly to the terminal but rather through the pipe first?! Also what you're saying seems to contradict that this doesn't happen if I don't set the encoding and let it be a byte-stream. I

[issue44718] Incorrect arguments in function select() cause segfault

2021-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem is related to recursion, the code basically ends up with an unlimited number of iterations of select.select and test_select_mutated on the call stack and this doesn't trigger the stack depth checker. The following definition of class F triggers

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

2021-07-23 Thread San
San added the comment: I just realised that this is not a problem of python but rather a problem of the shell that I was using. I was testing the io in a different environment. Now I retried in the same environment that the wrapper was operating and the behaviour is the same using io. Sorry

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread creative-resort
Change by creative-resort : -- keywords: +patch pull_requests: +25845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27301 ___ Python tracker ___

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

2021-07-23 Thread santhosh
santhosh added the comment: build/temp.linux-x86_64-3.5/opt/python/Python-3.5.5/Modules/_ctypes/libffi/src/x86/ffi.o: In function `ffi_prep_closure_loc': /opt/python/Python-3.5.5/Modules/_ctypes/libffi/src/x86/ffi.c:678: undefined reference to `ffi_closure_FASTCALL' /usr/bin/ld: build/temp.l

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide a specification of what this class does? You’ve given an example, but not a description of the behavior. -- nosy: +eric.smith ___ Python tracker _

[issue39632] variadic function call broken on armhf when passing a float argument

2021-07-23 Thread Nicolas Dessart
Nicolas Dessart added the comment: I've just rebased this PR but the CI builds failed (for unrelated reasons?). That being said I think that this particular issue should mostly be resolved by bpo-41100 and PR-22855 in particular. My PR 18560 still brings the support for Ellipsis/... inside c

[issue44676] Add ability to serialise types.Union

2021-07-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fe13f0b0f696464dd6f283576668dbf57cb11399 by Yurii Karabas in branch 'main': bpo-44676: Add ability to serialize types.Union (GH-27244) https://github.com/python/cpython/commit/fe13f0b0f696464dd6f283576668dbf57cb11399 -- nosy: +lukasz.lang

[issue44676] Add ability to serialise types.Union

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

[issue44353] PEP 604 NewType

2021-07-23 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25846 pull_request: https://github.com/python/cpython/pull/27302 ___ Python tracker ___ _

[issue44723] Codec name normalization breaks custom codecs

2021-07-23 Thread Bodo Graumann
New submission from Bodo Graumann : This is a follow up on https://bugs.python.org/issue37751 concerning normalization of codec names. First of all, the changes made therein are not documented correctly. In the implementation | Normalization works as follows: all non-alphanumeric | characters e

[issue44722] RFC: string Multiline Formatter

2021-07-23 Thread creative-resort
creative-resort added the comment: Thank you. In the process of providing that description I also just realized – after also seeing the build fail – that I'm making use of a library which is not part of the core (llist) for a doubly linked list. That dependency is most probably a deal breake

[issue44710] Unexpected behavior in empty class with pass (Python 3.7.3)

2021-07-23 Thread Cheuk Ting Ho
Cheuk Ting Ho added the comment: Thank you, Serhiy for explaining that to me. I am closing it now since it is not a bug. -- stage: -> resolved status: open -> closed ___ Python tracker

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

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

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

[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] reference

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

[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
Change by miss-islington : -- pull_requests: +25848 pull_request: https://github.com/python/cpython/pull/27304 ___ 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 _

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

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

[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

[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

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

[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. A

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

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

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

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

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

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

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

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

[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
Dong-hee Na added the comment: see bpo-44340 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

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

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

[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

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

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

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

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

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

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

[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&p=python messages: 398084 nosy: deep42t

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

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

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

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

[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 out,

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

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

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

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

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

[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

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

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

[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

[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

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

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

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

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

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

[issue44729] sys.setprofile bug

2021-07-23 Thread Hasan
Change by Hasan : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

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

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

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

  1   2   >