[issue46511] dataclasses: Allow typing.Annotated to wrap dataclasses-specific annotations

2022-01-25 Thread Gregory Beauregard
Gregory Beauregard added the comment: Or rather, ^\s*(?:(?:\w+\s*\.)?\s*Annotated\s*\[)?(?:\s*(\w+)\s*\.)?\s*(\w+) -- ___ Python tracker ___

[issue46511] dataclasses: Allow typing.Annotated to wrap dataclasses-specific annotations

2022-01-25 Thread Gregory Beauregard
Gregory Beauregard added the comment: Thanks for getting back so quickly. Annotated is set up to be 'transparent' by default to `typing.get_type_hints` so in the case of using `typing.py` it can be made straightforward by chaining with `typing.get_origin`, I think. I don't see any

[issue46517] Review exception handling in urllib

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: > The author probably also wants the TypeError initially raised from the > "len(query)" and "query[0]" operations to get the same "not a valid . . ." > message. I see. I didn’t realise it’s deprecated, I guess we’ll leave it alone then. Thanks. --

[issue41846] IDLE subsection of What's New 3.10

2022-01-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29088 pull_request: https://github.com/python/cpython/pull/30907 ___ Python tracker

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Dong-hee Na
Change by Dong-hee Na : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46517] Review exception handling in urllib

2022-01-25 Thread Martin Panter
Martin Panter added the comment: The linked code is for urllib.parse.urlencode, looking something like try: if len(query) and not isinstance(query[0], tuple): raise TypeError except TypeError: ty, va, tb = sys.exc_info() raise TypeError("not a valid non-string sequence "

[issue33205] GROWTH_RATE prevents dict shrinking

2022-01-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread miss-islington
miss-islington added the comment: New changeset f8a805bde1ff4679c2824ced4a28437da61b1506 by Miss Islington (bot) in branch '3.9': bpo-41844: Update IDLE part of What's New 3.9 to 20228 (GH-30905) https://github.com/python/cpython/commit/f8a805bde1ff4679c2824ced4a28437da61b1506 --

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread miss-islington
miss-islington added the comment: New changeset 8356f6aac2fc41cab44159574f5d8fd5fdf95a63 by Miss Islington (bot) in branch '3.10': bpo-41844: Update IDLE part of What's New 3.9 to 20228 (GH-30905) https://github.com/python/cpython/commit/8356f6aac2fc41cab44159574f5d8fd5fdf95a63 --

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread Eryk Sun
Eryk Sun added the comment: > sys.getwindowsversion() which exposes GetVersionEx() looks fine to me. In Windows 8+, sys.getwindowsversion() returns a version that can vary from 6.2.9200 (Windows 8) up to the actual OS version. It depends on the OS versions supported by the application

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +29086 pull_request: https://github.com/python/cpython/pull/30908 ___ Python tracker ___

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +29087 pull_request: https://github.com/python/cpython/pull/30909 ___ Python tracker ___

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7cf285d82ec722d4225297366013e924805171f2 by Terry Jan Reedy in branch 'main': bpo-41844: Update IDLE part of What's New 3.9 to 20228 (GH-30905) https://github.com/python/cpython/commit/7cf285d82ec722d4225297366013e924805171f2 --

[issue41846] IDLE subsection of What's New 3.10

2022-01-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +29085 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30906 ___ Python tracker ___

[issue41844] IDLE subsection of What's New 3.9

2022-01-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +29084 pull_request: https://github.com/python/cpython/pull/30905 ___ Python tracker ___

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +29082 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30904 ___ Python tracker ___

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2022-01-25 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra nosy_count: 4.0 -> 5.0 pull_requests: +29083 pull_request: https://github.com/python/cpython/pull/30904 ___ Python tracker

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I can confirm that the behavior changed between 3.10 and current main: enumerate(iterable=[]) works on 3.10 but not on main. It's likely a consequence of bpo-43706. I'll submit a patch to restore the previous behavior. -- nosy: +Jelle Zijlstra,

[issue46498] Add new triplets for loongarch64

2022-01-25 Thread WANG Xuerui
New submission from WANG Xuerui : First of all I think the changes should probably go in main branch first, then backported to the older branches if possible; although IMO you'd be much better off just backporting and carrying the patch yourselves. Secondly the suggested patch is not

[issue46528] Simplify the VM's stack manipulations

2022-01-25 Thread Brandt Bucher
Brandt Bucher added the comment: In practice, pretty much the only thing that will do more work now is augmented subscription: >>> a[b] += c main: 1 2 LOAD_NAME0 (a) 4 LOAD_NAME1 (b) 6 DUP_TOP_TWO 8

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

2022-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin: [tests need review]. Yep. Improved constant folding and elimination of duplication now causes many 'is not' tests to fail. Language tests should not test current implementation limitations. -- ___

[issue46528] Simplify the VM's stack manipulations

2022-01-25 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +29081 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30902 ___ Python tracker ___

[issue46528] Simplify the VM's stack manipulations

2022-01-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: What are the (unoptimized) performance implications of replacing one instruction with multiple instructions? -- nosy: +barry ___ Python tracker

[issue46528] Simplify the VM's stack manipulations

2022-01-25 Thread Brandt Bucher
New submission from Brandt Bucher : ...as discussed in https://github.com/faster-cpython/ideas/discussions/228. We can dramatically simplify our stack manipulations by getting rid of the `DUP_TOP*` and `ROT_*` families of instructions: - Replace `DUP_TOP` with `COPY(1)`. - Replace

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why we have to handle XML or JSON and encoding... just to get a version number. Why did Microsoft make it so complicated? sys.getwindowsversion() which exposes GetVersionEx() looks fine to me. --

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Trey Hunner
New submission from Trey Hunner : While playing around with the main CPython branch against I noticed that enumerate now gives a strange error message when `iterable` is provided as a keyword argument: >>> enumerate(iterable=[]) Traceback (most recent call last): File "", line 1, in

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread Eryk Sun
Eryk Sun added the comment: > Bit wmic seems nice solution. > Is still working for windows lower than 11? wmic.exe is still included in Windows 10 and 11, but it's officially deprecated [1], which means it's no longer being actively developed, and it might be removed in a future update.

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, there are no perfect solutions. Please let it go. -- ___ Python tracker ___ ___

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Anthony Sottile
Anthony Sottile added the comment: 3.7.2 has another example where OrderedDict was added to typing I don't have any personal investment in this particular change but I've had quite a few unhappy consumers of libraries due to instability in typing apis between patch versions in the past (heh

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: Well that's *always* a problem right? If you take that to the extreme we wouldn't need bugfix releases. :-) Apart from some examples in the 3.5-3.6 timeframe, what makes you think that *this* fix *specifically* is going to make more people unhappy than it

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Anthony Sottile
Anthony Sottile added the comment: to me this is the same as the Union[Pattern] / Union[Match] "fixes" that landed in 3.5.3 -- and the pain caused by using that and having CI pass (because of modern 3.5.x) but having spurious bug reports from users stuck on 3.5.2 or in 3.6.1 when NamedTuple

[issue46431] Trouble subclassing ExceptionGroup

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset 072f4a473e861c6c987650f08990c0ed1f76715f by Irit Katriel in branch 'main': bpo-46431: use raw string for regex in test (GH-30901) https://github.com/python/cpython/commit/072f4a473e861c6c987650f08990c0ed1f76715f --

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: But it *is* a bugfix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19073] Inability to specific __qualname__ as a property on a class instance.

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

[issue46491] typing: allow Annotated in outermost scope

2022-01-25 Thread Anthony Sottile
Anthony Sottile added the comment: should this behaviour change be backported? it potentially creates an annoying edgecase where code seemingly works unless you use an older patch version since this isn't a bugfix I wouldn't expect this to land in 3.9 and 3.10 -- nosy: +Anthony

[issue46431] Trouble subclassing ExceptionGroup

2022-01-25 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29080 pull_request: https://github.com/python/cpython/pull/30901 ___ Python tracker ___

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > In which case it would be generally helpful to start the longest-running > tests first. Currently, most CI run "make buildbottest" which uses -r option of libregrtest: randomize tests order. -- ___ Python

[issue41294] Allow '__qualname__' to be an instance of 'DynamicClassAttribute'

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: I think this is a duplicate of Issue19073. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue46526] iglob exclude patterns

2022-01-25 Thread Henning Leth
Henning Leth added the comment: Fix typo in 1st post Code as i espected it would be writen: ... iglob(f'**/*[!{ignore}]', recursive=True) -- ___ Python tracker ___

[issue46526] iglob exclude patterns

2022-01-25 Thread Henning Leth
New submission from Henning Leth : Got a project where I am looking for all files in a project dir, except the some files/dir/extentions that should be ignored. Found a possible bug: - the set has to be defined even though it was a set when defined - f-string doesn´t work as I would expect

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: I've started a pull request here: https://github.com/python/cpython/pull/30900 -- ___ Python tracker ___

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Change by Niklas Rosenstein : -- pull_requests: +29079 pull_request: https://github.com/python/cpython/pull/30900 ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2022-01-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2022-01-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +29078 pull_request: https://github.com/python/cpython/pull/30899 ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2022-01-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3fc8b74ace033a17346a992f661928ba619e61e8 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-46091: Correctly calculate indentation levels for whitespace lines with continuation characters (GH-30130). (GH-30898)

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: @kinshukdua - can you explain why you closed the PR and whether you are interested in reopening it and finishing this? -- ___ Python tracker

[issue46091] IndendationError from multi-line indented statements

2022-01-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +29077 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30898 ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2022-01-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a0efc0c1960e2c49e0092694d9839270914c by Pablo Galindo Salgado in branch 'main': bpo-46091: Correctly calculate indentation levels for whitespace lines with continuation characters (GH-30130)

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: Interesting! Representing the entire type hint as a string is something I haven't thought about, but it makes sense that it works. It is my understanding that `get_type_hint()` already walks through the entire type hint recursively. If it weren't, it

[issue46525] datetime.timestamp() lose precision when the time is too large

2022-01-25 Thread Yilei Yang
New submission from Yilei Yang : Examples: >>> datetime.datetime(, 1, 1, microsecond=99).timestamp() 7952371200.99 >>> datetime.datetime(, 1, 1, microsecond=99).timestamp() 43012195201.0 >>> datetime.datetime(2567, 1, 1, microsecond=98).timestamp() 18839548800.96 I

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-25 Thread Tim Peters
Tim Peters added the comment: As a general thing, I expect people on Windows always run the tests with multiple processes. In which case it would be generally helpful to start the longest-running tests first. As is, because of its late-in-the-alphabet name, "test_peg_generator" gets started

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a patch that doesn't do it right but illustrates the point: diff --git a/Lib/typing.py b/Lib/typing.py index 972b8ba24b..4616db60c3 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1807,6 +1807,12 @@ def get_type_hints(obj, globalns=None,

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: Ah, I see the issue. I stepped through get_type_hints() using pdb, and it does have a special case for when it encounters a string: it wraps it in a ForwardRef and proceeds from there:

[issue46523] Test suite skips failing tests when setUp[Class] fails

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

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The test needs to build a lot of C extensions with different parsers, and that compilation is what takes most of the time. I don't think we should skip these tests by default on Windows, as it gives us valuable information (that the parser features

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +29075 pull_request: https://github.com/python/cpython/pull/30894 ___ Python tracker

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a57fa296b92125e41220ecd201eb2e432b79fb0 by Victor Stinner in branch '3.10': [3.10] bpo-45382: test.pythoninfo logs more Windows versions (GH-30891) https://github.com/python/cpython/commit/4a57fa296b92125e41220ecd201eb2e432b79fb0 --

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: It was not my intention to sound passive agressive. Thanks for providing the context around the time PEP 585 was discussed. Frankly, I believe I have explained the problem quite well. But I would like to propose a solution. I can't judge in what

[issue46520] `ast.unparse` produces syntactically illegal code for identifiers that look like reserved words

2022-01-25 Thread Nikita Sobolev
Nikita Sobolev added the comment: I can confirm that it happens on all versions from 3.9 to 3.11 (main). ``` Python 3.9.9 (main, Dec 21 2021, 11:35:28) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>>

[issue46282] return value of builtins is not clearly indicated

2022-01-25 Thread James Gerity
James Gerity added the comment: My thought was to add something like this to the top of functions.rst: ``` Note that some of the functions listed here have the :ref:`default return value of ``None``. ``` For reference, the builtins this applies to are: * breakpoint() * delattr() * exec()

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-25 Thread Tim Peters
Change by Tim Peters : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46420] Use NOTRACE_DISPATCH in specialized opcodes

2022-01-25 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: When PEP 585 was discussed and implemented we did not expect people to care as much about runtime types as they did. I already explained that making list['Node'] incorporate a ForwardRef instance is unrealistic (we'd have to reimplement ForwardRef in C

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: My audioop.c change which looks to be wrong (useless): diff --git a/Modules/audioop.c b/Modules/audioop.c index 3aeb6f04f13..4c04b17ce7f 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -1948,6 +1941,13 @@ audioop_exec(PyObject* module) {

[issue46214] Remove unused opcode ROT_FOUR

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

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: To test if a C type is signed or not, I wrote this macro: // Test if a C type is signed. // // Usage: assert(_Py_CTYPE_IS_SIGNED(char)); // fail if 'char' type is unsigned #define _Py_CTYPE_IS_SIGNED(T) (((T)-1) < 0) I planned to use it to raise an error on

[issue46282] return value of builtins is not clearly indicated

2022-01-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please post your proposed change here to be discussed by participants here. -- ___ Python tracker ___

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: Thanks guys. Microsoft is always pain for us. Bit wmic seems nice solution. Is still working for windows lower than 11? -- ___ Python tracker

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29074 pull_request: https://github.com/python/cpython/pull/30891 ___ Python tracker ___

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-01-25 Thread STINNER Victor
New submission from STINNER Victor : test_peg_generator takes between 5 and 16 minutes on the Windows CI run on Python pull requests. Example of timings on my PR https://github.com/python/cpython/pull/30890 * GitHub Action win32: 8 min 16 sec * GitHub Action win64: 16 min 38 sec * Azure

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset cef0a5458f254c2f8536b928dee25862ca90ffa6 by Victor Stinner in branch 'main': bpo-45382: test.pythoninfo: set wmic.exe encoding to OEM (GH-30890) https://github.com/python/cpython/commit/cef0a5458f254c2f8536b928dee25862ca90ffa6 --

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: You're right, let me trim it down: In production we use `get_type_hints()` a lot, expecting it to resolve strings as forward references as per it's original API contract. However, PEP 585 generics parametrized with strings in Python 3.10 doesn't work

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > When writing to a pipe, wmic.exe hard codes using the process OEM code page > (i.e. CP_OEMCP). If it matters, running wmic.exe with subprocess should use > encoding='oem' instead of text=True. Oh ok, I wrote PR 30890 to fix the wmic.exe encoding. I would

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Guido van Rossum
Guido van Rossum added the comment: I asked for a brief example that explains your issue to me. Instead you sent me links to production code and patches to it. Sorry, but that doesn't help me understand your problem. Is there really no way that you can write a little story that goes along

[issue45382] platform() is not able to detect windows 11

2022-01-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29073 pull_request: https://github.com/python/cpython/pull/30890 ___ Python tracker ___

[issue43976] Allow Python distributors to add custom site install schemes

2022-01-25 Thread Frederik Rietdijk
Frederik Rietdijk added the comment: In Nixpkgs we install every Python package under a unique prefix, a so-called Nix store path. If we were to use sysconfig for installing packages, then we'd need to be able to dynamically set the paths. This was also discussed as part of the Installer

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: Guido, sorry for the late response on this. I have a work around, but it involves passing along my own "context" from which to resolve strings on the go as they are encountered while decomposing the type hint.

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > Modules/audioop.c uses __CHAR_UNSIGNED__, but the absence or presence of the > symbol does not affect behavior This comment is really weird since audioop explicitly uses "signed char" and "unsigned char". Maybe to avoid any risk of confusion, the C code

[issue46513] AC_C_CHAR_UNSIGNED from configure.ac confuses GCC 12+ by defining __CHAR_UNSIGNED__

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: Fedora downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2043555 We should make sure that Python can be built with -fsigned-char *and* with -funsigned-char: build Python, but also run its test suite. --

[issue46282] return value of builtins is not clearly indicated

2022-01-25 Thread James Gerity
James Gerity added the comment: > advertising that all functions default to returning None This is already communicated in § 4.7 ("Defining Functions") of the official tutorial. I think it would be a good idea to revise that section so that this property of functions is a little more

[issue46465] Regression caused by CALL_FUNCTION specialization for C function calls

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > Regarding C extensions, I think clear documentation that extension authors > need to check for signals in any code that might run for a few hundred > microseconds or longer is the best approach. Python 3.10 doesn't require it. If you want to change Python

[issue33205] GROWTH_RATE prevents dict shrinking

2022-01-25 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41682] [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > I'm sorry, Victor. As a maintainer of the Python CIs, The Night's Watch (*), it's my fault that I didn't skip these tests earlier. Honestly, it's ok to skip a bunch of tests or even remove them if there is no active maintainer. It's also ok that there is

[issue46510] Update Python2-style exception handling

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

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset ec7c17ea236f71c8376abcc2930a7c857d417966 by Irit Katriel in branch 'main': bpo-46510: Add missing test for types.TracebackType/FrameType. Calculate them directly from the caught exception. (GH-30880)

[issue40735] test_nntplib depends on unreliable external servers

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: IMO for now it's better to *always* skip test_nnptlib tests which rely on external servers and close related issues. * https://bugs.python.org/issue19613 (test_article_head_body) * https://bugs.python.org/issue19756 (test_capabilities) These issues are open

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset d69d3d8b2fec501e51309221fb1fa4622c8a3db3 by Irit Katriel in branch 'main': bpo-46510: simplify exception handling code in xmlrpc (GH-30878) https://github.com/python/cpython/commit/d69d3d8b2fec501e51309221fb1fa4622c8a3db3 --

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: Python has the same behavior since Python 2.6. While it annoys a few persons, the majority doesn't care. I suggest to close the issue. It's easy to workaround limitation that object.__new__() which doesn't accept arguments. --

[issue41682] [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry, Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38195] A bug in the multiprocessing module

2022-01-25 Thread eshkrig
eshkrig added the comment: $ cat /etc/os-release NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo/Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/; SUPPORT_URL="https://www.gentoo.org/support/; BUG_REPORT_URL="https://bugs.gentoo.org/; $ uname -a Linux lynx 5.16.2-gentoo-1 #1 SMP PREEMPT

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-25 Thread Alex Gaynor
Alex Gaynor added the comment: Sticking with 100k is not scientific though ;-) Empiricism is science! I'm probably the person responsible for Django's process, which is to increase by some % (10% or 20% IIRC) every release. As you point out, the exact value one should use is a function of

[issue41682] [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: This failing test was one of my most hated test because it failed randomly for almost 2 years. I'm happy that it has been fixed :-) Regularly, I'm asking for help to fix test_asyncio: * October 2020:

[issue42238] Deprecate suspicious.py?

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: > It currently looks like this: https://github.com/JulienPalard/sphinxlint but > should obviously be moved to github.com/python/ if we adopt this direction. If you want to move the project under the https://github.com/psf/ organization, the PSF has some

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks Kumar for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 75d88b91e6b1320ae0511eaf72e860bea913a3eb by Miss Islington (bot) in branch '3.10': bpo-41682: fixed flaky test test_sendfile_close_peer_in_the_middle_of_receiving (GH-30845) (#30860)

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f9ff0bf515e0fa162889aca508e755cc65d85079 by Miss Islington (bot) in branch '3.9': bpo-41682: fixed flaky test test_sendfile_close_peer_in_the_middle_of_receiving (GH-30845) (#30861)

  1   2   3   >