Serhiy Storchaka added the comment:
What about mix-ins or abstract base classes?
class VecMixin:
def length(self):
return math.hypot(*self)
class Vec2D(NamedTuple, VecMixin):
x: float
y: float
class Vec3D(NamedTuple, VecMixin):
x: float
y: float
z: float
Serhiy Storchaka added the comment:
I concur with Eric. The existing documentation looks pretty clear to me. Any
exception can be raised explicitly, no need to repeat this.
And unittest.TestCase methods do not raise AssertionError. They raise
TestCase.failureException, which by default is
Change by Serhiy Storchaka :
--
nosy: -serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue40280>
___
___
Python-bugs-list mailing list
Unsub
Serhiy Storchaka added the comment:
New changeset 32bf3597922ac3f613989582afa2bff43bea8a2f by Matt Bogosian in
branch 'main':
bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061)
https://github.com/python/cpython/commit/32bf3597922ac3f613989582afa2bf
Change by Serhiy Storchaka :
--
pull_requests: +29898
pull_request: https://github.com/python/cpython/pull/31794
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
PR 31794 supports NODEV and checks for integer overflows.
--
___
Python tracker
<https://bugs.python.org/issue45767>
___
___
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
nosy_count: 8.0 -> 9.0
pull_requests: +29901
pull_request: https://github.com/python/cpython/pull/31800
___
Python tracker
<https://bugs.python.org/issu
New submission from Serhiy Storchaka :
There are two empty typing.Tuple. They have the same repr but are not equal.
>>> from typing import *
>>> t1 = Tuple[()]
>>> t2 = t1.copy_with(())
>>> t1
typing.Tuple[()]
>>> t2
typing.Tuple[()]
>>>
New submission from Serhiy Storchaka :
After adding experts for typing module, I get an error when try to submit
changes:
Error: property nosy: 'JelleZijlstra' is not a user.
I think there is a typo in the experts list.
--
messages: 414893
nosy: gvanrossum, kj, serhiy
Serhiy Storchaka added the comment:
Glad to see that this old inconsistency was fixed.
But seems that if we will add support for statx() we will need to set
AT_NO_AUTOMOUNT by default.
--
resolution: -> out of date
stage: patch review -> resolved
status: open -&g
Serhiy Storchaka added the comment:
New changeset b6a5d8590c4bfe4553d796b36af03bda8c0d5af5 by Serhiy Storchaka in
branch 'main':
bpo-44796: Unify TypeVar and ParamSpec substitution (GH-31143)
https://github.com/python/cpython/commit/b6a5d8590c4bfe4553d796b36af03b
Serhiy Storchaka added the comment:
New changeset 3bc801960655ea265599805eac24173164b511a6 by Matt Bogosian in
branch '3.10':
[3.10] bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061)
(GH-31821)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 5b1b9eacb92dd47d10793a8868246df6ea477ed6 by Serhiy Storchaka in
branch 'main':
bpo-43224: Implement substitution of unpacked TypeVarTuple (GH-31800)
https://github.com/python/cpython/commit/5b1b9eacb92dd47d10793a8868246d
Change by Serhiy Storchaka :
--
pull_requests: +29925
pull_request: https://github.com/python/cpython/pull/31828
___
Python tracker
<https://bugs.python.org/issue43
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +29934
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31836
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
If for repr(Tuple[()]), it is no longer needed.
--
___
Python tracker
<https://bugs.python.org/issue46981>
___
___
Python-bug
Serhiy Storchaka added the comment:
PR 31143 simplified some code without changing the common API:
Objects/genericaliasobject.c | 46
++
1 file changed, 14 insertions(+), 32 deletions(-)
Lib/_collections_abc.py | 63
New submission from Serhiy Storchaka :
In issue45979 E. Paine suggested to drop support of Tcl/Tk older than 8.5.12
(8.5.12 was released on 2012-07-27 and 8.6.0 on 2012-12-20). Tkinter tests
contain workarounds and special cases for older versions of Tcl/Tk, many of
them can be removed. Also
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +29938
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31839
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
nosy: +mark.dickinson
___
Python tracker
<https://bugs.python.org/issue37907>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Serhiy Storchaka :
--
components: +Tkinter
nosy: +christian.heimes, epaine, erlendaasland
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
It is a great idea. I have opened issue46996 for this.
--
___
Python tracker
<https://bugs.python.org/issue45979>
___
___
Change by Serhiy Storchaka :
--
pull_requests: +30029
pull_request: https://github.com/python/cpython/pull/31938
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset dbbe4d2d0075fa0e95b069fb4780d79aae3514c7 by Serhiy Storchaka in
branch 'main':
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
https://github.com/python/cpython/commit/dbbe4d2d0075fa0e95b069fb478
Serhiy Storchaka added the comment:
New changeset 15df8f8d89a0e563bdd15e4cd6734298736a5a1d by Serhiy Storchaka in
branch 'main':
bpo-46981: Remove typing._TypingEmpty (GH-31836)
https://github.com/python/cpython/commit/15df8f8d89a0e563bdd15e4cd67342
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
8.5.12 will be 10 years old at the time of releasing 3.11.
We can relax the requirements for 8.5.x, so the code can be build with older
versions, but some tests will fail because we removed workarounds for
differences in behavior in older versions from
New submission from Serhiy Storchaka :
Due to missed splitlines() in test_pydoc the HTML output was not tested
correctly. Instead of testing that the actual output contains every *line* from
the expected output it tested that the actual output contains every *character*
from the expected
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30048
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31959
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
dependencies: +Fix test_html_doc in test_pydoc
___
Python tracker
<https://bugs.python.org/issue40296>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
New changeset c2e3c06139e9468efb32629d147d99a1672d9e19 by Serhiy Storchaka in
branch 'main':
bpo-46996: Remove support of Tcl/Tk < 8.5.12 (GH-31839)
https://github.com/python/cpython/commit/c2e3c06139e9468efb32629d147
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
__slotnames__ is used for storing all slot names.
New object.__getstate__() proposed in issue26579 may have some relation to this
discussion.
--
nosy: +serhiy.storchaka
___
Python tracker
<ht
Serhiy Storchaka added the comment:
>
> It is not set automatically. It is set in object.__reduce__ by calling
> some helper function from the copyreg module.
--
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Sorry, the previous message was written via a phone because of blackout, so the
formatting is a tine bit messy.
__slotnames__ is set in copyreg._slotnames(). If you want to keep a list of all
slots you should save it in __slotnames__, either using copyreg
Serhiy Storchaka added the comment:
After PR 31839 has been merged you cannot build the _tkinter module with Tcl/Tk
older than 8.5.12. If you will still try to run IDLE on such incomplete build,
an import error during importing tkinter will be translated to IDLE error:
$ ./python -m idlelib
Change by Serhiy Storchaka :
--
pull_requests: +30051
pull_request: https://github.com/python/cpython/pull/31962
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
New changeset a5d246066b5352a7d72e70ec0acb643e7c0861fa by Serhiy Storchaka in
branch 'main':
bpo-47042: Fix testing the HTML output in test_pydoc (GH-31959)
https://github.com/python/cpython/commit/a5d246066b5352a7d72e70ec0acb64
Change by Serhiy Storchaka :
--
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue46996>
___
___
Python-bugs-list mailing list
Unsubscrib
Serhiy Storchaka added the comment:
New changeset cd44afc573e2e2de8d7e5a9119c347373066cd10 by Serhiy Storchaka in
branch 'main':
bpo-40296: Fix supporting generic aliases in pydoc (GH-30253)
https://github.com/python/cpython/commit/cd44afc573e2e2de8d7e5a9119c347
Serhiy Storchaka added the comment:
It is 3.11 only issue.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
pull_requests: +30066
pull_request: https://github.com/python/cpython/pull/31976
___
Python tracker
<https://bugs.python.org/issue40
Change by Serhiy Storchaka :
--
pull_requests: +30069
pull_request: https://github.com/python/cpython/pull/31979
___
Python tracker
<https://bugs.python.org/issue14
Serhiy Storchaka added the comment:
New changeset 4d2099f455229b10f88846dbe9fe6debbee55356 by Serhiy Storchaka in
branch '3.9':
[3.9] bpo-14156: Make argparse.FileType work correctly for binary file modes
when argument is '-' (GH-13165) (GH-31979)
https://github.com/p
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Neither of tokenize, ast or symtable modules support passing the source string
as argument. If add this feature in the dis module, we will need to add it in
all other modules with similar CLI. I do not think it is practical. You always
can pass the source
Serhiy Storchaka added the comment:
New changeset a5b7678a67ac99edd50822827b772e7d9afc8e64 by Serhiy Storchaka in
branch '3.10':
[3.10] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976)
https://github.com/python/cpython/commit/a5b7678a67ac99edd50822827b772e
Change by Serhiy Storchaka :
--
pull_requests: +30072
pull_request: https://github.com/python/cpython/pull/31982
___
Python tracker
<https://bugs.python.org/issue433
Serhiy Storchaka added the comment:
We cannot guarantee that NAN never equal to anything, because we can create an
object equal to it. For example mock.ANY.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue47
Change by Serhiy Storchaka :
--
nosy: +mrabarnett
priority: low -> normal
___
Python tracker
<https://bugs.python.org/issue433030>
___
___
Python-bugs-list mai
Serhiy Storchaka added the comment:
>>> import unicodedata
>>> unicodedata.lookup('KEYCAP NUMBER SIGN')
'#️'
>>> print(ascii(unicodedata.lookup('KEYCAP NUMBER SIGN')))
'#\ufe0f\u20e3'
Support of Unicode Named Character Sequen
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30079
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31988
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
This warning was introduced in 3.6. It is a time to convert it into an error.
RE error messages contain position.
But I understand that very few users will use 3.11 in nearest future, so I am
going to add a position to warning message and backport this
New submission from Serhiy Storchaka :
This warning was introduced in 3.6. The reason is that in most other regular
expression implementations global inline flags in the middle of the expression
have different semantic: they affect only the part of the expression after the
flag. But in
Serhiy Storchaka added the comment:
New changeset 4142961b9f5ad3bf93976a6a7162f8049e354018 by Serhiy Storchaka in
branch 'main':
bpo-39394: Improve warning message in the re module (GH-31988)
https://github.com/python/cpython/commit/4142961b9f5ad3bf93976a6a7162f8
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30084
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31994
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 92a6abf72e7a8274f96edbb5297119d4ff055be7 by Serhiy Storchaka in
branch 'main':
bpo-47066: Convert a warning about flags not at the start of the regular
expression into error (GH-31994)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset e207d721fcea01123f0e3edb83b6decdcb5e5e63 by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976)
(GH-31981)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 383a3bec74f0bf0c1b1bef9e0048db389c618452 by Serhiy Storchaka in
branch 'main':
bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)
https://github.com/python/cpython/commit/383a3bec74f0bf0c1b1bef9e0048db
Serhiy Storchaka added the comment:
I am for consistent behavior. If return GenericAlias(GenericAlias(tuple,
Unpack[Ts]), (int, str)) for tuple[*Ts][int, str], we should also return
GenericAlias(GenericAlias(list, T), int) for list[T][int], etc. And it will
cause multiple problems:
* A
Serhiy Storchaka added the comment:
I am surprised. I use Konsole too, and the TERM value and the infocmp output
are the same for me.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue47
Change by Serhiy Storchaka :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
pull_requests: +30095
pull_request: https://github.com/python/cpython/pull/32007
___
Python tracker
<https://bugs.python.org/issue28
Serhiy Storchaka added the comment:
I experimented with this a lot. There is a problem with the append mode. We can
read in the append mode, therefore we need an encoding. But when we close a
ZipFile after appending, non-ASCII file names will be encoded in UTF-8 in the
central directory
Serhiy Storchaka added the comment:
New changeset e730ae7effe4f13b24f1b5fb1fca005709c86acb by Kevin Mehall in
branch 'main':
bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974)
https://github.com/python/cpython/commit/e730ae7effe4f13b24f1b5fb1fca00
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30100
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/32012
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python
3.7
___
Python tracker
<https://bugs.python.org/issue23
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue47080>
___
___
Python-bugs-list mailing list
Unsub
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30109
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32021
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 08eb754d840696914928355014c2d424131f8835 by Serhiy Storchaka in
branch 'main':
bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012)
https://github.com/python/cpython/commit/08eb754d840696914928355014c2d4
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 345b390ed69f36681dbc41187bc8f49cd9135b54 by Serhiy Storchaka in
branch 'main':
bpo-433030: Add support of atomic grouping in regular expressions (GH-31982)
https://github.com/python/cpython/commit/345b390ed69f36681dbc41187bc8f4
New submission from Serhiy Storchaka :
In the Web you can find that two terms are used for repetition operators (+, *,
?, and variants): "quantifiers" and "qualifiers". "Quantifiers" is much more
common, it is used in Wikipedia and main on-line documentation r
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +30117
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32028
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
pull_requests: +30119
pull_request: https://github.com/python/cpython/pull/32030
___
Python tracker
<https://bugs.python.org/issue43
Change by Serhiy Storchaka :
--
pull_requests: +30120
pull_request: https://github.com/python/cpython/pull/32031
___
Python tracker
<https://bugs.python.org/issue43
Serhiy Storchaka added the comment:
The first case will be practically fixed by GH 32030 after chenging the grammar
to allow unpacking in index tuple: A[*B].
Two other cases will be fixed by GH 32031. It does not require any C code.
In the last case no error is raised because some error
Serhiy Storchaka added the comment:
> Alias = C[T, *Ts]
> Alias2 = Alias[*tuple[int, ...]]
> # Alias2 should be C[int, *tuple[int, ...]]
tuple[int, ...] includes also an empty tuple, and in this case there is no
value for T.
> Oh, also interesting - I didn't know abou
Serhiy Storchaka added the comment:
> 1. Some edge case seems to be that if *tuple[...] is involved on either side
> we will never simplify. Or perhaps a better rule is that *tuple[...] is never
> simplified away (but fixed items before and after it may be).
I do not understand thi
Serhiy Storchaka added the comment:
New changeset c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3 by Serhiy Storchaka in
branch 'main':
bpo-47081: Replace "qualifiers" with "quantifiers" in the re module
documentation (GH-32028)
https://gi
Serhiy Storchaka added the comment:
New changeset a25a985535ccbb7df8caddc0017550ff4eae5855 by Serhiy Storchaka in
branch 'main':
bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007)
https://github.com/python/cpython/commit/a25a985535ccbb7df8caddc0017550
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 492d4109f4d953c478cb48f17aa32adbb912623b by Serhiy Storchaka in
branch 'main':
bpo-42885: Optimize search for regular expressions starting with "\A" or "^"
(GH-32021)
https://gi
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Note that it is a FreeBSD-only issue. We need to test on FreeBSD (ulimit -n can
be used for this) to check whether it was fixed in issue45212.
--
status: pending -> open
___
Python tracker
<
Serhiy Storchaka added the comment:
New changeset 12c0012cf97d21bc637056983ede0eaf4c0d9c33 by Tomáš Hrnčiar in
branch 'main':
bpo-40465: Document random module changes in 3.11 What's new (#31818)
https://github.com/python/cpython/commit/12c0012cf97d21bc637056983
Change by Serhiy Storchaka :
--
nosy: +christian.heimes
___
Python tracker
<https://bugs.python.org/issue44493>
___
___
Python-bugs-list mailing list
Unsub
Serhiy Storchaka added the comment:
I am not the socket programming expert. It just happened that I fixed some bugs
here. But according to the manpage
https://man7.org/linux/man-pages/man7/unix.7.html the address length should
include the terminating NUL: offsetof(struct sockaddr_un
New submission from Serhiy Storchaka :
$ ./python -m test -vuall test_asyncio
...
==
FAIL: test_run_keeps_context (test.test_asyncio.test_runners.RunnerTests
New submission from Serhiy Storchaka :
$ ./python -X frozen_modules=off -m test -vuall test_tools -m
test_freeze_simple_script
...
==
ERROR: test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze
Serhiy Storchaka added the comment:
Are there any problems with converting a Path to string before adding it to
sys.path? You do this one time, and any users of sys.path will not need to
bother about conversion. It is better even for performance.
Otherwise we will need to revise and update
Serhiy Storchaka added the comment:
How would it work for bool or IntEnum?
--
nosy: +lemburg, mark.dickinson, stutzbach
___
Python tracker
<https://bugs.python.org/issue47
301 - 400 of 25874 matches
Mail list logo