Alex Waygood added the comment:
Would there be interest in me submitting a PR along these lines?
> why use mro() instead of __mro__?
Er, no reason, really. To be honest, I've never really understood why Python
has both.
--
__
Alex Waygood added the comment:
@Nikita, I had a go at writing some more rigorous tests regarding this issue. I
found the same thing you did -- the issue seems:
* Isolated to dataclasses specifically (doesn't occur with TypedDicts, standard
classes or NamedTuples)
* Isolated to the __i
Alex Waygood added the comment:
If you try running my test script with the `from __future__ import annotations`
line at the top commented out, however, the error is the same. (`from
__future__ import annotations` is obviously still there in the module that's
being imported by the
Change by Alex Waygood :
--
nosy: +gvanrossum, kj
___
Python tracker
<https://bugs.python.org/issue45524>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
@Sergei, I believe that's a much larger issue, and one that's quite difficult
to solve. It's one of the principal reasons why `from __future__ import
annotations` behaviour wasn't made the default in Python 3.10, as was
originally the p
Change by Alex Waygood :
--
type: -> enhancement
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue45586>
___
___
Python-
Alex Waygood added the comment:
Are you aware of the previously reported problems with `cached_property`?
https://bugs.python.org/issue43468
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45
New submission from Alex Waygood :
The list of relevant PEPs at the top of the typing docs has become too long to
be readable or helpful. It would be good if this information could be presented
in a more structured way.
--
assignee: docs@python
components: Documentation
messages
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27543
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29280
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
It would be difficult to define methods in Enum classes if functions in the
class namespace were automatically converted into members. You can get around
this by wrapping your functions in `functools.partial` objects; see
https://stackoverflow.com/questions
Change by Alex Waygood :
--
pull_requests: +27561
pull_request: https://github.com/python/cpython/pull/29297
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue45655>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
pull_requests: +27566
pull_request: https://github.com/python/cpython/pull/29302
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27566, 27567
pull_request: https://github.com/python/cpython/pull/29302
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27566, 27567, 27568
pull_request: https://github.com/python/cpython/pull/29302
___
Python tracker
<https://bugs.python.org/issue45
Alex Waygood added the comment:
Thanks, Łukasz and Ken, for reviewing and merging!
--
___
Python tracker
<https://bugs.python.org/issue45655>
___
___
Python-bug
Change by Alex Waygood :
--
pull_requests: +27579
pull_request: https://github.com/python/cpython/pull/29309
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +AlexWaygood
nosy_count: 5.0 -> 6.0
pull_requests: +27583
pull_request: https://github.com/python/cpython/pull/29308
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27585
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29316
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
I would argue it's quite important for `IntEnum` to have the dunder methods
inherited from `int` show up in `help()`. Dunder methods indicate that an
object has certain behaviours, so it's important for a user to be able to
verify that an `IntEnum`
Alex Waygood added the comment:
Bugfixes are only being applied for Python >=3.9, but I've reproduced this
output on 3.11
--
nosy: +AlexWaygood
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7
___
Python tracker
New submission from Alex Waygood :
`test_functools` includes a test to check that `functools.singledispatch`
correctly wraps the attributes of the target function. However, there is no
equivalent test for `functools.singledispatchmethod`. There should be, as this
is done separately in the
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27597
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29328
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
components: +Tests -Library (Lib)
___
Python tracker
<https://bugs.python.org/issue45678>
___
___
Python-bugs-list mailing list
Unsub
New submission from Alex Waygood :
The documentation on `GenericAlias` objects implies at multiple points that
only container classes can implement `__class_getitem__`, and goes into very
little detail about what it means for a non-container class to be parameterized.
--
assignee
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27603
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29335
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
This issue is related, but distinct, to previous issue
https://bugs.python.org/issue42280.
--
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45677>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex Waygood :
`functools.singledispatchmethod` is marked as being a generic class in
`typeshed`, but does not define `__class_getitem__`, so cannot be parameterized
at runtime.
cpython source code:
https://github.com/python/cpython/blob
Change by Alex Waygood :
--
versions: +Python 3.10, Python 3.11
___
Python tracker
<https://bugs.python.org/issue45359>
___
___
Python-bugs-list mailin
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27615
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29355
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
Hi! It's very hard to work out what the problem might be here if you don't show
us the code that caused the error. Also, this site is for reporting bugs in the
Python programming language itself, and this doesn't look like a bug in Python
to m
Alex Waygood added the comment:
Feature requests are only considered for Python versions that have not yet been
released, so only 3.11 should be listed in the "versions" for this ticket.
--
nosy: +AlexWaygood
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8,
Change by Alex Waygood :
--
nosy: -AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45689>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
The PR that proposes creating a new utility.py file is mine, linked to
https://bugs.python.org/issue45447. Would it make things easier if I split it
into two PRs: one adding an empty util.py file, and the other making my
proposed changes to support syntax
Change by Alex Waygood :
--
title: Documentation on `GenericAlias` objects could be improved ->
Documentation on `GenericAlias` objects and `__class_getitem__` could be
improved
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
pull_requests: +27645
pull_request: https://github.com/python/cpython/pull/29387
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27646
pull_request: https://github.com/python/cpython/pull/29388
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27647
pull_request: https://github.com/python/cpython/pull/29389
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27652
pull_request: https://github.com/python/cpython/pull/29394
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
components: +Library (Lib)
title: `functools.singledispatchmethod` is missing tests ->
`functools.singledispatchmethod` is missing tests (and is buggy in 3.9)
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
Backporting these tests to 3.9 revealed a bug in the 3.9 branch; PR 29394 is an
attempt at fixing this bug.
--
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
title: so it not allowed -> Typo in "control flow" documentation
type: -> behavior
___
Python tracker
<https://bugs.py
Change by Alex Waygood :
--
pull_requests: +27664
pull_request: https://github.com/python/cpython/pull/29412
___
Python tracker
<https://bugs.python.org/issue45
Alex Waygood added the comment:
Yet more tests were added to the 3.9 branch in PR 29394 in order to test the
bugfix. PR 29412 "forward-ports" these new tests into main (and 3.10, if they
are backported).
--
___
Python track
Change by Alex Waygood :
--
nosy: +AlexWaygood
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.org/issue42943>
___
___
Python-bug
Alex Waygood added the comment:
+1 for adding r"pip\s" as a special case as well. A few months ago, I was
trying to (remotely) help a beginner friend debug why his attempt to install a
library wasn't working. It took me ages before I realised he was entering it
into the i
New submission from Alex Waygood :
The documentation for `functools.singledispatch` and
`functools.singledispatchmethod` contains a few small grammar mistakes and
instances of slightly inelegant writing. PR to follow shortly.
--
assignee: docs@python
components: Documentation
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27679
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29426
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45727>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
nosy: +AlexWaygood, lukasz.langa, rhettinger
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue41
Alex Waygood added the comment:
Thanks for reviewing and merging, Łukasz -- appreciate it!
--
___
Python tracker
<https://bugs.python.org/issue45726>
___
___
Change by Alex Waygood :
--
title: "history and license" link has wrong target -> [doc] "history and
license" link has wrong target
___
Python tracker
<https://
Alex Waygood added the comment:
To clarify why this is an issue:
It's probably quite improbable that anybody would ever need to use
`singledispatchmethod` in a type annotation. But, if they do, they'll find
themselves in an impossible situation if they're using mypy wit
Alex Waygood added the comment:
@Éric: I personally found it difficult to immediately understand what the issue
was about when reading only the title on the BPO homepage, and thought the
change in title would help clarify, having seen other documentation issues
marked similarly on the
Alex Waygood added the comment:
^ I posted the wrong link for the example; it should have been:
https://mypy-play.net/?mypy=latest&python=3.10&flags=show-error-codes%2Cstrict&gist=6a26d31899f9803a823662261eae21df
--
___
Python tra
Change by Alex Waygood :
--
title: Custom Name for ThreadPoolExecutor -> Add the ability to give custom
names to threads created by ThreadPoolExecutor
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
pull_requests: +27730
pull_request: https://github.com/python/cpython/pull/29479
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
title: non-matching `elif`/`else` statements with uninformative errors ->
Improve error messages for non-matching `elif`/`else` statements
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
keywords: +patch
nosy: +AlexWaygood
nosy_count: 8.0 -> 9.0
pull_requests: +27759
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29508
___
Python tracker
<https://bugs.python.org/i
Alex Waygood added the comment:
Reproduced on 3.11.
--
nosy: +AlexWaygood, lukasz.langa, rhettinger
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue40
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue43923>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex Waygood :
The HOWTO for socket programming in Python
(https://docs.python.org/3/howto/sockets.html#non-blocking sockets) includes
the following lines (using triple-quotes here to indicate multiline quotes from
the docs):
"""
The major mechanical diff
Change by Alex Waygood :
--
nosy: +AlexWaygood
nosy_count: 7.0 -> 8.0
pull_requests: +27803
pull_request: https://github.com/python/cpython/pull/29555
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
title: Use the same function signature for datetime.time.strftime ->
datetime.time.strftime: use the same function signature for C and Python
implementations
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue41260>
___
___
Python-bugs-list mailing list
Unsub
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue41260>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex Waygood :
The following methods have parameters that are positional-only in the C
implementation of the `datetime` module, but positional-or-keyword in the
pure-Python implementation:
* tzinfo.tzname
* tzinfo.utcoffset
* tzinfo.dst
* tzinfo.fromutc
* date.fromordinal
Alex Waygood added the comment:
In addition to `date.strftime` and `time.strftime`, there is also a discrepancy
in `datetime.fromtimestamp`. In the C implementation, the first parameter is
called "timestamp"; in the pure-Python implementation, the first parameter is
New submission from Alex Waygood :
The documentation for the data model has a lot of cross-references to other
parts of the data model. However, often these cross-references do not have
proper hyperlinks online, as :meth:`__iter__` is used (for example), instead of
:meth:`~object.__iter__
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45840>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +27865
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29633
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
It seems to me that there are two ways of resolving this:
(1) Change the Python implementation to match the C implementation (make these
parameters positional-only in the Python implementation).
(2) Change the C implementation to match the Python
Alex Waygood added the comment:
It makes me sad that the stdlib will no longer provide a way to compose
classmethods with other descriptors. However, I agree that deprecating
classmethod chaining is probably the correct course of action, given the
complications this feature has caused, and
Change by Alex Waygood :
--
nosy: +rhettinger, steven.daprano
___
Python tracker
<https://bugs.python.org/issue45851>
___
___
Python-bugs-list mailing list
Unsub
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue42238>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
nosy: +rhettinger, steven.daprano
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45852>
___
___
Python-
Alex Waygood added the comment:
Ref to discussion on typeshed: https://github.com/python/typeshed/pull/6343
--
___
Python tracker
<https://bugs.python.org/issue45
Alex Waygood added the comment:
Reproduced on 3.11. The error occurs if a type is on the left-hand-side of the
operand, as well as if a type is on the right-hand-side:
```
>>> int | "str"
Traceback (most recent call last):
File "", line 1, in
TypeError: un
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue32582>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
type: -> performance
___
Python tracker
<https://bugs.python.org/issue45843>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue32658>
___
___
Python-bugs-list mailing list
Unsubscrib
Alex Waygood added the comment:
Arguably, either the implementation should be altered to support forward
references, or the documentation at
https://docs.python.org/3/library/stdtypes.html#union-type should be altered to
make clear that, when type-hinting a union that includes a forward
Alex Waygood added the comment:
Thanks, Ken! To clarify: I agree that changing the implementation here would
probably be a bad way to go: it would be foolish to try to replicate all the
functionality of the typing module as builtins. I also think the existing
documentation at https
Change by Alex Waygood :
--
versions: +Python 3.10, Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue45878>
___
___
Python-bugs-list m
Change by Alex Waygood :
--
nosy: +asvetlov, yselivanov
type: -> behavior
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
This looks to be due to the fact that `slots=True` leads to the creation of an
entirely new class (see line 1102), meaning that in the `super(cls, self)`
calls in lines 611 and 618 (in the `_frozen_get_del_attr` function, responsible
for generating
Change by Alex Waygood :
--
nosy: +AlexWaygood
nosy_count: 12.0 -> 13.0
pull_requests: +28022
pull_request: https://github.com/python/cpython/pull/29785
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
nosy: +Mark.Shannon, brett.cannon, rhettinger, serhiy.storchaka, tim.peters,
vstinner, yselivanov
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45903>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
type: crash -> behavior
versions: -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue45914>
___
___
Python-
Alex Waygood added the comment:
Similar discussion in a newer issue: https://bugs.python.org/issue45721
--
nosy: +AlexWaygood, pablogsal, steven.daprano, terry.reedy
___
Python tracker
<https://bugs.python.org/issue28
Alex Waygood added the comment:
I'm already attempting something similar over at
https://bugs.python.org/issue45840 (though that issue is for one specific piece
of documentation). See also my attached PR, and the comments on it :)
--
nosy: +AlexWaygood, eric.araujo
ver
Change by Alex Waygood :
--
nosy: +colesbury
___
Python tracker
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
This is arguably a duplicate of https://bugs.python.org/issue41122
--
nosy: +AlexWaygood, lukasz.langa, rhettinger
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45451>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
You get the same error if you subclass a frozen dataclass, then try to set an
attribute that is not one of the superclass's __slots__:
```
>>> @dataclass(slots=True, frozen=True)
... class Point:
... x: int
... y: int
...
...
>
Change by Alex Waygood :
--
keywords: +patch
pull_requests: +28119
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29895
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Waygood :
--
nosy: +gpolo, serhiy.storchaka
title: treeview -> Tkinter.ttk.Treeview does not clear after opening and
reopening another using same code block
___
Python tracker
<https://bugs.python.org/issu
301 - 400 of 420 matches
Mail list logo