[issue46851] Document multiprocessing.set_forkserver_preload

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

[issue46873] inspect.getsource with some lambdas in decorators does not get the full source

2022-02-27 Thread Alex Waygood
Alex Waygood added the comment: I'm removing 3.7 and 3.8 from the "versions" field, since they're currently only accepting patches for security-related bugs. But thanks for testing on those versions as well — that's useful information! -- components: +Library

[issue46873] inspect.getsource with some lambdas in decorators does not get the full source

2022-02-27 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46873> ___ ___ Python-

[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2022-02-27 Thread Alex Waygood
Alex Waygood added the comment: Hi Vidhya — @slateny submitted a PR for this issue only two days ago (you can see that it's linked to this BPO issue in the "Pull Requests" field). I think it would be good to wait until that has been reviewed before doing any work on a possi

[issue38854] Decorator with paren tokens in arguments breaks inspect.getsource

2022-02-28 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +yselivanov versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue38854> ___ ___ Python-bug

[issue38854] Decorator with paren tokens in arguments breaks inspect.getsource

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

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Alex Waygood added the comment: Thanks for the report! I think this is a duplicate of Issue37082. -- nosy: +AlexWaygood resolution: -> duplicate stage: needs patch -> resolved status: open -> pending ___ Python tracker <https://bug

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Change by Alex Waygood : -- status: pending -> open superseder: -> Assignment expression symbol (walrus) not in built-in help() ___ Python tracker <https://bugs.python.org/i

[issue46876] Walrus operator not in help

2022-03-01 Thread Alex Waygood
Change by Alex Waygood : -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue46876> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46902] Typo hint message for from-imports?

2022-03-02 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +pablogsal versions: -Python 3.10 ___ Python tracker <https://bugs.python.org/issue46902> ___ ___ Python-bugs-list mailin

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra, gvanrossum, kj, sobolevn ___ Python tracker <https://bugs.python.org/issue43923> ___ ___ Python-bugs-list m

[issue19217] Calling assertEquals for moderately long list takes too long

2022-03-04 Thread Alex Waygood
Change by Alex Waygood : -- keywords: -easy ___ Python tracker <https://bugs.python.org/issue19217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-03-05 Thread Alex Waygood
Alex Waygood added the comment: The latest plan sounds good to me. I have some Thoughts on the proposed API, but it will be easier to express those as part of a PR review. Looking forward to seeing the PR! -- ___ Python tracker <ht

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-05 Thread Alex Waygood
Alex Waygood added the comment: I actually have quite a few use cases for this feature. It's true that type checkers don't (yet) support it, but that doesn't mean that it should be disallowed at runtime. In fact, allowing it at runtime will surely give type checkers room to

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-05 Thread Alex Waygood
Alex Waygood added the comment: > Is there an actual use case that broke? No, because this was never usable in the first place. But there are those who wish it were usable :) -- ___ Python tracker <https://bugs.python.org/issu

[issue44863] Allow TypedDict to inherit from Generics

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

[issue44863] Allow TypedDict to inherit from Generics

2022-03-05 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra, sobolevn ___ Python tracker <https://bugs.python.org/issue44863> ___ ___ Python-bugs-list mailing list Unsub

[issue46927] Improve error message for subscripting non-generic types

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

[issue46930] Iterating over cls.__dict__ in classmethod causes RuntimeError when printing __annotations__

2022-03-05 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue46930> ___ ___ Python-bugs-list mai

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-05 Thread Alex Waygood
Alex Waygood added the comment: Consider the typeshed stub for `concurrent.futures.DoneAndNotDoneFutures`. At runtime this is a `collections.namedtuple`, but in the stub, we need it to be generic to allow precise type inference. But we can't have a generic NamedTuple, so the st

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-05 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +graingert ___ Python tracker <https://bugs.python.org/issue43923> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-05 Thread Alex Waygood
Alex Waygood added the comment: I sense we'll have to agree to disagree on the usefulness of NamedTuples in the age of dataclasses :) For me, I find the simplicity of the underlying idea behind namedtuples — "tuples with some properties bolted on" — very attractive. Yes, stand

[issue46938] dataclass __post_init__ recursion

2022-03-06 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue46938> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-06 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +29830 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31712 ___ Python tracker <https://bugs.python.org/issu

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

2022-03-07 Thread Alex Waygood
Alex Waygood added the comment: Thanks so much to Ken, Łukasz, Jelle, Guido, and everybody else who helped review these PRs! -- ___ Python tracker <https://bugs.python.org/issue45

[issue46961] Caching/interning of small ints sometimes fails

2022-03-08 Thread Alex Waygood
Alex Waygood added the comment: I think this might be a duplicate of Issue46361? -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-09 Thread Alex Waygood
Alex Waygood added the comment: +1 for the more minimal changeset proposed in PR 31781. I've never felt a need for NamedTuple multiple inheritance other than with Generic, so wouldn't be opposed to restricting it only to Generic. --

[issue46967] Type union for except

2022-03-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, Jelle Zijlstra, gvanrossum, iritkatriel ___ Python tracker <https://bugs.python.org/issue46967> ___ ___ Python-bug

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-09 Thread Alex Waygood
Alex Waygood added the comment: I agree with Jelle — a valid protocol cannot inherit from a concrete type, and the whole point of NamedTuple is that it creates a tuple subclass (and tuple is obviously a concrete type). -- ___ Python tracker

[issue46677] TypedDict docs are incomplete

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

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

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

[issue43224] Add support for PEP 646

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

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

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

[issue46198] Duplicate and unused code in tests

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood nosy_count: 3.0 -> 4.0 pull_requests: +29902 pull_request: https://github.com/python/cpython/pull/31801 ___ Python tracker <https://bugs.python.org/issu

[issue46198] Duplicate and unused code in tests

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

[issue46982] Error in the experts list

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

[issue46961] Caching/interning of small ints sometimes fails

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

[issue47006] PEP 646: Decide on substitution behavior

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

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue47016> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

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

[issue47015] Update tests from asyncore to asyncio

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, giampaolo.rodola, josiahcarlson, stutzbach, yselivanov ___ Python tracker <https://bugs.python.org/issue47

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-16 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +30031 pull_request: https://github.com/python/cpython/pull/31941 ___ Python tracker <https://bugs.python.org/issue46

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
New submission from Alex Waygood : I have tried several times now to upgrade to Python 3.10.3 using the 64-bit installer for Windows at https://www.python.org/downloads/release/python-3103/. Each time, I encounter an error message stating that "The feature you are trying to use is

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: Attaching the log file from the installation. -- Added file: https://bugs.python.org/file50687/installer_log_file.txt ___ Python tracker <https://bugs.python.org/issue47

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: > Looks like you may have "cleaned up" your package cache at some point, which > means you can't uninstall the old version anymore. Not knowingly! > Try getting the 3.10.2 installer and running it directly.

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: Hmm, well if I try running the 3.10.2 installer, it now presents me with an error message saying that "a newer version of Python 3.10 is already installed". -- ___ Python tracker <https://bugs.python.o

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

2022-03-18 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: patch review -> backport needed versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/i

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

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- title: IDLE: Convert browswers to use ttk.Treeview -> IDLE: Convert browsers to use ttk.Treeview ___ Python tracker <https://bugs.python.org/issu

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

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue433030> ___ ___ Python-bugs-list mailin

[issue32927] Add typeshed documentation for unittest.TestCase._feedErrorsToResult and ._outcome

2022-03-20 Thread Alex Waygood
Alex Waygood added the comment: Typeshed maintainer here: I agree. Feel free to open an issue over at https://github.com/python/typeshed if this is still a problem! -- nosy: +AlexWaygood resolution: -> third party stage: -> resolved status: pending -&g

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +JelleZijlstra, gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue47067> ___ ___ Python-bugs-list mailin

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

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

[issue47073] Solution for recursion error when comparing dataclass objects

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue47073> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-23 Thread Alex Waygood
Alex Waygood added the comment: Thanks Guido for your insight, and Jelle/Łukasz for the reviews and backports! I'm on holiday right now, but when I'm back, I'll take a look at maybe proposing some minor revisions to PEP 484 as well, as

[issue47166] Dataclass transform should ignore TypeAlias variables

2022-03-31 Thread Alex Waygood
Alex Waygood added the comment: I think implementing this would add complexity to the code in dataclasses.py (though Eric's the expert!). For your use case, is it essential that the type alias declaration be inside the class scope? Would it be possible for you to simply have the

[issue47213] Incorrect location of caret in SyntaxError

2022-04-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +pablogsal title: arrow at wrong place -> Incorrect location of caret in SyntaxError type: enhancement -> behavior ___ Python tracker <https://bugs.python.org/i

[issue47097] Document PEP 646

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

[issue47097] Document PEP 646

2022-04-04 Thread Alex Waygood
Alex Waygood added the comment: (Feel free to reopen this issue if there's more to be done, Matthew!) -- ___ Python tracker <https://bugs.python.org/is

[issue47050] Cannot install Python 3.10.3 on Windows

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: (My solution for now has been to install python on my other laptop. Thanks for the help Steve!) -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue47212] Minor issues in reported Syntax errors

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

[issue46134] Confusing error message for AttributeError with dataclasses

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: Closing due to lack of response from OP. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47237] Inheritance from Protocol with property in dataclass makes them non-instantiatable

2022-04-06 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, JelleZijlstra, eric.smith, gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue47237> ___ ___ Pytho

[issue47250] New object.__getstate__() method introduced refleaks

2022-04-07 Thread Alex Waygood
Change by Alex Waygood : -- title: Add object.__getstate__() introduced refleaks -> New object.__getstate__() method introduced refleaks ___ Python tracker <https://bugs.python.org/issu

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-08 Thread Alex Waygood
Alex Waygood added the comment: Please try to make your messages more concise. -- ___ Python tracker <https://bugs.python.org/issue47234> ___ ___ Python-bug

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
New submission from Alex Waygood : In a Python dictionary, `.popitem()` returns (key, value) pairs from the dictionary in a LIFO order. `collections.OrderedDict` and `collections.Counter` both do the same. However, a class inheriting from `collections.abc.MutableMapping` (which includes, in

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, stutzbach ___ Python tracker <https://bugs.python.org/issue44750> ___ ___ Python-bugs-list mailing list Unsub

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Raymond -- that makes sense, and seems very fair. I still think a note somewhere in the documentation stating this might be helpful -- as a user, it wasn't what I was expecting. I would argue this is especially true for UserDict, a class whic

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-13 Thread Alex Waygood
Alex Waygood added the comment: +1 to this suggestion. I had a use case for this the other day. It currently feels like something of a discrepancy between ABCs and `typing.Property`, which can be seen as analogous in some ways to "an ABC for the static type-checker". `typin

[issue44904] Erroneous behaviour for abstract class properties

2021-08-15 Thread Alex Waygood
Alex Waygood added the comment: This same bug (where classmethod properties are accidentally called by other parts of Python) is also present for non-abstract class properties, and has the side effect of causing doctest.py to crash with a fairly incomprehensible `AttributeError`: Script

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-16 Thread Alex Waygood
Alex Waygood added the comment: Tomasz -- as discussed in the original BPO issue for `abstractmethod` implementations (https://bugs.python.org/issue1706989), this works as a workaround: ``` >>> from abc import ABCMeta >>> class AbstractAttribute: ... __isabstr

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-16 Thread Alex Waygood
Alex Waygood added the comment: ^And, that only works for class attributes, not instance attributes. -- ___ Python tracker <https://bugs.python.org/issue44

[issue45100] Teach help about typing.overload()

2021-09-05 Thread Alex Waygood
Alex Waygood added the comment: There is a similar issue with `functools.singledispatch` ``` >>> from functools import singledispatch >>> @singledispatch ... def flip(x: str) -> int: ... """Signature when given a string""" ... ret

[issue35712] Make NotImplemented unusable in boolean context

2021-09-20 Thread Alex Waygood
Alex Waygood added the comment: The following code now leads to a `DeprecationWarning`, but I am unclear why it should. ``` >>> from enum import Enum >>> >>> class CardColour(Enum): ... """Enumeration of the two colours in a pack of cards.&q

[issue35712] Make NotImplemented unusable in boolean context

2021-09-20 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Vedran. I read https://bugs.python.org/issue35712#msg349303 before adding my message, but am not quite clear why my snippet is the same situation. `next(filter((2).__eq__, 'text'))` surely returns 't' because `(2).__eq__('t&#x

[issue35712] Make NotImplemented unusable in boolean context

2021-09-20 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Serhiy, that makes sense. I'll consider raising this elsewhere, as you suggest. -- ___ Python tracker <https://bugs.python.org/is

[issue45282] isinstance(x, typing.Protocol-class) unexpectedly evaluates properties

2021-09-24 Thread Alex Waygood
Alex Waygood added the comment: Related: https://bugs.python.org/issue44904 -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-03 Thread Alex Waygood
Alex Waygood added the comment: See also: https://bugs.python.org/issue44904 -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-05 Thread Alex Waygood
New submission from Alex Waygood : `help()` appears confused about the module of `typing.Annotated`. If you call `help()` on a parameterised "instance" of `typing.Annotated`, it will claim that `Annotated` belongs to whatever module the annotated type is from. Additionally, `help(

[issue44904] Erroneous behaviour for abstract class properties

2021-10-09 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28838 ___ Python tracker <https://bugs.python.org/issu

[issue44904] Erroneous behaviour for abstract class properties

2021-10-09 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue44904> ___ ___ Python-bugs-list mailin

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +tim.peters title: Erroneous behaviour for abstract class properties -> Classmethod properties are erroneously "called" in multiple modules ___ Python tracker <https://bugs.pytho

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Alex Waygood added the comment: It actually appears as though there is no documented way to retrieve the metadata from an annotated alias. Is this intentional? The metadata is stored in a `__metadata__` attribute of a `typing._AnnotatedAlias` instance. But the `__metadata__` attribute is

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue45380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-11 Thread Alex Waygood
Alex Waygood added the comment: Some thoughts from me, as an unqualified but interested party: Like Randolph, I very much like having class properties in the language, and have used them in several projects since their introduction in 3.9. I find they're especially useful with

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

2021-10-12 Thread Alex Waygood
Change by Alex Waygood : -- title: Support syntax highlighting for .pyi stub files -> IDLE: Support syntax highlighting for .pyi stub files ___ Python tracker <https://bugs.python.org/issu

[issue45447] Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
New submission from Alex Waygood : IDLE currently does not do any syntax highlighting if you use it to open a .pyi stub file, even though everything in a .pyi file is a valid Python expression. It would be great if syntax highlighting for .pyi files could be supported. -- assignee

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

2021-10-12 Thread Alex Waygood
Alex Waygood added the comment: It looks like support for .py files is hardcoded into IDLE's source code in the following places: * browser.ModuleBrowserTreeItem.OnDoubleClick * browser.ModuleBrowserTreeItem.IsExpandable * browser.ModuleBrowserTreeItem.listchildren * editor.ispythons

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

2021-10-14 Thread Alex Waygood
Alex Waygood added the comment: Oh — I've already nearly finished a PR. Do you mind if I submit mine? Happy to make any changes you like, obviously. -- ___ Python tracker <https://bugs.python.org/is

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

2021-10-14 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27239 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28950 ___ Python tracker <https://bugs.python.org/issu

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

2021-10-14 Thread Alex Waygood
Alex Waygood added the comment: Have posted my PR. I've tested it manually and run the IDLE test suite on it with the `-u all` setting; it seems fine. The new tests I've written are a bit thin on the ground right now, though. I may need some guidance/help if more extensive tests

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

2021-10-16 Thread Alex Waygood
Alex Waygood added the comment: Shall I add the change to the mac file to my PR, or would it be better to leave it for a separate PR? (I'm not confident enough to make the changes to the Windows files.) -- ___ Python tracker &

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.11

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

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-17 Thread Alex Waygood
Alex Waygood added the comment: Happily, this bug appears to have been resolved in Python 3.10 due to the fact that a `classmethod` wrapping a function `F` will now have an `__annotations__` dict equal to `F`. In Python 3.9: ``` >>> x = lambda y: y >>> x.__annotations__

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-18 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27305 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29034 ___ Python tracker <https://bugs.python.org/issu

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Alex Waygood
Alex Waygood added the comment: I can't reproduce this on Python 3.8.3, 3.9.6, 3.10.0 or 3.11.0a1+. Which versions of Python have you tried this on? (I'm able to reproduce the `typing.TypedDict` bug on Python 3.8, since the fix was only backported to 3.9, but not this.) -

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Alex Waygood
Alex Waygood added the comment: Thanks @Sergei. With that alteration, I have reproduced this on Python 3.9, 3.10 and 3.11. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.10, Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue45524> ___ ___ Python-bugs-list m

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-20 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +27353 pull_request: https://github.com/python/cpython/pull/29087 ___ Python tracker <https://bugs.python.org/issue39

[issue45535] Enum's dir() does not contain inherited members

2021-10-21 Thread Alex Waygood
Alex Waygood added the comment: I had a go at writing a patch for `__dir__` that would include any methods an enum class had acquired through `int`/`str`/etc. mixins, while continuing to ignore enum dunders and sunders (as is currently the case). My patch also allows user-defined methods

[issue45535] Enum's dir() does not contain inherited members

2021-10-21 Thread Alex Waygood
Change by Alex Waygood : Added file: https://bugs.python.org/file50383/enum_dir_output_with_patch.txt ___ Python tracker <https://bugs.python.org/issue45535> ___ ___

<    1   2   3   4   5   >