[issue27198] Adding an assertClose() method to unittest.TestCase

2022-03-19 Thread Vedran Čačić
Vedran Čačić added the comment: An important point nobody made, as far as I can see: * the main usability improvement justifying math.isclose is that you don't know the order of magnitude of your correct value--it could be anything (even infinite), and the manner of comparison depends on it.

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-19 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +30091 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32003 ___ Python tracker ___

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-19 Thread Ma Lin
Ma Lin added the comment: PR 32002 is for 3.10/3.9 branches. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-19 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +30090 pull_request: https://github.com/python/cpython/pull/32002 ___ Python tracker ___ ___

[issue47064] thread QOS attribute on macOS

2022-03-19 Thread Dong-hee Na
Dong-hee Na added the comment: > but I would like to consider using a more seamless way For example, using a priority policy that actually uses QOS attribute :) -- ___ Python tracker

[issue47064] thread QOS attribute on macOS

2022-03-19 Thread Dong-hee Na
Dong-hee Na added the comment: I am +1 on with supporting a way to select QOS attribute but I would like to consider using a more seamless way :) -- ___ Python tracker ___

[issue47064] thread QOS attribute on macOS

2022-03-19 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47067] Add vectorcall for generica alias object

2022-03-19 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +Dennis Sweeney ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47067] Add vectorcall for generica alias object

2022-03-19 Thread Dong-hee Na
Dong-hee Na added the comment: We decided not to add it see bpo-40369 -- nosy: +corona10 ___ Python tracker ___ ___

[issue40074] pickle module dump and load: add support for string file names

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40074] pickle module dump and load: add support for string file names

2022-03-19 Thread Grégory Starck
Grégory Starck added the comment: FWIW -1 as well, for same reasons. -- nosy: +gstarck ___ Python tracker ___ ___ Python-bugs-list

[issue39640] fall back os.fdatasync() to fsync() on POSIX systems without fdatasync() support

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: The os module provides a pretty low level simple shim over platform APIs. It is better for logic like this to live in a higher level application library rather than make big assumptions on the part of the user. ``` try: os.fdatasync(fd) except

[issue27198] Adding an assertClose() method to unittest.TestCase

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: I agree with the decision, assertAlmostEqual is where the feature belongs. >From a practical point of view I suspect a lot of people who want this in the >wider world today use just `assert math.isclose(...)` despite the less useful >error message.

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37952] Add support for export_keying_material to SSL library

2022-03-19 Thread Christer Weinigel
Christer Weinigel added the comment: Sorry about the venting, but it is kind of frustrating to spend months working on something with no feedback just to be told that it all was for nothing. But that's how it is. I'll just keep updating my path every now and then since I need it anyway and

[issue47070] Improve performance of array_inplace_repeat

2022-03-19 Thread Dennis Sweeney
Dennis Sweeney added the comment: I'd bet we could add a couple of utility functions that could be used in multiple places, to keep the "trick" all in one place. Something like void _PyBytes_RepeatInPlace(char **buffer, size_t start_len, size_t end_len) { // Repeatedly double. size_t

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: If you want to backport the documentation updates, feel free to make PRs for that. -- assignee: docs@python -> gregory.p.smith resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - https://bugs.python.org/issue38256 covers the 32-bit bug. -- ___ Python tracker ___ ___

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +30089 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32000 ___ Python tracker

[issue26019] collections.abc documentation incomplete

2022-03-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed in commit 62fa613f6a6e872723505ee9d56242c31a654a9d -- nosy: +rhettinger resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue40074] pickle module dump and load: add support for string file names

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: -1. This is basically a request to add API to the stdlib to turn a two-liner into a one-liner. -- nosy: +iritkatriel ___ Python tracker ___

[issue37952] Add support for export_keying_material to SSL library

2022-03-19 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37952] Add support for export_keying_material to SSL library

2022-03-19 Thread Christian Heimes
Christian Heimes added the comment: Neither venting frustration at my expense nor emotional blackmail is going to increase the likeliness, that I will spend my limited personal time to review a patch for a new feature. Feel free to find another core dev who is willing to land and maintain

[issue42884] array.index() missing start and end

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add start and stop parameters to the array.index() ___ Python tracker

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: it depends on the build. USE_ZLIB_CRC32 causes it due to zlib's 32-bitness as noted my marko. $ ./python Python 3.11.0a6+ (heads/main-dirty:b3f2d4c8ba, Mar 19 2022, 15:32:04) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more

[issue38256] binascii.crc32 is not 64-bit clean

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: ``` $ python3.8 Python 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import binascii, zlib >>> bigdata=memoryview(bytearray((1<<32) + 100)) >>> >>>

[issue27198] Adding an assertClose() method to unittest.TestCase

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: To summarize the discussion: There were objections to adding assertClose, but more agreement for adding an option to assertAlomstEqual that does the equivalent. Chris was to come back with an implementation (that was in 2016). Are we still pursuing this or

[issue47070] Improve performance of array_inplace_repeat

2022-03-19 Thread Pieter Eendebak
Change by Pieter Eendebak : -- keywords: +patch pull_requests: +30088 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31999 ___ Python tracker ___

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Remove invalid versionchanged in doc -> Fix confusing versionchanged note in crc32 and adler32 ___ Python tracker ___

[issue5888] mmap enhancement - resize with sequence notation

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: I am closing this because in the 13 years since it was opened there was only one (negative) response and I don't think this will be picked up now. If you still want to pursue this idea, I would suggest raising it on python-ideas to get more feedback, and then

[issue47040] Remove invalid versionchanged in doc

2022-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b3f2d4c8bab52573605c96c809a1e2162eee9d7e by Ma Lin in branch 'main': bpo-47040: improve document of checksum functions (gh-31955) https://github.com/python/cpython/commit/b3f2d4c8bab52573605c96c809a1e2162eee9d7e --

[issue47061] Deprecate modules listed in PEP 594

2022-03-19 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: Perhaps we could raise an exception with a clearer error message when fieldnames not a sequence? -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.7 ___ Python tracker

[issue47070] Improve performance of array_inplace_repeat

2022-03-19 Thread Pieter Eendebak
New submission from Pieter Eendebak : The array_inplace_repeat is inefficient for small arrays and a high number of repeats. This can be improved by using the same approach as in https://bugs.python.org/issue47005 -- components: Interpreter Core messages: 415572 nosy: pieter.eendebak

[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-19 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +30087 pull_request: https://github.com/python/cpython/pull/31998 ___ Python tracker ___

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-19 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for all of your work, @ariebovenberg! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-19 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 82e9b0bb0ac44d4942b9e01b2cdd2ca85c17e563 by Arie Bovenberg in branch 'main': bpo-46382 dataclass(slots=True) now takes inherited slots into account (GH-31980) https://github.com/python/cpython/commit/82e9b0bb0ac44d4942b9e01b2cdd2ca85c17e563

[issue37952] Add support for export_keying_material to SSL library

2022-03-19 Thread Christer Weinigel
Christer Weinigel added the comment: Hi, unfortunately the maintainer of the openssl library in Python doesn't want to take my patch. He says that he doesn't want the burden of supporting more functions in the API. I'm a bit frustrated about the whole situation, I've redone my patch over and

[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-19 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +30086 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/31997 ___ Python tracker ___

[issue39640] fall back os.fdatasync() to fsync() on POSIX systems without fdatasync() support

2022-03-19 Thread Cebtenzzre
Change by Cebtenzzre : -- nosy: +cebtenzzre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47069] socket._GLOBAL_DEFAULT_TIMEOUT being an object() makes for ugly docstrings, can be better

2022-03-19 Thread FeRD (Frank Dana)
New submission from FeRD (Frank Dana) : socket._GLOBAL_DEFAULT_TIMEOUT's status as a bare object() instance has been brought up before (bpo-12441). That was reported as a bug, but appeared to stem from developer confusion, so it was correctly closed as "not a bug". At the time @orsenthil

[issue29906] Add callback parameter to concurrent.futures.Executor.map

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: Since nobody followed up on this for 5 years, I would suggest that (if you are still interested in this) you raise this on python-ideas and ideally also implement and submit a patch. If this is abandoned I will close the issue in a couple of weeks.

[issue23647] imaplib.py MAXLINE value is too low for gmail

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42528] Improve the docs of most Py*_Check{,Exact} API calls

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue19991] configparser instances cannot be pretty printed

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: It's not just that it can't be pretty printed - it doesn't even have __str__ or __repr__. I think the only thing we have now it write, which can do this: >>> config = configparser.ConfigParser() >>> config['DEFAULT'] = {'ServerAliveInterval':

[issue18217] Deprecate and remove gettext.install

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: There were several votes in the discussion for rejecting this deprecation, so I am closing the issue. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue35577] side_effect mocked method lose reference to instance

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26019] collections.abc documentation incomplete

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a GitHub PR and reviewed. -- components: +Library (Lib) keywords: +easy nosy: +iritkatriel versions: +Python 3.11 -Python 3.6 ___ Python tracker

[issue43702] [Windows] correctly sort and remove duplicates in _winapi getenvironment()

2022-03-19 Thread Eryk Sun
Eryk Sun added the comment: > which name should be stored if they are duplicated with case insensitive? Ideally os.environ would preserve the original case of the process environment, and os.environ.copy() would return a copy that's also case insensitive. That would prevent most problems

[issue47068] Improve __repr__ of TypeVar

2022-03-19 Thread Kaleb Barrett
New submission from Kaleb Barrett : Currently the __repr__ for TypeVar includes the variance information and the type name (for example ~T, +T_co, -T_contra), but it does not contain bound or constraint information. I'm not sure what value including variance but not bound information in the

[issue11160] ZipFile.comment expects bytes

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: The documentation has been updated by now [1]: ZipFile.comment The comment associated with the ZIP file as a bytes object. If assigning a comment to a ZipFile instance created with mode 'w', 'x' or 'a', it should be no longer than 65535 bytes. Comments longer

[issue43702] [Windows] correctly sort and remove duplicates in _winapi getenvironment()

2022-03-19 Thread AN Long
AN Long added the comment: I have a question, how to determine which name should be stored if they are duplicated with case insensitive? -- nosy: +asaka ___ Python tracker

[issue47065] test_curses fails if terminal defaults to bright white text (15)

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am surprised. I use Konsole too, and the TERM value and the infocmp output are the same for me. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45214] implement LOAD_NONE opcode

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> later stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Compiler warnings in _zoneinfo.c on Windows build in 64-bit ___ Python tracker

[issue44832] Compiler detection is not strict enough

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> ICC compiler check is too permissive ___ Python tracker ___

[issue28584] ICC compiler check is too permissive

2022-03-19 Thread Irit Katriel
Irit Katriel added the comment: Closed issue44832 as a duplicate of this. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue47006] PEP 646: Decide on substitution behavior

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am for consistent behavior. If return GenericAlias(GenericAlias(tuple, Unpack[Ts]), (int, str)) for tuple[*Ts][int, str], we should also return GenericAlias(GenericAlias(list, T), int) for list[T][int], etc. And it will cause multiple problems: * A

[issue47067] Add vectorcall for generica alias object

2022-03-19 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +30085 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31996 ___ Python tracker

[issue47067] Add vectorcall for generica alias object

2022-03-19 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: Although `ga_call` determines whether `origin` has a vectorcall, it needs to be unpacked the parameters that are already packed. /-> origin.vectorcall(unpacked) MakeTpCall(packed) -> ga_call ->

[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 383a3bec74f0bf0c1b1bef9e0048db389c618452 by Serhiy Storchaka in branch 'main': bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962) https://github.com/python/cpython/commit/383a3bec74f0bf0c1b1bef9e0048db389c618452 --

[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___

[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e207d721fcea01123f0e3edb83b6decdcb5e5e63 by Miss Islington (bot) in branch '3.9': [3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976) (GH-31981)

[issue46073] ast.unparse produces: 'FunctionDef' object has no attribute 'lineno' for valid module

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> AttributeError in ast.unparse ___ Python tracker ___

[issue45979] Fix Tkinter tests with old Tk

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37952] Add support for export_keying_material to SSL library

2022-03-19 Thread Hans-Christoph Steiner
Hans-Christoph Steiner added the comment: We're working on the HTTP Transport Auth draft (https://www.ietf.org/archive/id/draft-schinazi-httpbis-transport-auth-05.html) in the IETF that also needs this method. I would really love to see this land, any advice? If it is just a matter of

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 92a6abf72e7a8274f96edbb5297119d4ff055be7 by Serhiy Storchaka in branch 'main': bpo-47066: Convert a warning about flags not at the start of the regular expression into error (GH-31994)

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread miss-islington
miss-islington added the comment: New changeset cbcd2e36d6cbb1d8b6a2b30a2cf1484b7857e7d6 by Miss Islington (bot) in branch '3.9': bpo-39394: Improve warning message in the re module (GH-31988) https://github.com/python/cpython/commit/cbcd2e36d6cbb1d8b6a2b30a2cf1484b7857e7d6 --

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread miss-islington
miss-islington added the comment: New changeset 906f1a4a95e9ca82171a40a28b16533a14fa339c by Miss Islington (bot) in branch '3.10': bpo-39394: Improve warning message in the re module (GH-31988) https://github.com/python/cpython/commit/906f1a4a95e9ca82171a40a28b16533a14fa339c --

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-19 Thread Ma Lin
Ma Lin added the comment: `_Stream.write` method in tarfile.py also has this code: https://github.com/python/cpython/blob/v3.11.0a6/Lib/tarfile.py#L434 But this bug will not be triggered. When calling this method, always pass bytes data. `_ConnectionBase.send_bytes` method in

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread miss-islington
miss-islington added the comment: New changeset fcd57996899569ec6b8028bc5b75f973f7074e21 by Miss Islington (bot) in branch '3.9': bpo-44544: add textwrap placeholder arg (GH-27671) https://github.com/python/cpython/commit/fcd57996899569ec6b8028bc5b75f973f7074e21 --

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread miss-islington
miss-islington added the comment: New changeset c1f327f30db09388fc777196e233b7a6182c6efa by Miss Islington (bot) in branch '3.10': bpo-44544: add textwrap placeholder arg (GH-27671) https://github.com/python/cpython/commit/c1f327f30db09388fc777196e233b7a6182c6efa --

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30084 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31994 ___ Python tracker

[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cb7874f49d3d55df73a3c529773af14e2e344fb7 by andrei kulakov in branch 'main': bpo-44544: add textwrap placeholder arg (GH-27671) https://github.com/python/cpython/commit/cb7874f49d3d55df73a3c529773af14e2e344fb7 -- nosy: +asvetlov

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +30083 pull_request: https://github.com/python/cpython/pull/31993 ___ Python tracker ___

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +30082 pull_request: https://github.com/python/cpython/pull/31992 ___ Python tracker ___

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +30081 pull_request: https://github.com/python/cpython/pull/31990 ___ Python tracker ___

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +30080 pull_request: https://github.com/python/cpython/pull/31989 ___ Python tracker

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4142961b9f5ad3bf93976a6a7162f8049e354018 by Serhiy Storchaka in branch 'main': bpo-39394: Improve warning message in the re module (GH-31988) https://github.com/python/cpython/commit/4142961b9f5ad3bf93976a6a7162f8049e354018 --

[issue47066] Convert a warning about flags not at the start of the regular expression into error

2022-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : This warning was introduced in 3.6. The reason is that in most other regular expression implementations global inline flags in the middle of the expression have different semantic: they affect only the part of the expression after the flag. But in

[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0a8b8e0d262eae83ffbc6b414a1f5747cdbd1d88 by Andrew Svetlov in branch 'main': bpo-47057: Use FASTCALL convention for FutureIter.throw() (GH-31973) https://github.com/python/cpython/commit/0a8b8e0d262eae83ffbc6b414a1f5747cdbd1d88 --

[issue44075] Add a PEP578 audit hook for Asyncio loop stalls

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: I am still not convinced that audit events should be used. Maybe support of explicit callbacks pair (on_start() + on_finish()) with `None` for fast-and-cheap "do nothing flag" is a better alternative for catching stale coroutines? --

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning was introduced in 3.6. It is a time to convert it into an error. RE error messages contain position. But I understand that very few users will use 3.11 in nearest future, so I am going to add a position to warning message and backport this

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30079 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31988 ___ Python tracker

[issue46410] TypeError when parsing regexp with unicode named character sequence escape

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> import unicodedata >>> unicodedata.lookup('KEYCAP NUMBER SIGN') '#️' >>> print(ascii(unicodedata.lookup('KEYCAP NUMBER SIGN'))) '#\ufe0f\u20e3' Support of Unicode Named Character Sequences in the unicodeescape codec and in the RE parser would be a new

[issue44800] Code readability: rename InterpreterFrame to `_Py_framedata`

2022-03-19 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +30078 pull_request: https://github.com/python/cpython/pull/31987 ___ Python tracker ___

[issue47065] test_curses fails if terminal defaults to bright white text (15)

2022-03-19 Thread Nick Coghlan
New submission from Nick Coghlan : test_curses fails for me by default (running on Fedora 35 in KDE's Konsole): ``` [ncoghlan@thechalk cpython]$ echo $TERM xterm-256color [ncoghlan@thechalk cpython]$ ./python -m test -u curses test_curses 0:00:00 load avg: 0.88 Run tests sequentially 0:00:00

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mrabarnett priority: low -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47064] thread QOS attribute on macOS

2022-03-19 Thread Ronald Oussoren
New submission from Ronald Oussoren : Arm based Mac systems have several types of cores: performance cores and efficiency cores. The system has no way to directly specify which core a particular proces or thread uses, but programs can use an API for setting the QOS class of a thread that

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-03-19 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30077 pull_request: https://github.com/python/cpython/pull/31986 ___ Python tracker ___

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We cannot guarantee that NAN never equal to anything, because we can create an object equal to it. For example mock.ANY. -- nosy: +serhiy.storchaka ___ Python tracker

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31552] IDLE: Convert browsers to use ttk.Treeview

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- title: IDLE: Convert browswers to use ttk.Treeview -> IDLE: Convert browsers to use ttk.Treeview ___ Python tracker ___

[issue38307] Add .end_lineno attribute to pyclbr _Objects

2022-03-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-19 Thread Vedran Čačić
Vedran Čačić added the comment: I'm not satisfied with "and" formulation. For all practical purposes, math.nan is the "same" object as float('nan'), they just represent two ways of referring to it (or constructing it). To me it sounds a bit like "2 and 1+1 are the only even prime numbers." I