[issue46262] Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag`

2022-01-04 Thread Alex Waygood
Change by Alex Waygood : -- title: Error path in `_missing_()` is not covered for `enum.Flag` and `enum.IntFlag` -> Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag` ___ Python tracker <https://bugs.pyth

[issue46269] '__new__' is never shown in `dir(SomeEnum)`

2022-01-05 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Nikita! My bad for not adding tests for __new__ in PR 29316. To confirm: yes, my idea in PR 29316 was that "__new__" (along with most enum dunders) should not show up in the output of dir(Enum), but should show up in dir(EnumSubclass) if a

[issue46244] typing._TypeVarLike missing __slots__

2022-01-06 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45665] Problems caused by isinstance(list[int], type) returning True

2022-01-06 Thread Alex Waygood
Alex Waygood added the comment: > We will still allow instantiating e.g. list[int], right? I certainly hope so! That would be a much more breaking change if we were to change that, and I can't personally see any benefit to doing so. -- __

[issue46290] Parameter names are inaccurate in dataclasses docs

2022-01-07 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +eric.smith type: -> behavior ___ Python tracker <https://bugs.python.org/issue46290> ___ ___ Python-bugs-list mai

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-07 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ethan.furman title: One branch is not covered in `Enum._convert_` -> Enum tests: One branch is not covered in `Enum._convert_` ___ Python tracker <https://bugs.python.org/issu

[issue46242] Improve error message when attempting to extend an enum with `__call__`

2022-01-08 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> ethan.furman ___ Python tracker <https://bugs.python.org/issue46242> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46306] Suspicious operation in `doctest.py`: `None - 1`

2022-01-08 Thread Alex Waygood
Change by Alex Waygood : -- title: Suspicios operation in `doctest.py`: `None - 1` -> Suspicious operation in `doctest.py`: `None - 1` ___ Python tracker <https://bugs.python.org/issu

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
New submission from Alex Grönholm : PR #25309 (https://github.com/python/cpython/pull/25309) changed OpenSSL behavior so that it ignores unexpected EOFs by default. This was detected by the test suites of both trio and AnyIO when running on OpenSSL 3. We worked around the problem by

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: This is a security issue because it exposes users to TLS truncation attacks that weren't possible before because such attempts would raise SSLEOFError. -- ___ Python tracker <https://bugs.python.org/is

[issue46319] datetime.utcnow() should return a timezone aware datetime

2022-01-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +belopolsky, p-ganssle versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46319> ___ ___ Pytho

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: I hope the Fedora maintainers/packagers know this because on Rawhide, Python is being compiled against OpenSSL 3 (which is how we discovered the problem). F36 is due out in a little over 3 months. -- ___ Python

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: Good to see that this is being handled. I could try to write a patch to do what I suggested above, if you're willing to review it. -- ___ Python tracker <https://bugs.python.org/is

[issue43698] Use syntactically correct examples on abc package page

2022-01-09 Thread Alex Waygood
Change by Alex Waygood : -- stage: -> patch review type: compile error -> behavior ___ Python tracker <https://bugs.python.org/issue43698> ___ ___ Pyth

[issue46327] `test_enum` contains tests for older versions of python

2022-01-10 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> ethan.furman ___ Python tracker <https://bugs.python.org/issue46327> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-10 Thread Alex Grönholm
Alex Grönholm added the comment: I just noticed that Ubuntu 22.04 LTS also uses OpenSSL 3 with their Python builds. I hope somebody has told them too about the state of affairs. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46334] Glossary URLs with anchor link no longer jump to definitions

2022-01-10 Thread Alex Waygood
Alex Waygood added the comment: Reproduced on safari on my iPad, as well. -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46334> ___ ___

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46333> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46330] Simplify the signature of __exit__

2022-01-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46328] add sys.exception()

2022-01-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46328> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46244] typing._TypeVarLike missing __slots__

2022-01-11 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: performance -> behavior ___ Python tracker <https://bugs.python

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2022-01-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, lukasz.langa ___ Python tracker <https://bugs.python.org/issue41987> ___ ___ Python-bugs-list mailing list Unsub

[issue46342] Make @final introspectable at runtime

2022-01-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46342> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46309] Task created by StreamReaderProtocol gets garbage collected.

2022-01-11 Thread Alex Waygood
Alex Waygood added the comment: I'm removing 3.7 and 3.8 from the "versions" field, since those branches are old enough that they're now only accepting security-related patches. -- nosy: +AlexWaygood versions: -Python 3.7, Python 3.8 __

[issue46309] Task created by StreamReaderProtocol gets garbage collected.

2022-01-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker <https://bugs.python.org/issue46309> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46348] Modernize `test_typing`

2022-01-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, gvanrossum, kj title: Morernize `test_typing` -> Modernize `test_typing` type: -> behavior ___ Python tracker <https://bugs.python.org/i

[issue46348] Modernize `test_typing`

2022-01-11 Thread Alex Waygood
Alex Waygood added the comment: Heh, no worries! -- ___ Python tracker <https://bugs.python.org/issue46348> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46354] AttributeError: module 'collections' has no attribute 'Mapping'

2022-01-12 Thread Alex Waygood
New submission from Alex Waygood : Hi -- thanks for the report! You haven't given us many details here, but I think this is intentional behaviour, not a bug -- this was changed in Issue37324. Importing `Mapping` (along with many other names) directly from `collections`, instead of

[issue46342] Make @final introspectable at runtime

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46359] Continue to modernize `test_typing.py`

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue46359> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46358] Modernize `test_asyncio/test_base_events.py`

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue46358> ___ ___ Python-bugs-list mailing list Unsub

[issue46348] Modernize `test_typing`

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue46345> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46345] Add an explicit test for `get_type_hints` for a class field with `None` default

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- components: +Tests -Library (Lib) type: -> behavior ___ Python tracker <https://bugs.python.org/issue46345> ___ ___ Python-

[issue46341] duplicate paragraphs - asyncio Coroutines and Tasks file

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, yselivanov stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.org/issue46341> ___ __

[issue45331] Can create enum of ranges, cannot create range enum. Range should be subclassable... or EnumMeta.__new__ should be smarter.

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- components: +Documentation -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46307] string.Template should allow inspection of identifiers

2022-01-12 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46363] Two typos in verions 3.7 document translation of zh_CN

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46363> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46363] Two typos in versions 3.7 document translation of zh_CN

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- title: Two typos in verions 3.7 document translation of zh_CN -> Two typos in versions 3.7 document translation of zh_CN ___ Python tracker <https://bugs.python.org/issu

[issue46279] [docs] Minor information-ordering issue in __main__ doc

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46279> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46358] Modernize `test_asyncio/test_base_events.py`

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46369] get_type_hints does not evaluate ForwardRefs inside NewType

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker <https://bugs.python.org/issue46369> ___ ___ Python-bugs-list mailing list Unsub

[issue46371] A better way to resolve ForwardRefs in type aliases across modules

2022-01-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +sobolevn ___ Python tracker <https://bugs.python.org/issue46371> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46379] itertools.product reference implementation creates temporaries

2022-01-14 Thread Alex Waygood
Alex Waygood added the comment: (I'm removing 3.6 and 3.7 from the "versions" field, since those two branches are now only accepting patches if it relates to security.) -- nosy: +AlexWaygood, rhettinger versions: -Python

[issue46242] Improve error message when attempting to extend an enum with `__call__`

2022-01-14 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2022-01-15 Thread Alex Waygood
Alex Waygood added the comment: @terry, have you had a chance to glance at my PR at all? I'd really appreciate your review! :) -- ___ Python tracker <https://bugs.python.org/is

[issue46386] Improve `test_typing::test_immutability_by_copy_and_pickle`

2022-01-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue46386> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46387] `test_field_descriptor` in `test_collections` should test all pickle protocols

2022-01-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue46387> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46382> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <https://bugs.python.org/issue46396> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[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 <https://bugs.python.org/issue46399> ___ _

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

2022-01-17 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +hynek ___ Python tracker <https://bugs.python.org/issue46382> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-19 Thread Alex Waygood
Alex Waygood added the comment: I agree with Inada that not every internal type should be exposed, but I would make an exception for the dict views classes due to the fact that dict subclasses are much more common than subclasses of other mappings, such as OrderedDict. I don't think

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-01-19 Thread Alex Waygood
Alex Waygood added the comment: Wait... there's still PR 29479 open! But that can wait a little while -- getting PR 29335 over the line is definitely worth celebrating!! -- ___ Python tracker <https://bugs.python.org/is

[issue46437] Non-required `hasattr` checks in `test_typing`

2022-01-20 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2022-01-21 Thread Alex Waygood
Alex Waygood added the comment: I have also been persuaded that my suggested solution is not the way to go. Thanks everybody for the useful discussion. -- ___ Python tracker <https://bugs.python.org/issue46

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2022-01-22 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra ___ Python tracker <https://bugs.python.org/issue45524> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-22 Thread Alex Waygood
Alex Waygood added the comment: Thanks for the PRs, Kumar — I appreciate you putting in the time. Sorry for the wasted effort. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue46475] Document use of NoReturn as a bottom type

2022-01-22 Thread Alex Waygood
Alex Waygood added the comment: I also agree that documenting this is a great idea. It's already been adopted by large swathes of the typing community for use in this context. The value of having NoReturn act as a "bottom type" is evident. Time to make it official,

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-23 Thread Alex Waygood
Alex Waygood added the comment: It looks like __class_getitem__ was added to PurePath at @asvetlov's request in PR 17498. But, I'm also not quite sure why. The class is not generic in typeshed, so type-checkers will raise an error if you do PurePath[str], even if it is possible t

[issue38472] GCC detection in setup.py is broken

2022-01-23 Thread Alex Grund
Alex Grund added the comment: Yes this is still an issue. I'm trying to compile Python on an HPC system which uses modules (see e.g. LMod). Yes with LC_ALL=C it does write "gcc version 9.1.0 ..." -- status: pending -> open

[issue46494] Mention typing_extensions in the typing documentation

2022-01-23 Thread Alex Waygood
Alex Waygood added the comment: Sounds like a great idea. I like the idea of putting it in the "Relevant PEPs" section, as that section already details how the typing module has evolved over the past few major versions of Python. --

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-01-24 Thread Alex Waygood
Alex Waygood added the comment: > Sorry, I was too excited when PR 29335 merged and missed that. In the future, > please re-open if you feel I closed an issue wrongly. Thanks! No worries — will do! -- ___ Python tracker <https://bugs.p

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

[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 <https://bugs.python.org/issue45

[issue41370] PEP 585 and ForwardRef

2022-01-25 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue41370> ___ ___ 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 <https://bugs.python.org/issue41370> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-26 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: The quick research on web gived me that C/C++ developers will just get the build version and compare it with predefined list. See more there: https://docs.microsoft.com/answers/questions/672988/c-detect-windows-build.html ср, 26 янв. 2022 г., 05:05 Eryk Sun

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

2022-01-26 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: The quick research on web gived me that C/C++ developers will just get the build version and compare it with predefined list. See more there: https://docs.microsoft.com/answers/questions/672988/c-detect-windows-build.html

[issue46534] Implementing PEP 673 (Self type)

2022-01-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker <https://bugs.python.org/issue46534> ___ ___ Python-bugs-list mailing list Unsub

[issue46539] typing: forward references don't understand special type forms

2022-01-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker <https://bugs.python.org/issue46539> ___ ___ Python-bugs-list mailing list Unsub

[issue46552] typing: get_type_hints can't handle stringified annotations with leading spaces

2022-01-27 Thread Alex Waygood
Alex Waygood added the comment: I agree with Jelle and Guido -- ___ Python tracker <https://bugs.python.org/issue46552> ___ ___ Python-bugs-list mailin

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue44791> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +sobolevn ___ Python tracker <https://bugs.python.org/issue44791> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46539] typing: forward references don't understand special type forms

2022-01-27 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46560] ParamSpec: Typo in doc string

2022-01-28 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/i

[issue46565] Multiple modules leak `for` loop variables into module's namespace

2022-01-28 Thread Alex Waygood
Alex Waygood added the comment: +1 for the proposed PR. Loop variables leaking into the global namespace creates an extra burden for typeshed when we have to wade through a long list of objects that our tests report are present at runtime but not in the typeshed stubs. It's not the e

[issue46565] Delete module-level loop variables when no longer needed

2022-01-29 Thread Alex Waygood
Alex Waygood added the comment: I agree that the typeshed issue is less important than the output of dir() and help(). I also agree that we shouldn't make a fetish of typing. However, I see the typeshed issue less as an issue specific to typing, and more as an example that illustra

[issue46569] final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__

2022-01-29 Thread Alex Waygood
Change by Alex Waygood : -- assignee: docs@python -> ethan.furman nosy: +ethan.furman stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.or

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-29 Thread Alex Waygood
Alex Waygood added the comment: ...Option 3). Deprecate @no_type_check? Maybe we should gather some stats on how many people are using @no_type_check? My feeling is that it's never achieved widespread adoption, so maybe it's just not that useful a thing to have in the stdlib. A

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj -miss-islington stage: patch review -> type: -> behavior ___ Python tracker <https://bugs.python.org/i

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: -29201 ___ Python tracker <https://bugs.python.org/issue46581> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- keywords: -patch ___ Python tracker <https://bugs.python.org/issue46581> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-30 Thread Alex Waygood
Alex Waygood added the comment: The desmper121 user appears to be a spammer; I am undoing all the changes they made to this BPO ticket. -- nosy: -barry, lys.nikolaou, pablogsal, r.david.murray, yselivanov type: -> behavior versions: -Python 3

[issue46571] Strange `@typing.no_type_check` behavior for class variables

2022-01-30 Thread Alex Waygood
Alex Waygood added the comment: I fully withdraw my suggestion of deprecating the decorator; it's evidently used more than I realised. I don't have any strong opinion on whether (1) or (2) would be a better solution. -- ___ Python track

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- assignee: docs@python -> ethan.furman nosy: +ethan.furman stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.or

[issue46589] Improve documentation for typing._GenericAlias

2022-01-30 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation keywords: +patch nosy: +Jelle Zijlstra, docs@python, gvanrossum, kj stage: -> patch review ___ Python tracker <https://bugs.python.org/i

[issue46592] Undocumented behavior in strptime for ISO week dates

2022-01-31 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +belopolsky, p-ganssle ___ Python tracker <https://bugs.python.org/issue46592> ___ ___ Python-bugs-list mailing list Unsub

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker <https://bugs.python.org/issue44796> ___ ___ Python-bugs-list mailing list Unsub

[issue46066] Remove keyword args syntax for TypedDict definition

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, Jelle Zijlstra, sobolevn ___ Python tracker <https://bugs.python.org/issue46066> ___ ___ Python-bugs-list mailin

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker <https://bugs.python.org/issue46433> ___ ___ Python-bugs-list mai

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: `enum.property` is new in Python 3.11, so this isn't an issue for 3.9 or 3.10. -- nosy: +AlexWaygood versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/is

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: :func:`~enum.property` means that the visible text on the webpage will be "property", but the link will be to enum.property rather than builtins.property. -- ___ Python tracker <https://bugs.python.o

[issue46586] In documentation contents enum.property erroneously links to built-in property

2022-02-04 Thread Alex Waygood
Alex Waygood added the comment: The ~ always only uses the final part of the name for the display text, e.g. `~collections.abc.Iterator` would have "Iterator" as the visible text on the website. -- ___ Python tracker <https://bu

[issue46637] Incorrect error message: "missing 1 required positional argument"

2022-02-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46637> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46665] IDLE Windows shortcuts by default

2022-02-07 Thread Alex Waygood
Alex Waygood added the comment: As a longtime Windows user, I also generally expect ctrl+Y to redo an action in most programs, FWIW. -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46

[issue46159] Segfault when using trace functions in 3.11a3

2022-02-07 Thread Alex Gaynor
Alex Gaynor added the comment: It seems to no longer be crashing with alpha5. Hopefully it's actually fixed and not merely having a more subtle failure mode. -- ___ Python tracker <https://bugs.python.org/is

<    1   2   3   4   5   6   7   8   9   10   >