[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-16 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-16 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- keywords: +patch pull_requests: +28831 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30628 ___ Python tracker __

[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-16 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: Note that `n` should not be over PY_SSIZE_T_MAX, else an error should occur. -- ___ Python tracker ___ ___

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Dennis Sweeney
Dennis Sweeney added the comment: bisected to here: 631f9938b1604d4f893417ec339b9e0fa9196fb1 is the first new commit commit 631f9938b1604d4f893417ec339b9e0fa9196fb1 Author: Eric Snow Date: Mon Jun 7 16:52:00 2021 -0600 bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offs

[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-16 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : Optimize calculating powers of 2 for integers. Does not include optimizing modular exponentiation because benchmarking shows current version of modular exponentiation is faster. Also optimizes any call with the structure `l_divmod(a, b, NULL, &mod)`

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

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: New changeset 7f4b69b9076bdbcea31f6ad16eb125ee99cf0175 by Christian Heimes in branch 'main': bpo-40280: Change subprocess imports for cleaner error on wasm32 (GH-30620) https://github.com/python/cpython/commit/7f4b69b9076bdbcea31f6ad16eb125ee99cf0175

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue46403] Unhelpful SyntaxError

2022-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Email bounced. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46403] Unhelpful SyntaxError

2022-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: For non-coredevs, 'not a bug' means not a bug in the CPython interpreter, as opposed to user code, which here has bugs. People asking questions (preferably in a more appropriate place) should read, for instance, https://stackoverflow.com/help/minimal-reprod

[issue46405] Warning compiling main on Windows

2022-01-16 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 6.0 -> 7.0 pull_requests: +28830 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30627 ___ Python tracker

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Hynek Schlawack
Change by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue46406] optimize int division

2022-01-16 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35467] IDLE: unrequested pasting into Shell after restart

2022-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I finally caught an example, which was not immediately after restart. I copied the two lines of output, entered 'import re\n' and the copied text was pasted, then the line with the addition compiled, leading to the error. Type "help", "copyright", "credits"

[issue46406] optimize int division

2022-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I tested my PR branch on 32-bit arm (raspbian bullseye) and the microbenchmark timing shows no change (within the noise across repeated runs). Unsurprising as division is entirely different on 32-bit arm. Raspbian uses armv6 for compatibility with the ori

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2022-01-16 Thread Inada Naoki
Inada Naoki added the comment: Mercurial still use it. https://www.mercurial-scm.org/repo/hg-stable/file/tip/mercurial/pycompat.py#l113 Mercurial has plan to move filesystem name from ANSI Code Page to UTF-8, but I don't know about its progress. https://www.mercurial-scm.org/wiki/WindowsUTF8P

[issue46401] Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'

2022-01-16 Thread Ching
Ching added the comment: Thank you for your solution: setting the env var SETUPTOOLS_USE_DISTUTILS=stdlib. 1. At my previous Python 3.10.1, I always upgrade to the latest setuptools (60.5.0), then I get an error of "No module named 'binascii'" during upgrading to Python 3.10.2 from compilin

[issue25652] collections.UserString.__rmod__() raises NameError

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

[issue46406] optimize int division

2022-01-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue46406] optimize int division

2022-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: The PR was directly inspired by Mark Dickinson's code in the email thread directly using __asm__ to get the instruction he wanted. There is usually a way to make the compiler actually do what you intend. This appears to be it. Interestingly, experimentin

[issue46406] optimize int division

2022-01-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +28829 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30626 ___ Python tracker

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31894] [doc] documentation incorrectly says that “datetime.timestamp” calls “mktime”

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation -Library (Lib), Tests nosy: +docs@python title: test_timestamp_naive failed on NetBSD -> [doc] documentation incorrectly says that “datetime.timestamp” calls “mktime” versions: +Python 3.10, Python 3.11, Py

[issue46406] optimize int division

2022-01-16 Thread Gregory P. Smith
New submission from Gregory P. Smith : Based on a python-dev thread, we've come up with faster int division code for CPython's bignums. https://mail.python.org/archives/list/python-...@python.org/thread/ZICIMX5VFCX4IOFH5NUPVHCUJCQ4Q7QM/#NEUNFZU3TQU4CPTYZNF3WCN7DOJBBTK5 filing this issue for s

[issue46405] Warning compiling main on Windows

2022-01-16 Thread Terry J. Reedy
New submission from Terry J. Reedy : Sometime between Jan 7 and Jan 16 (today) this VC compile warning appeared (debug build). "specialize.c ..\Python\specialize.c(1243): warning C4018: '<': signed/unsigned mismatch [f:\dev\3x\PCbuild\_freeze_module.vcxproj]" Same is repeated at end of compile

[issue43012] Remove pathlib accessors

2022-01-16 Thread Barney Gale
Barney Gale added the comment: Thank you Éric! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24194] Make tokenize recognize Other_ID_Start and Other_ID_Continue chars

2022-01-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: meador.inge -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue24194] Make tokenize recognize Other_ID_Start and Other_ID_Continue chars

2022-01-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: tokenize fails on some Other_ID_Start or Other_ID_Continue -> Make tokenize recognize Other_ID_Start and Other_ID_Continue chars ___ Python tracker __

[issue43012] Remove pathlib accessors

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: PR looks good, just needs a look by a pathlib expert. -- nosy: +eric.araujo, eric.smith, eryksun, pitrou ___ Python tracker ___ _

[issue24194] tokenize fails on some Other_ID_Start or Other_ID_Continue

2022-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Udated doc link, which appears to be same: https://docs.python.org/3.11/reference/lexical_analysis.html#identifiers Updated property list linked in above: https://www.unicode.org/Public/14.0.0/ucd/PropList.txt Relevant content for this issue: 1885..1886;

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Tin Tvrtković
New submission from Tin Tvrtković : We've received a report over at the attrs issue tracker about our test suite failing on Python 3.11. Here's the link: https://github.com/python-attrs/attrs/issues/907 It turns out to be an issue with the no-arg `super()` calls in slotted classes. Here's a m

[issue46381] Improve documentation of CFLAGS_NODIST, LDFLAGS_NODIST

2022-01-16 Thread Diego Ramirez
Change by Diego Ramirez : -- nosy: +DiddiLeija ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: [There are two separate events in the ticket log: I added my comment, then noticed I was the only nosy so I found all the prople recently removed by error and re-added them] -- ___ Python tracker

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: [Meta: Why did adding a comment add all those people (back?) to the nosy list?] -- ___ Python tracker ___ _

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

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: New changeset 91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c by Christian Heimes in branch 'main': bpo-40280: Add requires_fork test helper (GH-30622) https://github.com/python/cpython/commit/91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c --

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +Anthony Sottile, BTaskaya, Jeffrey.Kintscher, Julian, Terry Davis, barry, benjamin.peterson, ezio.melotti, georg.brandl, gvanrossum, ishimoto, jack1142, lukasz.langa, ncoghlan, pablogsal, r.david.murray, serhiy.storchaka, steven.daprano, thautwarm, ul

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2022-01-16 Thread Éric Araujo
Éric Araujo added the comment: PEP 8 used with statements as an example of use of backslashes, I am proposing this change: https://github.com/python/peps/pull/2244 -- nosy: +eric.araujo versions: +Python 3.10 -Python 3.8 ___ Python tracker

[issue46401] Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: Jason told me that setuptools is already aware of the issue. He reopened bug https://github.com/pypa/setuptools/issues/3007 and is now investigation the problem. -- ___ Python tracker

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that would be a useful option. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs

[issue46403] Unhelpful SyntaxError

2022-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: [And I was unable to add the numeric id as nosy. Apologies to the OP, who probably will never see this! It's a bug in the bpo software.] -- ___ Python tracker __

[issue46403] Unhelpful SyntaxError

2022-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: [Numeric id's automatically get dropped from the nosy list: trying to add it back] -- ___ Python tracker ___

[issue46403] Unhelpful SyntaxError

2022-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: This is not the appropriate place to ask for help in debugging your code. I suggest you ask on the python-list mailing list. The error is that you're missing a bunch of right parenthesis in the isWinner() function. I do think "Syntax Error" isn't the best er

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-16 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +erlendaasland, zach.ware stage: -> needs patch type: -> enhancement versions: +Python 3.11 ___ Python tracker ___ _

[issue46403] SyntaxError for no reason

2022-01-16 Thread HAYDEN NGUYEN
New submission from HAYDEN NGUYEN <1071...@lcps.org>: Here is my code: import random def drawBoard(board): print(board[7] + '|' + board[8] + '|' + board[9]) print('-+-+-') print(board[4] + '|' + board[5] + '|' + board[6]) print('-+-+-') print(board[1] + '|' + board[2] + '|' +

[issue12067] Doc: remove errors about mixed-type comparisons.

2022-01-16 Thread Humbled Drugman
Change by Humbled Drugman : -- nosy: +humbdrag nosy_count: 16.0 -> 17.0 pull_requests: +28828 pull_request: https://github.com/python/cpython/pull/30625 ___ Python tracker ___

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: With 3.6 being over, is _enablelegacywindowsfsencoding still needed or is it time to deprecate it? -- nosy: +iritkatriel ___ Python tracker __

[issue38963] multiprocessing processes seem to "bleed" user information (GID/UID/groups)

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

[issue12067] Doc: remove errors about mixed-type comparisons.

2022-01-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +28827 pull_request: https://github.com/python/cpython/pull/30624 ___ Python tracker ___ ___

[issue24194] tokenize fails on some Other_ID_Start or Other_ID_Continue

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker _

[issue36988] zipfile: string IndexError on extract

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker _

[issue42543] case sensitivity in open() arguments

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: I also think the current error message and docs are clear enough. Things are usually case sensitive, and we don't state that in docs. Specifying the list of modes in the error message is possible, but I expect that we will get complaints about variations we d

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue13886] readline-related test_builtin failure

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: See also Issue44887. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13886] readline-related test_builtin failure

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: On 3.11 I don't see a problem on windows, but on mac test_input_tty from test_builtin hangs when test_readline runs first, while test_builtin passes on its own. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3

[issue31524] mailbox._mboxMMDF.get_message throws away From envelope

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue46401] Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: Does setting the env var SETUPTOOLS_USE_DISTUTILS=stdlib resolve the issue for you? -- ___ Python tracker ___

[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue46401] Setuptools 60.0 breaks building from source on Debian 11: No module named 'binascii'

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: Please report the issue to setuptools, https://github.com/pypa/setuptools . It's a regression in setuptools 60.0. -- components: +Build nosy: +christian.heimes title: Using setuptools version 59.8.0 or below before upgrade Python 3.10.2 from source

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: GH-30582 broke doc tests in 3.11 branch: File "library/enum.rst", line ?, in default Failed example: Color(0) Exception raised: Traceback (most recent call last): File "/home/runner/work/cpython/cpython/Lib/doctest.py", line 1346, in __run

[issue31038] test_runpy causes running all Python tests when run directly

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker _

[issue37310] Solaris 11.3 w/ Studio 12.6 test_ctypes fail

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: 3.7 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Py

[issue37311] Solaris 11.3 w/ Studio 12.6 test_support fail

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: 3.7 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Py

[issue39064] ValueError in zipfile.ZipFile

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: It's unlikely that anyone will download a binary from bpo and open it. Can you help us reproduce the issue without that? First question is whether you can reproduce this on a version of python that is still in maintenance - 3.9 or higher? -- nosy: +ir

[issue39602] importlib: lazy loading can result in reimporting a submodule

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +brett.cannon versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ _

[issue46393] Generate frozenset constants when explicitly appropriate

2022-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rejected by the reality of Python's dynamism, which I overall appreciate ;-). -- ___ Python tracker ___ _

[issue35974] os.DirEntry.inode() returns invalid value within Docker container

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: 3.7 is no longer maintained. Please create a new issue if you are seeing this on a current python version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Pyt

[issue44495] wrong FNAME in tarfile if tgz extension is used

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs

[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37800] Clean up the documentation on module attributes

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ _

[issue45767] Fix types for dev_t processing in posix module

2022-01-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-16 Thread Ned Batchelder
New submission from Ned Batchelder : The sqlite3 library implicitly creates the database if the requested file doesn't exist. I would like to be able to avoid that implicit creation. (Actually, it would be enough to know whether I had created the database, but the underlying SQLite library

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, PR welcome. (Though since this can only work for 3.11+, maybe typeshed could also be adjusted? For that you’d have to file a bug there.) -- ___ Python tracker __

[issue45713] gcc warning when compiling Modules/expat/xmltok_ns.c

2022-01-16 Thread sping
sping added the comment: This has been fixed upstream in pull request https://github.com/libexpat/libexpat/pull/527 that is included with latest release libexpat 2.4.3. bpo-46400 will fix this as a side effect. -- nosy: +sping ___ Python tracker

[issue46400] Please update bundled libexpat to 2.4.3 with security fixes

2022-01-16 Thread sping
Change by sping : -- title: Please updated bundled libexpat to 2.4.3 with security fixes -> Please update bundled libexpat to 2.4.3 with security fixes ___ Python tracker ___

[issue46401] Using setuptools version 59.8.0 or below before upgrade Python 3.10.2 from source on Debian 11

2022-01-16 Thread Ching
New submission from Ching : 1. Before upgrade to Python version 3.10.2 from source on Debian Linux, I must downgrade setuptools to version 59.8.0 or below. 2. At the stage of "make -j 4", setuptools version 60.0.0 or above raise an error of: ModuleNotFoundError: No module named 'binascii' It

[issue46400] Please updated bundled libexpat to 2.4.3 with security fixes

2022-01-16 Thread sping
New submission from sping : Expat 2.4.3 released, includes security fixes https://blog.hartwork.org/posts/expat-2-4-3-released/ Thank you! PS: This is similar to bpo-44394 excect now it's 2.4.3. -- components: XML messages: 410700 nosy: sping priority: normal severity: normal status:

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I propose that two changes be made to `dict_keys`, `dict_values` > and `dict_items`: > > * They should be officially exposed in the `types` module. > * `__class_getitem__` should be added to the classes. +1 -- ___

[issue46361] Small ints aren't always cached properly

2022-01-16 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46361] Small ints aren't always cached properly

2022-01-16 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 5cd9a162cd02a3d0f1b0a182d80feeb17439e84f by Brandt Bucher in branch 'main': bpo-46361: Fix "small" `int` caching (GH-30583) https://github.com/python/cpython/commit/5cd9a162cd02a3d0f1b0a182d80feeb17439e84f -- _

[issue46392] MessageIDHeader is too strict for message-id

2022-01-16 Thread bpoaugust
bpoaugust added the comment: The easiest might be for me to provide some test cases, but I have not been able to work out where the existing unit tests are. One failure which I believe should be permitted under current rules is: - i.e. trailing space The space gets added AFTER the > Howeve

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

2022-01-16 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28826 pull_request: https://github.com/python/cpython/pull/30622 ___ Python tracker ___

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-16 Thread Alex Waygood
Alex Waygood added the comment: As a fix, I propose that two changes be made to `dict_keys`, `dict_values` and `dict_items`: * They should be officially exposed in the `types` module. * `__class_getitem__` should be added to the classes. These two changes would mean that users would be able

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-16 Thread Alex Waygood
New submission from Alex Waygood : Issue40890 added a new `.mapping` attribute to dict_keys, dict_values and dict_items in 3.10. This addition is great for introspection. However, it has inadvertently caused some unexpected problems for type-checkers. Prior to Issue40890, the typeshed stub fo

[issue46398] posixshmem module shm_rename freebsd support.

2022-01-16 Thread David CARLIER
New submission from David CARLIER : - Adding shm_rename (from FreeBSD 13) to be able to move a shared memory block from one location to another. -- ___ Python tracker ___

[issue46398] posixshmem module shm_rename freebsd support.

2022-01-16 Thread David CARLIER
Change by David CARLIER : -- components: FreeBSD nosy: devnexen, koobs, vstinner priority: normal pull_requests: 28825 severity: normal status: open title: posixshmem module shm_rename freebsd support. type: enhancement ___ Python tracker

[issue46372] int/float specializations should mutate the LHS in-place when possible

2022-01-16 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2022-01-16 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28824 pull_request: https://github.com/python/cpython/pull/30620 ___ Python tracker ___

[issue46372] int/float specializations should mutate the LHS in-place when possible

2022-01-16 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46396] Invalid usage of `Concatenate` is not covered at all

2022-01-16 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46392] MessageIDHeader is too strict for message-id

2022-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: In what way is it too strict? What "obsolete rules" are you referring to? What are some example Message-Ids should be considered valid that instead get truncated? What changes are you proposing? -- nosy: +eric.smith __

[issue46393] Generate frozenset constants when explicitly appropriate

2022-01-16 Thread Mark Dickinson
Mark Dickinson added the comment: > That's not always the case though. Sorry, yes - I see. We're not creating a frozenset from a frozenset - we're creating a frozenset from a regular set from a frozenset. :-( Sorry for the noise. -- ___ Python tr

[issue46395] `Concatenate` is not covered to be a return type in `test_typing`

2022-01-16 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thank you for the explanation, Ken Jin. Going to close this issue as invalid. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46394] setuptools' _distutils_hack breaks Python build

2022-01-16 Thread Christian Heimes
Change by Christian Heimes : -- title: 3.8.12: build fails because during handling of the exception, another exception occurred -> setuptools' _distutils_hack breaks Python build type: -> compile error ___ Python tracker

[issue46394] 3.8.12: build fails because during handling of the exception, another exception occurred

2022-01-16 Thread Christian Heimes
Christian Heimes added the comment: The problem is caused by setuptools 60.x's _distutils_hack. Please report the issue to setuptools or use SETUPTOOLS_USE_DISTUTILS env var to work around the issue. -- nosy: +christian.heimes resolution: -> third party stage: -> resolved status: o

[issue46395] `Concatenate` is not covered to be a return type in `test_typing`

2022-01-16 Thread Ken Jin
Ken Jin added the comment: > In this case, do we need to make this a `TypeError`? Right now you can use > `Concatenate` as the return type. Last I recall, we stopped checking anything in the param args of Callable since 3.10 because it has too many problems with inter-version typing and typ

[issue46393] Generate frozenset constants when explicitly appropriate

2022-01-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: That's not always the case though. >>> def f(): ... return frozenset({1, 2, 3}) ... >>> a = f.__code__.co_consts[1] >>> a frozenset({1, 2, 3}) >>> b = f() >>> assert a == b >>> a is b False Also see the disassembly I posted on Python-Ideas. --

[issue46397] urllib.parse.urlencode() return wrong character

2022-01-16 Thread Anh Dang
New submission from Anh Dang : urllib.parse.urlencode() return "%2F%3F" instead of "/?" -- components: Library (Lib) files: urllib_issue.py messages: 410687 nosy: scratch priority: normal severity: normal status: open title: urllib.parse.urlencode() return wrong character versions: Pyth

[issue46395] `Concatenate` is not covered to be a return type in `test_typing`

2022-01-16 Thread Nikita Sobolev
Nikita Sobolev added the comment: > Sorry I'm confused: Callable[..., Concatenate] is invalid usage. So I don't > think we need to test it. Yes, my bad :) In this case, do we need to make this a `TypeError`? Right now you can use `Concatenate` as the return type. -- __

[issue46395] `Concatenate` is not covered to be a return type in `test_typing`

2022-01-16 Thread Ken Jin
Ken Jin added the comment: Sorry I'm confused: Callable[..., Concatenate] is invalid usage. So I don't think we need to test it. https://docs.python.org/3/library/typing.html#typing.Concatenate. "Concatenate is currently only valid when used as the first argument to a Callable." --

[issue46393] Generate frozenset constants when explicitly appropriate

2022-01-16 Thread Mark Dickinson
Mark Dickinson added the comment: [Terry] > To avoid the intermediate set, [...] It's not quite as bad as that: there _is_ no intermediate set (or if you prefer, the intermediate set is the same object as the final set), since the frozenset call returns its argument unchanged if it's already

[issue46396] Invalid usage of `Concatenate` is not covered at all

2022-01-16 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28823 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30619 ___ Python tracker ___ _

  1   2   >