Serhiy Storchaka added the comment:
New changeset 8c74713d0e349c27518080945d5f040dfd52a56e by andrei kulakov in
branch 'main':
bpo-42182: stdtypes doc - update and fix links to several dunder methods
(GH-27384)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a by Thomas Klausner in
branch 'main':
bpo-46000: Improve NetBSD curses compatibility (GH-29947)
https://github.com/python/cpython/commit/2fb797e93c6bbd44dfcbe23f63acfa
Serhiy Storchaka added the comment:
New changeset fb8aad16401e081a6a9059c7b428f7e8aae85d58 by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-45662: Fix the repr of InitVar with a type alias to the built-in
class (GH-29291) (GH-29924)
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 040f9f9c48f4e74e851d850275aa9e050a04d0c6 by Miss Islington (bot)
in branch '3.9':
bpo-46000: Improve NetBSD curses compatibility (GH-29947) (GH-30023)
https://github.com/python/cpython/commit/040f9f9c48f4e74e851d850275aa9e
Serhiy Storchaka added the comment:
Thank you Thomas for your contribution.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
dependencies: +functools' singledispatch does not support GenericAlias
___
Python tracker
<https://bugs.python.org/is
Change by Serhiy Storchaka :
--
dependencies: -functools' singledispatch does not support GenericAlias
___
Python tracker
<https://bugs.python.org/is
Change by Serhiy Storchaka :
--
assignee: -> serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46032>
___
___
Python-
Serhiy Storchaka added the comment:
The current implementation allows for the final character of the input to be a
newline. It does not allow double newlines. In the original example
echo -e '{"foo":1}\n{"bar":2}\n'
the echo command adds a newline to the
Serhiy Storchaka added the comment:
Resolved in issue10544.
--
nosy: +serhiy.storchaka
resolution: out of date -> duplicate
stage: test needed -> resolved
status: pending -> closed
superseder: -> yield expression inside generator expression
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +28275
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30050
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Yes, it is related to issue45665. It is a complicated case due to coincidence
of several circumstances.
1. isinstance(list[int], type) is True, while isinstance(typing.List[int],
type) is False. list[int] is considered a type in this check.
2. list[int
Change by Serhiy Storchaka :
--
dependencies: +functools' singledispatch does not support GenericAlias
___
Python tracker
<https://bugs.python.org/is
Change by Serhiy Storchaka :
--
keywords: +patch
nosy: +serhiy.storchaka
nosy_count: 6.0 -> 7.0
pull_requests: +28283
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30063
___
Python tracker
<https://bugs.p
Serhiy Storchaka added the comment:
This is due to use functools.wraps(). If __all__ is not defined all non-builtin
functions should have correct __module__ to be displayed by pydoc.
functools.wraps() assigns __module__, __name__, __qualname__, __doc__ and
__annotations__. __module__ should
Serhiy Storchaka added the comment:
It is still reproducible if increase the depth. In 3.8-3.10 it needs 329 nested
classes, in 3.11 -- 496.
Seems the limit is sys.getrecursionlimit()//k - 4, where k=4 in 3.7 and older,
k=3 in 3.8-3.10, and k=2 in 3.11. It is much better than was initially
Serhiy Storchaka added the comment:
Could you please show any microbenchmarking results?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
New changeset 7da90251ae80f5faac938b659675ff159d565537 by Alex Waygood in
branch '3.10':
bpo-45840: Improve cross-references in the data model documentation (GH-29633)
(GH-30077)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset e08c0d8eec528f1d7a282ee19bcadb9aae9ec123 by Serhiy Storchaka in
branch 'main':
bpo-27718: Fix help for the signal module (GH-30063)
https://github.com/python/cpython/commit/e08c0d8eec528f1d7a282ee19bcadb
Change by Serhiy Storchaka :
--
pull_requests: +28301
pull_request: https://github.com/python/cpython/pull/30080
___
Python tracker
<https://bugs.python.org/issue27
Serhiy Storchaka added the comment:
New changeset e55deaabd8de338138cf29aea6890996e794c997 by Serhiy Storchaka in
branch '3.10':
[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)
https://github.com/python/cpython/commit/e55deaabd8de338138cf29aea68909
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 2029c58097e49b5aedc152ab65958a9db35ebd1e by Alex Waygood in
branch '3.9':
[3.9] bpo-45840: Improve cross-references in the data model documentation
(GH-29633) (GH-30081)
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:
It ends, but it tooks several minutes to complete.
It is a limitation of the regular expression implementation in Python. Your
input contains a sequence of 588431 characters which match the pattern
[a-zA-Z0-9_.+-] not following by '@'. The en
Serhiy Storchaka added the comment:
The simplest example is:
re.search('a@', 'a'*10)
--
___
Python tracker
<https://bugs.python.org/issue46065>
___
Serhiy Storchaka added the comment:
Limit the number of repetitions. For example use "{1,100}" (or what is the
expected maximal length of email) instead of "+".
--
___
Python tracker
<https://bug
Serhiy Storchaka added the comment:
On other systems it opens a simple dialog window implemented in Tk. AFAIK it
does not support creating new directories. Ask Tk core developers for a new
feature.
--
resolution: -> third party
stage: -> resolved
status: open -&g
Serhiy Storchaka added the comment:
The code was completely rewritten in issue27240. No tests are needed.
--
resolution: -> fixed
stage: test needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Concur with Victor. It is fine to add a link to other discussion in a closed
issue, but an issue closed many years ago is not a good place for a new
discussion at all.
--
___
Python tracker
<ht
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
os.walk() has been implemented via os.scandir(), but by default it ignores
OSErrors raised by os.scandir(), DirEntry.is_dir() and DirEntry.is_symlink().
You can get errors raised by os.scandir() if specify the onerror argument, but
errors in
Serhiy Storchaka added the comment:
Since it is a REPL example, no print() is needed. In REPL any expression
statement prints the repr of its result. For example:
>>> for x in range(1, 5):
... f'{x}**2 = {x**2}'
...
'1**2 = 1'
'2**2 = 4'
Change by Serhiy Storchaka :
--
nosy: +eric.smith
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
I think the OP means that test details (test description, traceback, captured
output) are printed for ERROR and FAIL in TextTestResult.printErrors(). Other
possible results besides error and failure are success, skipped, expected
failure and unexpected
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +28356
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30138
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
There are no other details for unexpected successes, only test descriptions.
--
type: behavior -> enhancement
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
What do you mean they are required? All parameters of TestResult() are optional.
--
nosy: +ezio.melotti, michael.foord, rbcollins, serhiy.storchaka
status: pending -> open
___
Python tracker
<
Serhiy Storchaka added the comment:
Unless you tun tests in verbose mode you do not know which of tests was
unexpectedly successful. And even in the verbose mode it is not easy to find
that test in long output.
Yes, unexpected successes considered successes in earlier versions. See
Serhiy Storchaka added the comment:
See also issue22815.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue20165>
___
___
Python-bug
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Such change would break a lot of existing interfaces.
* addUnexpectedSuccess() has a single parameter. The change will add the second
parameter and will break subclasses of TestResult.
* addExpectedFailure() has two parameter. The change will add the third
New submission from Serhiy Storchaka :
$ ./python -OO -m test -vuall test_unittest
...
==
FAIL: testShortDescriptionWhitespaceTrimming
(unittest.test.test_case.Test_TestCase
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +28380
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30163
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 95a922b3bb3af247ec141d73fcdfbf68bb1d32a5 by Serhiy Storchaka in
branch 'main':
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
https://github.com/python/cpython/commit/95a922b3bb3af247ec141d73fcdfbf
Serhiy Storchaka added the comment:
PEP 8 is a guide for writing new code. It does not require rewriting the old
code. In fact, patches with mass reformatting of the stdlib code have always
been rejected.
--
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> re
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Thank you. I knew about this issue but forgot to fix it.
I think it is also needed in _log.py. Not sure about mock.py.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
It is because PyFloat_Check() and PyComplex_Check() are rarely used in
comparison with checks for integers, strings, etc. The flags space is limited,
so it is better to use it for something more important.
There were reasons for not adding such flags at
Serhiy Storchaka added the comment:
These parameters were added in d99ef9a9df093d3443996725cd9dcac5f113f176, but
they were not tested nor documented. An indirect test was added later in
issue12376.
If it is an official feature it needs documentation and tests. Otherwise we can
remove these
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
nosy_count: 5.0 -> 6.0
pull_requests: +28433
pull_request: https://github.com/python/cpython/pull/30212
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 6ca78affc8023bc5023189d64d8050857662042a by Serhiy Storchaka in
branch 'main':
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212)
https://github.com/python/cpython/commit/6ca78affc8023bc5023189d64d8050
Serhiy Storchaka added the comment:
factorial(49) has 163 significant binary digits. It cannot be represented in
floating-point without losses. And C functions log2() and exp2() can add
additional errors, depending on platform. We rely on the assumption that all
errors will be compensated
Serhiy Storchaka added the comment:
New changeset 95948169d75bed3936284ea2225e83e07ec5fe20 by Miss Islington (bot)
in branch '3.10':
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)
https://github.com/python/cpython/commit/95948169d75bed3936284ea2225e83
Serhiy Storchaka added the comment:
It cannot work this way.
atexit.register() as a function allows you to specify arguments which will be
passed to the registered function, but if it is used as a decorator, only one
argument (the function itself) is passed to atexit.register() (it is how
Serhiy Storchaka added the comment:
long long is at least 64 bit, so we can safely use PyLong_FromLongLong() for
int64_t.
--
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
New changeset 31ff96712e8f89ac1056c2da880b44650002219f by David Hewitt in
branch 'main':
bpo-46140: take more Py_buffer arguments as const * (GH-30217)
https://github.com/python/cpython/commit/31ff96712e8f89ac1056c2da880b44650002219f
-
Serhiy Storchaka added the comment:
Thank you for your contribution David.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
There are other similar errors:
Doc/library/json.rst:162: will result in an :exc:`RecursionError` (or worse).
Doc/library/json.rst:435: prevent an infinite recursion (which would cause an
:exc:`RecursionError`).
Doc/library/tarfile.rst:66
Serhiy Storchaka added the comment:
Doc/using/cmdline.rst:474: * ``-X warn_default_encoding`` issues a
:class:`EncodingWarning` when the
Doc/c-api/init_config.rst:601: If non-zero, emit a :exc:`EncodingWarning`
warning when :class:`io.TextIOWrapper`
Doc/library/fractions.rst:90
Serhiy Storchaka added the comment:
Thank you Kumar.
These errors were found with the following one-liners:
$ find -name '*.rst' -exec egrep --color -i '\ban
+:[a-z:]+:`[qwrtpsdfghjklzxcvbnm]' '{}' +
$ find -name '*.rst' -exec egrep --color -i '
Serhiy Storchaka added the comment:
And more errors can be found with:
$ find -name '*.rst' -exec egrep --color -i '\ban +[qwrtpsdfghjklzxcvbnm]' '{}'
+
$ find -name '*.rst' -exec egrep --color -i '\ba +[eioa]' '{}' +
It is worth
Change by Serhiy Storchaka :
--
versions: +Python 3.10, Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46157>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
PR 30237 introduced few new errors.
--
___
Python tracker
<https://bugs.python.org/issue46157>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
It does not need any change in parser, it can be done in the code generator
which currently explicitly warns about such ambiguity.
Although it needs changes in formal grammar which will be more complex.
But what is a benefit? What is an advantage of
Serhiy Storchaka added the comment:
Does it mean that property[GetType, SetType] will be required and MyPy will
complain if the raw property decorator be used?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
For very long expression or very long message you can add parentheses around
the expression or message. Black will format it as:
assert (
very very long
expression
), (
"very very long "
"message"
)
With the propose
Serhiy Storchaka added the comment:
New changeset 393ff040281db818f2d6e0240919316f58f989a6 by Miss Islington (bot)
in branch '3.9':
bpo-45878: convert `try/except` to `self.assertRaises` in
`Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29723)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset a9e0b2b49374df91c40fe409508cfcdc6332450e by Miss Islington (bot)
in branch '3.10':
bpo-45878: convert `try/except` to `self.assertRaises` in
`Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29748)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
Not worth the hassle.
--
___
Python tracker
<https://bugs.python.org/issue45865>
___
___
Python-bugs-list mailing list
Unsub
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46175>
___
___
Python-bugs-list mailing list
Unsub
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +28474
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30253
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 078abb676cf759b1e960f78390b6e80f256f0255 by Serhiy Storchaka in
branch 'main':
bpo-46032: Check types in singledispatch's register() at declaration time
(GH-30050)
https://github.com/python
Change by Serhiy Storchaka :
--
pull_requests: +28475
pull_request: https://github.com/python/cpython/pull/30254
___
Python tracker
<https://bugs.python.org/issue46
Serhiy Storchaka added the comment:
New changeset 03c7449fbc7c57f5e0365f234a0b65c1dde763f2 by Serhiy Storchaka in
branch '3.10':
[3.10] bpo-46032: Check types in singledispatch's register() at declaration
time (GH-30050) (GH-30254)
https://github.com/python
Change by Serhiy Storchaka :
--
pull_requests: +28479
pull_request: https://github.com/python/cpython/pull/30258
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
pull_requests: +28480
pull_request: https://github.com/python/cpython/pull/30259
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset 11909c12c75a7f377460561abc97707a4006fc07 by Serhiy Storchaka in
branch '3.10':
[3.10] Remove a NEWS entry for bpo-45878 (GH-30258)
https://github.com/python/cpython/commit/11909c12c75a7f377460561abc9770
Serhiy Storchaka added the comment:
New changeset 1fb7c61ca76c6fbff4d90b272e34e92bc2c7d729 by Serhiy Storchaka in
branch 'main':
Remove a NEWS entry for bpo-45878 (GH-30259)
https://github.com/python/cpython/commit/1fb7c61ca76c6fbff4d90b272e34e9
Serhiy Storchaka added the comment:
New changeset a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc by Kumar Aditya in
branch 'main':
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
https://github.com/python/cpython/commit/a23ab7b6d8b3ae3a47747c0c4bceb2
Change by Serhiy Storchaka :
--
nosy: +eli.bendersky, scoder
___
Python tracker
<https://bugs.python.org/issue45321>
___
___
Python-bugs-list mailing list
Unsub
Serhiy Storchaka added the comment:
New changeset 1944434b44e0118e812bf63f47b268ff6dd0c8f1 by Serhiy Storchaka in
branch 'main':
bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138)
https://github.com/python/cpython/commit/1944434b44e0118e812bf63f47b268
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 bee660e46ae2a051400177dcd758d95b5b4a6fcc by Miss Islington (bot)
in branch '3.9':
[3.9] Remove a NEWS entry for bpo-45878 (GH-30258) (GH-30260)
https://github.com/python/cpython/commit/bee660e46ae2a051400177dcd758d9
Serhiy Storchaka added the comment:
New changeset ad4857884b4821fc2c9bd23b63d03f9570eb03d1 by Serhiy Storchaka in
branch 'main':
bpo-43413: Revert changes in set.__init__ (GH-28403)
https://github.com/python/cpython/commit/ad4857884b4821fc2c9bd23b63d03f
Serhiy Storchaka added the comment:
New changeset 2e3e0d23adca8d83722d939d6abd1e467d7578f7 by E-Paine in branch
'main':
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
https://github.com/python/cpython/commit/2e3e0d23adca8d83722d939d6abd1e
Serhiy Storchaka added the comment:
New changeset 07229054a129a72b4ffdf29252eb73c6154c0ccf by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
(GH-30265)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset 25a12aac4de819745dfc64664ba183a5784b5a81 by Miss Islington (bot)
in branch '3.9':
[3.9] bpo-46032: Check types in singledispatch's register() at declaration time
(GH-30050) (GH-30254) (GH-30255)
https://github.com/python
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue45496>
___
___
Pyth
Change by Serhiy Storchaka :
--
resolution: -> fixed
___
Python tracker
<https://bugs.python.org/issue45496>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Serhiy Storchaka :
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
I concur with Josh. super() uses a lot of magic, and in case of comprehensions
it fails in interesting way.
Most common cases in which super() does not work:
1. Outside of a function defined in a class.
2. In a static method.
3. In inner function.
4. In
Serhiy Storchaka added the comment:
Well, the tar command strips trailing slashes (even from file paths), so it is
reasonable to do this in getmember().
$ mkdir dir
$ touch dir/file
$ tar cf archive.tar dir
$ tar tf archive.tar dir
dir/
dir/file
$ tar tf archive.tar dir/
dir/
dir/file
$ tar
New submission from Serhiy Storchaka :
You can dispatch on collections.abc.Sequence.
@functools.singledispatch
def f(a: collections.abc.Sequence) -> None:
pass
But MyPy complains about this:
error: Missing type parameters for generic type "Sequence"
MyPy requires paramet
Serhiy Storchaka added the comment:
The original issue is about dispatching on non-parametrized generics like
typing.Sequence. isinstance([], typing.Sequence) works, so it could be possible
to support dispatching on typing.Sequence. But I have doubts that it is worth
to revive such feature
Serhiy Storchaka added the comment:
It was assigned to a variable initially because it was used in multiple places.
Now it is only used in one place, but I agree with keeping the variable for
readability.
But it should be named _IGNORED_ERRNOS
Serhiy Storchaka added the comment:
I do not think there is a problem in MyPy. What if use __origin__ for
dispatching? Registering with parametrized generics with the same __origin__
will be error.
@sigledispatch
def f(a: int) -> None:
pass
@f.register # ok
def _(a: list[int]) ->
1 - 100 of 25874 matches
Mail list logo