Alex Grönholm added the comment:
OpenSSL 1.1.1 also handled EOFs strictly, but this behavior was generally
suppressed in the ssl module through the default setting of
suppress_ragged_eofs=True (thus enabling truncation attacks by default). The PR
changes the behavior of existing applications
Change by Alex Waygood :
--
components: +Documentation
type: enhancement -> behavior
___
Python tracker
<https://bugs.python.org/issue46032>
___
___
Python-
Alex Waygood added the comment:
The PR looks good to me. I think it's also important that we document that
these types aren't supported, as it's not mentioned anywhere at the moment.
Related: Issue34498.
--
nosy: +uriyyo
___
Python tracker
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue46013>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
This is awesome! Should a note be added to the functools documentation
mentioning the new feature? (Genuine question — I'm not sure whether it's
necessary myself.)
--
___
Python tracker
<https://bugs.python.
Alex Waygood added the comment:
#46032 is related to this issue.
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45665>
___
___
Python-bug
Alex Waygood added the comment:
The above traceback is because the `isinstance(list[str], type)` check at
Lib/functools.py:848 evaluates to `True`. Related: #45665.
--
___
Python tracker
<https://bugs.python.org/issue46
Alex Waygood added the comment:
It would be well worth it to improve the error message, however:
```
>>> from functools import singledispatch
>>> @singledispatch
... def func(arg):
... raise NotImplementedError
...
>>> @func.register
... def _(arg: list[str])
Alex Waygood added the comment:
My opinion is that supporting `GenericAlias` here would be a bad idea.
Associating an implementation of the function with the argument type
`list[str]` is ambiguous. Would this implementation be called if any argument
of type `list` was supplied, or would
Alex Waygood added the comment:
Another option for code using Python <3.11, that will work without the `from
__future__ import annotations` import, is to do something like this:
```
from graphlib import TopologicalSorter
x: 'TopologicalSorter[str]' = TopologicalSorter({"a&
Change by Alex Waygood :
--
stage: patch review -> backport needed
___
Python tracker
<https://bugs.python.org/issue45840>
___
___
Python-bugs-list mai
Change by Alex Waygood :
--
nosy: +AlexWaygood, lukasz.langa, rhettinger
versions: -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue46
Change by Alex Waygood :
--
nosy: -AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45929>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Waygood added the comment:
I am changing the "version" field to 3.11, as enhancement proposals are
generally only considered for unreleased versions of Python.
--
nosy: +AlexWaygood, bob.ippolito, ezio.melotti, rhettinger
versions: +Python 3.11 -P
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45997>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
title: asyncio.Semaphore waiters deqeueu doesn't work -> asyncio.Semaphore
waiters deque doesn't work
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
See also #5996
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue37927>
___
___
Python-bugs-list mailin
Change by Alex Waygood :
--
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issue45987>
___
___
Python-bugs-list mailing list
Unsubscrib
Alex Waygood added the comment:
You can find the release schedule here, which says that 3.10.1 is expected...
tomorrow https://www.python.org/dev/peps/pep-0619/#id6
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45985>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45975>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45964>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue45962>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Waygood :
--
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issue45957>
___
___
Python-bugs-list mailing list
Unsubscrib
Alex Waygood added the comment:
To me, the fact that NamedTuple uses class attributes to provide field defaults
feels like an implementation detail that is only relevant to an unusual edge
case.
Where do you think the documentation should be improved, and what is your
suggested wording
Alex Waygood added the comment:
I agree that prohibiting zero-length NamedTuples seems like a bad idea, and
also agree that this probably doesn't need to be documented.
The behaviour here definitely looks weird at first glance, but it's probably
not a good idea to tamper with the __bool__
Change by Alex Waygood :
--
components: +Library (Lib)
nosy: +AlexWaygood, gvanrossum, kj
___
Python tracker
<https://bugs.python.org/issue45972>
___
___
Pytho
Change by Alex Waygood :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue45756>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue41768>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45959>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
...
...
>>&
New submission from Alex :
I wondering why there is no documentation for the synchronous module "wait_for":
site-packages/wait_for/__init__.py
It's just missing or there are some reason? I didn't see any deprecation info
about this module.
--
messages: 407516
nosy: Alex
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45451>
___
___
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: +colesbury
___
Python tracker
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
versions
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
Change by Alex Waygood :
--
type: crash -> behavior
versions: -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue45914>
___
___
Python-
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45903>
___
___
Python-bugs-list mailing list
Unsubscrib
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 :
--
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
Alex added the comment:
Thanks a lot Eric for your answers, I did not know about sys.displayhook.
Now I know I can easily implement this myself, but the larger question would
be: "do we want to update the default displayhook for those simple use
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: +asvetlov, yselivanov
type: -> behavior
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Willmer :
--
nosy: +Alex.Willmer
___
Python tracker
<https://bugs.python.org/issue44724>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex :
I often use to the Python REPL to perform some simple calculations (typically
some combinatorial or probabilities computation).
I believe it would be a nice improvement if the number displayed in the REPL
would be formatted as if f"{result:_}"
Change by Alex :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43399>
___
___
Python-bugs-list
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
Alex Gaynor added the comment:
I am someone who is interested in having this, but FWIW my motivation is
slightly more narrow, I only really need abi3-friendly buffer support with
contiguous 1d buffers. Not sure if there'd be interest in doing a smaller
version before figuring out the entire
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
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
Change by Alex Waygood :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue32658>
___
___
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: -> behavior
___
Python tracker
<https://bugs.python.org/issue32582>
___
___
Python-bugs-list mailing list
Unsubscrib
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
TypeErro
Alex Waygood added the comment:
Ref to discussion on typeshed: https://github.com/python/typeshed/pull/6343
--
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
nosy: +rhettinger, steven.daprano
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45852>
___
___
Python-
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
___
Python tracker
<https://bugs.python.org/issue45851>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
Change by Alex Waygood :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue45840>
___
___
Python-bugs-list mailing list
Unsubscrib
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__
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 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
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue41260>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
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 :
--
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
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
___
Python tracker
<https://bugs.python.org/issue43923>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
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
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 :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45759>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
title: Custom Name for ThreadPoolExecutor -> Add the ability to give custom
names to threads created by ThreadPoolExecutor
___
Python tracker
<https://bugs.python.org/issu
Alex Waygood added the comment:
^ I posted the wrong link for the example; it should have been:
https://mypy-play.net/?mypy=latest=3.10=show-error-codes%2Cstrict=6a26d31899f9803a823662261eae21df
--
___
Python tracker
<https://bugs.python.
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
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 with the `--strict
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:
Thanks for reviewing and merging, Łukasz -- appreciate it!
--
___
Python tracker
<https://bugs.python.org/issue45726>
___
___
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
Change by Alex Waygood :
--
nosy: +AlexWaygood
___
Python tracker
<https://bugs.python.org/issue45727>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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 intera
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:
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 :
--
pull_requests: +27664
pull_request: https://github.com/python/cpython/pull/29412
___
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
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 :
--
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
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 :
--
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: +27646
pull_request: https://github.com/python/cpython/pull/29388
___
Python tracker
<https://bugs.python.org/issue45
Change by Alex Waygood :
--
pull_requests: +27645
pull_request: https://github.com/python/cpython/pull/29387
___
Python tracker
<https://bugs.python.org/issue45
301 - 400 of 4145 matches
Mail list logo