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

2022-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson, rhettinger, stutzbach, tim.peters ___ Python tracker ___ ___ Python-bugs-list

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

2022-01-17 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
New submission from Christian Heimes : The signal.signal() function directly compares PyObject *handler with PyObject *modstate->ignore_handler. This works on most platforms because they are both small ints and Python uses singletons for cached small ints. The assumption breaks when Python is

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

2022-01-17 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +signal module wrongly relies on small int singletons ___ Python tracker ___ ___ Pytho

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See msg234768 and issue23325. I propose to close this as a duplicate of issue23325. -- nosy: +serhiy.storchaka ___ Python tracker ___

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

2022-01-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: Another option to consider would be a table lookup of a pre-computed table of [1 << i for i in range(64)]. -- nosy: +Dennis Sweeney ___ Python tracker _

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Turn SIG_DFL and SIG_IGN into functions ___ Python tracker

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-17 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Turn SIG_DFL and SIG_IGN into functions ___ Python tracker ___ ___ Python-bugs-list m

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

2022-01-17 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch pull_requests: +28832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30629 ___ Python tracker ___ ___

[issue46393] Generate frozenset constants when explicitly appropriate

2022-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As Steven have noted the compiler-time optimization is not applicable here because name frozenset is resolved at run-time. In these cases where a set of constants can be replaced with a frozenset of constants (in "x in {1,2,3}" and in "for x in {1,2,3}") t

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

2022-01-17 Thread Kumar Aditya
Kumar Aditya added the comment: I would like to work on this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2022-01-17 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +28833 pull_request: https://github.com/python/cpython/pull/30630 ___ Python tracker ___

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

2022-01-17 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Kumar — I appreciate it! > (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.) Yes — it's unfortunate, but I have some ideas for hacky workarounds we can implement in typeshed f

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

2022-01-17 Thread Alex Waygood
Alex Waygood added the comment: Do these changes warrant an entry in "What's New in 3.11"? -- ___ Python tracker ___ ___ Python-bug

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: I read the python-dev thread now and I see it was decided that it’s not worth removing it. In recent versions of the doc it is mentioned that the function is in the stable ABI. Should we clarify exactly what is meant by ‘deprecated’? -- status: pending

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread Jakub Kulik
Jakub Kulik added the comment: >> On Solaris (and most likely several other platforms), >> `PyThread_get_thread_native_id` is also not available. > Oh, I added an explicit test for that in my PR 30556. Now it started failing on a different place:

[issue34135] The results of time.tzname print broken.

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue46393] Generate frozenset constants when explicitly appropriate

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

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh no, I expected that the new way to build Python would also export PyThread_get_thread_native_id() on Solaris. I reopen the issue. Can you please specify your configure command? Can you check without Python if the symbol is exported or not? If you use --en

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

2022-01-17 Thread Jakub Kulik
Jakub Kulik added the comment: This also broke our Solaris build with the following error: == FAIL: testGetaddrinfo (test.test_socket.GeneralModuleTests) -- T

[issue24194] Make tokenize recognize Other_ID_Start and Other_ID_Continue chars

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

[issue13886] readline-related test_builtin failure

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: On Fedora 35, I still reproduce the initial issue on the main branch of Python: $ ./python -E -m test -v test_readline test_builtin (...) == FAIL: test_input_tty_non_ascii (test.test_builtin.P

[issue39064] ValueError in zipfile.ZipFile

2022-01-17 Thread jvoisin
jvoisin added the comment: Yes, I can reproduce it: ``` $ python3 --version Python 3.9.9 $ python3.9 ziprepo.py ./crash-4da08e9ababa495ac51ecad588fd61081a66b5bb6e7a0e791f44907fa274ec62 Traceback (most recent call last): File "/home/jvoisin/Downloads/ziprepo.py", line 4, in zipfile.Zi

[issue13886] readline-related test_builtin failure

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh, the test_builtin.test_input_tty_non_ascii() fails just if test_readline is loaded previously: $ ./python -E -m test -m test.test_builtin.PtyTests.test_input_tty_non_ascii -v test_readline test_builtin == CPython 3.11.0a4+ (heads/main:7f4b69b9076, Jan 17 2

[issue39064] ValueError in zipfile.ZipFile

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread Jakub Kulik
Jakub Kulik added the comment: Ah, sorry, I could have described the issue better. It's not a problem with exporting, PyThread_get_thread_native_id() isn't available on Solaris (and possibly other platforms) at all. https://github.com/python/cpython/blob/main/Include/pythread.h#L28 https://g

[issue46389] 3.11: unused generator comprehensions cause f_lineno==None

2022-01-17 Thread Mark Shannon
Mark Shannon added the comment: This has the same root cause as https://bugs.python.org/issue46374: closing the unused generator expression exposes the generator's frame before it has been initialized. -- ___ Python tracker

[issue46409] Add a new bytecode instruction to create generators

2022-01-17 Thread Mark Shannon
New submission from Mark Shannon : (including coroutines, and async generators) We now make the start and resumption of Python functions explicit in the bytecode which allows us to initialize frames in the bytecode without exposing incomplete frames tracing, the GC etc. However, we still expo

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

2022-01-17 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: > Another option to consider would be a table lookup of a pre-computed table of > [1 << i for i in range(64)]. Does it have a significantly better performance compared to not having a table lookup? -- ___ P

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-17 Thread Christian Heimes
Change by Christian Heimes : Added file: https://bugs.python.org/file50566/alpine315-tests.txt ___ Python tracker ___ ___ Python-bugs-list m

[issue13886] readline-related test_builtin failure

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28834 pull_request: https://github.com/python/cpython/pull/30631 ___ Python tracker ___ __

[issue13886] readline-related test_builtin failure

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Since nobody managed to fix this issue in 10 years and the test still fails if the readline module is loaded, I wrote GH-30631 to skip the test if the readline module is loaded. -- ___ Python tracker

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- title: readline-related test_builtin failure -> test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded ___ Python tracker __

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: rl-locale.diff changes the readline implementation of the PyOS_Readline() to set LC_CTYPE locale to "C": setlocale(LC_CTYPE, "C"), rather to the user preferred locale: setlocale(LC_CTYPE, ""). IMO it's a bad idea. Python made great progress in Unicode suppor

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

2022-01-17 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: Also how would it be implemented? in terms of a PyLongObject or just a uint64_t? -- ___ Python tracker ___ ___

[issue13888] test_builtin failure when run after test_tk

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I cannot reproduce this issue on the Python main branch on Fedora 35 with Tk 8.6.10 and libX11 1.7.3.1. I close the issue, please reopen it if you can still reproduce it. One year ago, Serhiy wrote that the issue was still reproducible on Linux but he didn'

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

2022-01-17 Thread Jirka Marsik
New submission from Jirka Marsik : re.compile(r"\N{name of Unicode Named Character Sequence}"), e.g. re.compile(r"\N{KEYCAP NUMBER SIGN}"), throws a TypeError. The regular expression parser relies on 'unicodedata' to lookup character names. The 'unicodedata' module recently added support for

[issue41034] test_builtin: PtyTests fail when run twice

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: The "./python -m test -R 3:3 test_builtin" command loads the readline module somehow: --- $ ./python -i -m test -R 3:3 test_builtin (...) SystemExit: 0 >>> import sys >>> 'readline' in sys.modules True --- This bug is a duplicate of bpo-13886. Moreover, I t

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-41034 "test_builtin: PtyTests fail when run twice" as a duplicate of this issue. Moreover, I tested manually: my change GH-30631 fix the "./python -m test -R 3:3 test_builtin" command. -- ___ Python t

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

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 14.0 -> 15.0 pull_requests: +28835 pull_request: https://github.com/python/cpython/pull/30632 ___ Python tracker ___ _

[issue46409] Add a new bytecode instruction to create generators

2022-01-17 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +28836 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30633 ___ Python tracker ___ ___

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

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

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

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 42a64c03ec5c443f2a5c2ee4284622f5d1f5326c by Victor Stinner in branch 'main': Revert "bpo-40066: [Enum] update str() and format() output (GH-30582)" (GH-30632) https://github.com/python/cpython/commit/42a64c03ec5c443f2a5c2ee4284622f5d1f5326c

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad6e640f910787e73fd00f59117fbd22cdf88c78 by Victor Stinner in branch 'main': bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631) https://github.com/python/cpython/commit/ad6e640f910787e73fd00f59117fbd22cdf88c78 -- ___

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +28837 pull_request: https://github.com/python/cpython/pull/30634 ___ Python tracker ___

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

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I had to revert the change since it broke the CI and it prevented to merge new PRs. Tell me if I can help to get this test fixed and to get this change merged again. By the way, the PR 30582 was merged even if the Docs CI failed. --

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +28838 pull_request: https://github.com/python/cpython/pull/30635 ___ Python tracker ___ __

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: > Ah, sorry, I could have described the issue better. It's not a problem with > exporting, PyThread_get_thread_native_id() isn't available on Solaris (and > possibly other platforms) at all. Oh ok, it's a simple bug in my test. I wrote GH-30636 to fix it. -

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28839 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30636 ___ Python tracker ___ __

[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

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

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: With my change, the two following commands now pass successfully: * ./python -m test test_readline test_builtin * ./python -m test -R 3:3 test_builtin -- ___ Python tracker __

[issue45522] Allow to build Python without freelists

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue to not forget to complete the doc. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, you can already do this using the URI option: cx = sqlite3.connect("file:test.db?mode=rw", uri=True) -- ___ Python tracker ___ _

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See also bpo-24887. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: IMO, the URI "API" is not very pythonic; I have to look up the format every time I'm using it. OTOH, introducing flags, or keywords, for every option will add a lot of code. -- ___ Python tracker

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread miss-islington
miss-islington added the comment: New changeset 1345b460f568afa8a6f9c0e2b23adba5015f208e by Miss Islington (bot) in branch '3.10': bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631) https://github.com/python/cpython/commit/1345b460f568afa8a6f9c0e2b23adba5015f208e -

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: OTOH, implementing an API similar to apsw (adding a flags keyword) would make it easier for users to switch between that and the stdlib sqlite3. -- ___ Python tracker __

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0fbb9afbddb93408e34bdb7625002374cb2ad68c by Miss Islington (bot) in branch '3.9': bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631) (GH-30635) https://github.com/python/cpython/commit/0fbb9afbddb93408e34bdb7625002374cb2ad68c

[issue46383] _zoneinfo module_free has invalid function signature

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7a822c92782ffda8fa32a4b30a95b9de7cc1b8e6 by Miss Islington (bot) in branch '3.10': bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610) https://github.com/python/cpython/commit/7a822c92782ffda8fa32a4b30a95b9de7cc1b8e6

[issue13886] test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, the initial issue is now fixed: the test pass. If someone wants to write test input() with non-ASCII input and readline, I suggest to open a new issue and add the test in the test_readline module instead. -- resolution: -> fixed stage: patch re

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16901c0482734dbd389b09ca3edfcf3e22faeed7 by Victor Stinner in branch 'main': bpo-44133: Skip PyThread_get_thread_native_id() if not available (GH-30636) https://github.com/python/cpython/commit/16901c0482734dbd389b09ca3edfcf3e22faeed7

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38550] hashlib missing algorithms

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue46389] 3.11: unused generator comprehensions cause f_lineno==None

2022-01-17 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

2022-01-17 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 nosy_count: 15.0 -> 16.0 pull_requests: +28840 pull_request: https://github.com/python/cpython/pull/30637 ___ Python tracker _

[issue46374] Assertion failed in ceval.c

2022-01-17 Thread Mark Shannon
Change by Mark Shannon : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Petr Viktorin
Petr Viktorin added the comment: This cannot be changed in 3.x, since the PyObject_DelAttr macro calls PyObject_SetAttr(..., NULL), and the macro is expanded in all extensions that use the stable ABI. (Technically, it would be possible to add a PyObject_SetAttr *macro* that would warn/fail,

[issue46411] modernize exception handling in tests

2022-01-17 Thread Irit Katriel
New submission from Irit Katriel : There are a few tests that use sys.exc_info() because they needed to in python 2, but there is no longer a reason to do it. I will make a patch shortly. -- assignee: iritkatriel components: Tests messages: 410789 nosy: iritkatriel priority: normal sev

[issue46411] modernize exception handling in tests

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28841 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30638 ___ Python tracker ___ ___

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Ned Batchelder
Ned Batchelder added the comment: @Erlend: thanks for the URI tip, I missed that as a possibility in the SQLite docs. -- ___ Python tracker ___ __

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30639 ___ Python tracker ___ ___

[issue46412] PyQT6 projects crashes with python 3.10

2022-01-17 Thread Fernando Pérez Gómez
New submission from Fernando Pérez Gómez : can't translate ui. files , flags of alignment , curve types of animation doesn´t wors ...etc -- messages: 410791 nosy: fernandoprezgmez priority: normal severity: normal status: open title: PyQT6 projects crashes with python 3.10 type: crash v

[issue46413] `__or__` is not covered for `_GenericAlias` and `_SpecialGenericAlias` in `typing`

2022-01-17 Thread Nikita Sobolev
New submission from Nikita Sobolev : Today I've noticed that these two methods are not covered: https://github.com/python/cpython/blame/16901c0482734dbd389b09ca3edfcf3e22faeed7/Lib/typing.py#L1028-L1032 - `typing._GenericAlias.__or__` - `typing._GenericAlias.__ror__` Later, I've realized that

[issue46413] `__or__` is not covered for `_GenericAlias` and `_SpecialGenericAlias` in `typing`

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

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I guess we could do more to promote that trick in the docs. It’s quite useful. -- ___ Python tracker ___ __

[issue46412] PyQT6 projects crashes with python 3.10

2022-01-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is most likely a problem with PyQt6. Please ask that project first (with a clearer description of what goes wrong and on which platforms). -- nosy: +ronaldoussoren resolution: -> third party stage: -> resolved status: open -> closed _

[issue46414] Add typing.reveal_type

2022-01-17 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : The `reveal_type()` primitive is injected by type checkers into the builtins. When the type checker sees a call, it prints the inferred type of the argument. This has been implemented across all type checkers, but adding an implementation to `typing` would

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue34875] Change .js mime to "text/javascript"

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

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

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: After merging in doc fix by kumaraditya303, I'll update tests so Solaris passes. -- ___ Python tracker ___

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

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: New changeset 83d544b9292870eb44f6fca37df0aa351c4ef83a by Kumar Aditya in branch 'main': bpo-40066: [Enum] skip failing doc test (GH-30637) https://github.com/python/cpython/commit/83d544b9292870eb44f6fca37df0aa351c4ef83a -- _

[issue46415] ipaddress.ip_{address, network, interface} raise TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
New submission from Thomas Cellerier : `IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of (address description, netmask) as the address parameter. When the tuple-based address is used errors are not propagated correctly through the `ipaddress.ip_*` helper because of the %-forma

[issue46381] Improve documentation of CFLAGS_NODIST, LDFLAGS_NODIST

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Do you want to propose a PR? -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list maili

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-17 Thread Nikita Sobolev
New submission from Nikita Sobolev : Here's the problem: ``` » ./python.exe Lib/test/test_typing.py

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

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

[issue46415] ipaddress.ip_{address, network, interface} raise TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
Change by Thomas Cellerier : -- keywords: +patch pull_requests: +28845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30642 ___ Python tracker ___

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

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: >self.assertEqual(repr(type), '') For this one, I suggest to replace the value with "..." doctest pattern. -- ___ Python tracker ___ ___

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

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: vstinner wrote: -- >>self.assertEqual(repr(type), '') > For this one, I suggest to replace the value with "..." doctest pattern. That bit of code is from the unittest suite, not the doctest suite. I went with: self.assertEqual(repr(type)

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

2022-01-17 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +28846 pull_request: https://github.com/python/cpython/pull/30643 ___ Python tracker ___

[issue46415] ipaddress.ip_{address, network, interface} raises TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
Change by Thomas Cellerier : -- title: ipaddress.ip_{address,network,interface} raise TypeError instead of ValueError if given a tuple as address -> ipaddress.ip_{address,network,interface} raises TypeError instead of ValueError if given a tuple as address __

[issue46414] Add typing.reveal_type

2022-01-17 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/core-workflow/issues/424 "Should we make the Docs CI mandatory on the Python main branch?". -- ___ Python tracker __

[issue46405] Warning compiling main on Windows

2022-01-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset a4bc2218d270c4c7a898c8b3967c8c271afe9abe by Kumar Aditya in branch 'main': bpo-46405: fix msvc compiler warnings (GH-30627) https://github.com/python/cpython/commit/a4bc2218d270c4c7a898c8b3967c8c271afe9abe -- ___

[issue46414] Add typing.reveal_type

2022-01-17 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2022-01-17 Thread László Kiss Kollár
Change by László Kiss Kollár : -- nosy: +lkollar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: New changeset 62a6594e66ca955073be2f4e5a40291a39252ef3 by Ethan Furman in branch 'main': bpo-40066: [Enum] fix tests (GH-30643) https://github.com/python/cpython/commit/62a6594e66ca955073be2f4e5a40291a39252ef3 -- _

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

2022-01-17 Thread Ethan Furman
Change by Ethan Furman : -- priority: release blocker -> normal resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___ ___

[issue46108] Enum repr() incorrect when mixed with non-__new__ data types

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: Fixed in 3.11. -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Enum: modify __repr__, __str__; update docs type: -> behavior ___ Python tracker

  1   2   >