Serhiy Storchaka added the comment:
New changeset 704e2065f8b8021a4a6999470fb6ed3453f7679e by Serhiy Storchaka in
branch 'master':
bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880)
https://github.com/python/cpython/commit/704e2065f8b8021a4a6999470fb6ed
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
No.
First, it is impossible. nb_bool and PyObject_IsTrue() can return only three
value: 1 for true, 0 for false, and -1 for error. It is not possible to
represent NotImplemented without breaking all extensions.
Currently
if not a:
b
Serhiy Storchaka added the comment:
It was originally introduced in
https://github.com/ghaering/pysqlite/commit/780a76dcd8f4142b6ecbd423f52e0ccf067fc277.
I think that original column names should be returned when PARSE_COLNAMES is
not set.
Working on a PR.
--
assignee
Change by Serhiy Storchaka :
--
pull_requests: +18295
pull_request: https://github.com/python/cpython/pull/18942
___
Python tracker
<https://bugs.python.org/issue39
Serhiy Storchaka added the comment:
> How is -1 interpreted? Does it become a TypeError?
It is interpreted as error. It requires an exception be set. If you return -1
without setting an exception you will usually get a SystemError or crash. Oh,
and this may happen during executing ot
Serhiy Storchaka added the comment:
Do you have any benchmarks?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue39940>
___
___
Pytho
Serhiy Storchaka added the comment:
Sorry Raul, but I already have a PR written. It includes minor refactoring,
better error handling in the nearby code, improved tests, fixed documentation
and comments which incorrectly described the current behavior. It took time to
determine what parts
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue39943>
___
___
Python-bugs-list mailing list
Unsub
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +18303
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18952
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
It is a duplicate of issue16397.
--
nosy: +serhiy.storchaka
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> UserString doesn't combine nicely with strings
_
Change by Serhiy Storchaka :
--
pull_requests: +18305
pull_request: https://github.com/python/cpython/pull/18954
___
Python tracker
<https://bugs.python.org/issue38
Serhiy Storchaka added the comment:
You are right. Sorry.
--
stage: resolved -> patch review
superseder: UserString doesn't combine nicely with strings ->
___
Python tracker
<https://bugs.python.
Serhiy Storchaka added the comment:
New changeset ab9c72912178cfdb4d0637be036d78913b769154 by Serhiy Storchaka in
branch '3.8':
[3.8] bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is
called with invalid base. (GH-18863). (GH-18954)
https://github.com/pyth
Change by Serhiy Storchaka :
--
pull_requests: +18306
pull_request: https://github.com/python/cpython/pull/18955
___
Python tracker
<https://bugs.python.org/issue38
Serhiy Storchaka added the comment:
New changeset 6f4e7fcfca6923d0422b20fc8702240bd4e56ebd by Serhiy Storchaka in
branch '3.7':
[3.7] bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is
called with invalid base. (GH-18863). (GH-18955)
https://github.com/pyth
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
nosy: +alex, christian.heimes, dstufft, janssen
___
Python tracker
<https://bugs.python.org/issue39953>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
You can validate the input before using it.
if '_' in s: raise ValueError
or
if not re.fullmatch('[0-9]+', s): raise ValueError
Do you want to accept "۱۲۳۴" or " 12 "? If not then validate the
Serhiy Storchaka added the comment:
I though there are at least 3-4 use cases in the core and stdlib.
--
___
Python tracker
<https://bugs.python.org/issue39
Serhiy Storchaka added the comment:
I think we should distinguish minimal supported C standard for compiling
CPython itself and for compiling extensions. We can use all C99 features
supported by main compilers in the code of CPython, but C99 is not even
compatible with C++, and it may be
Serhiy Storchaka added the comment:
What is the problem with the current code?
--
___
Python tracker
<https://bugs.python.org/issue24916>
___
___
Python-bug
Serhiy Storchaka added the comment:
This is a large change. And making heaqq.merge a class looks unrelated to the
declared goal. I afraid it may add significant overhead.
Since this is an optimization, could you please provide any benchmarks which we
can use to check the performance boost
Serhiy Storchaka added the comment:
New changeset 57c781048915e45d15eaa348c51ec01b12cc170a by Hai Shi in branch
'master':
bpo-39585: Delete a pending comment in _warning.c (GH-18414)
https://github.com/python/cpython/commit/57c781048915e45d15eaa348c51ec01b12cc170a
-
Serhiy Storchaka added the comment:
The C code is equivalent to the Python code. No special handling is needed.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Serhiy Storchaka :
New changeset b81f40f0adae3b1d1e57f9a89940ba827b9ede70 by David CARLIER in
branch 'master':
bpo-39582: ossaudiodev module update helpers signature for ioctl calls.
(GH-18412)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
RFC 8297
RFC 8470
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue39509>
___
___
Python-bug
Serhiy Storchaka added the comment:
RFC8297
RFC8470
--
___
Python tracker
<https://bugs.python.org/issue39509>
___
___
Python-bugs-list mailing list
Unsub
Serhiy Storchaka added the comment:
RFC 8297: https://tools.ietf.org/html/rfc8297
RFC 8470: https://tools.ietf.org/html/rfc8470
--
___
Python tracker
<https://bugs.python.org/issue39
Change by Serhiy Storchaka :
--
Removed message: https://bugs.python.org/msg364165
___
Python tracker
<https://bugs.python.org/issue39509>
___
___
Python-bug
Change by Serhiy Storchaka :
--
Removed message: https://bugs.python.org/msg364166
___
Python tracker
<https://bugs.python.org/issue39509>
___
___
Python-bug
Serhiy Storchaka added the comment:
New changeset da52be47690da0d9f78d0dce9ee5c3e4dbef49e1 by Dong-hee Na in branch
'master':
bpo-39509: Update HTTP status code to follow IANA (GH-18294)
https://github.com/python/cpython/commit/da52be47690da0d9f78d0dce9ee5c3
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 6672c16b1d7f83789bf3a2016bd19edfd3568e71 by Taine Zhao in branch
'master':
bpo-39677: dis: rename the operand of MAKE_FUNCTION from `argc` to `flags` for
3.6+ (GC-18550)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
Sorry for the delay with review and thank you for your contribution.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.6
___
Python tracke
Serhiy Storchaka added the comment:
I am not sure that it fixes a real bug, I did not check it on different
platforms, but just for the case I backported it to 3.7 and 3.8.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.
Serhiy Storchaka added the comment:
In pickle.py the name of the first parameter is "s" (it was "str" in 2.7), not
"data". And in the module docstring it is "string". So we have two options:
1. Make the first parameter positional-only. This is not br
Change by Serhiy Storchaka :
--
type: -> enhancement
versions: +Python 3.9 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue39435>
___
___
Python-
Serhiy Storchaka added the comment:
Maybe just add the implementation of Python specific index directives in our
extensions Doc/tools/extensions?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue39
Serhiy Storchaka added the comment:
I cannot reproduce it anymore after cleaning and building from zero. Perhaps it
was a build artefact, vectorcallfunc was defined in Doc/c-api/typeobj.rst
before 9a13a388f202268dd7b771638adbec132449b98b.
Thank you for checking it Ashwin
Serhiy Storchaka added the comment:
Sorry, I did not notice that there is a C implementation in PR 18427. Changes
in the Python implementations are so larger that I though this is the goal of
the PR.
Often the most clear and efficient way to implement an iterator in Python is to
write a
Serhiy Storchaka added the comment:
New changeset 61ac612e78e4f2625977406fb6f366e0a644673a by Ross in branch
'master':
bpo-39507: Add HTTP status 418 "I'm a Teapot" (GH-18291)
https://github.com/python/cpython/commit/61ac612e78e4f2625977406fb6f366e0a
Change by Serhiy Storchaka :
--
components: +Library (Lib)
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> enhancement
versions: +Python 3.9
___
Python tracker
<https://bugs.python
Serhiy Storchaka added the comment:
New changeset 4ab362cec6dc68c798b3e354f687cf39e207b9a9 by Batuhan Taşkaya in
branch 'master':
bpo-39638: Keep ASDL signatures in the AST nodes (GH-18515)
https://github.com/python/cpython/commit/4ab362cec6dc68c798b3e354f687cf
Serhiy Storchaka added the comment:
Are there any algorithmic optimizations in the Python version or it was just
rewritten from a generator function to a class? If yes, how hard to keep the
functional design?
--
___
Python tracker
<ht
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Serhiy Storchaka :
Currently the compiler can set the line number to the instruction or keep it
unset (zero). Then, when create linenotab it adds entries only for set line
numbers. But in rare cases (docstring or the first instruction in the module,
definition of a
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +18388
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19037
___
Python tracker
<https://bugs.python.org/issu
New submission from Serhiy Storchaka :
AugLoad and AugStore are never exposed to the user. They are not generated by
the parser and the compiler does not accept it.
>>> from ast import *
>>> tree = Module(body=[AugAssign(target=Name(id='x', ctx=AugStore()),
>&g
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +18389
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19038
___
Python tracker
<https://bugs.python.org/issu
New submission from Serhiy Storchaka :
Currently ast.dump() in multiline mode (see issue37995) appends closing
parenthesis to the end of the line:
>>> import ast
>>> node = ast.parse('spam(eggs, "and cheese")')
>>> print(ast.dump(node, indent=3
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +18390
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19039
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset a45b695b9fcfbbb0a087222abc5c8d691a7d2770 by Zackery Spytz in
branch 'master':
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
https://github.com/python/cpython/commit/a45b695b9fcfbbb0a087222abc5c8d691a7d2770
-
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 is hard to find a builtin which could be easy and clearly implemented in
Python (it means no use of dunder methods). Maybe sorted()?
def sorted(iterable, /, *, key=None, reverse=False):
"""Emulate the built in sorted() function"
Serhiy Storchaka added the comment:
divmod() should be implemented via __divmod__ and __rdivmod__. And they should
be looked up on the type, not instance. There is no easy way to express it in
Python accurately. This would make the example too complex
Serhiy Storchaka added the comment:
pyc files are not executable files. If you can run it on your machine it means
that you have installed some loader hook which allow you to run files which are
not machine executable files and not shell scripts. It seems it is not
installed on your other
Serhiy Storchaka added the comment:
It is possible also to get rid of the ctx argument at all. The context may be
determined by the parent nodes. But it is larger and breaking change, so I'll
open a separate issue for it.
--
___
Python tr
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 61cb3d02b83e746e59bb1351a0865e3b8714b2d6 by Serhiy Storchaka in
branch 'master':
bpo-39987: Simplify setting lineno in the compiler. (GH-19037)
https://github.com/python/cpython/commit/61cb3d02b83e746e59bb1351a0865e
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
What is your use case Anthony?
--
___
Python tracker
<https://bugs.python.org/issue25024>
___
___
Python-bugs-list mailin
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
If you want the conditional cleanup, then TemporaryDirectory is obviously a
wrong tool. mkdtemp looks more appropriate.
If you remove directory in process of working with temporary directory, would
it help if you create a subdirectory in the temporary
Serhiy Storchaka added the comment:
New changeset 6b97598fb66a08d0f36e4d73bffea5c1b17740d4 by Serhiy Storchaka in
branch 'master':
bpo-39988: Remove ast.AugLoad and ast.AugStore node classes. (GH-19038)
https://github.com/python/cpython/commit/6b97598fb66a08d0f36e4d73bffea5
Serhiy Storchaka added the comment:
New changeset d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc by Shantanu in branch
'master':
bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)
https://github.com/python/cpython/commit/d469d666b874ae746ca9a17bbfc9db
Serhiy Storchaka added the comment:
New changeset 2fe815edd6778fb9deef8f8044848647659c2eb8 by Serhiy Storchaka in
branch 'master':
bpo-38373: Change list overallocating strategy. (GH-18952)
https://github.com/python/cpython/commit/2fe815edd6778fb9deef8f80448486
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
versions: +Python 3.9
___
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
New submission from Serhiy Storchaka :
The proposed PR fixes some issues related to recent changes in the AST node
classes.
1. Re-add removed classes Suite, Param, AugLoad and AugStore. They are not used
in Python 3, are not created by the parser and are not accepted by the
compiler. Param
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +18408
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19056
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Yes, and this what PR 19056 does. It is not difficult, and if we can avoid a
breakage, why not do this? We have kept all other deprecated classes, like Num
and ExtSlice. In 3.10 we can add runtime warnings, and remove them in some
future releases.
We
Serhiy Storchaka added the comment:
You got an anniversary issue!
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue4>
___
___
Serhiy Storchaka added the comment:
It is very inconvenient to use single-letter lowercase names for constants. It
contradicts PEP 8:
https://www.python.org/dev/peps/pep-0008/#constants
--
nosy: +serhiy.storchaka
___
Python tracker
<ht
Serhiy Storchaka added the comment:
They are.
--
___
Python tracker
<https://bugs.python.org/issue40016>
___
___
Python-bugs-list mailing list
Unsubscribe:
Serhiy Storchaka added the comment:
I do not see any issue except that you was careless when read the documentation.
--
___
Python tracker
<https://bugs.python.org/issue40
Serhiy Storchaka added the comment:
We cannot just remove functions from stable ABI. We can undocument them, remove
their declaration from header files, but we can't remove the implementation.
Just make them always failing.
--
nosy: +serhiy.stor
Serhiy Storchaka added the comment:
See for example _PyTrash_deposit_object.
--
___
Python tracker
<https://bugs.python.org/issue39998>
___
___
Python-bug
Serhiy Storchaka added the comment:
> Are there any open discussions or threads following the proposed “imath”
> module?
https://mail.python.org/archives/list/python-id...@python.org/message/YYJ5YJBJNCVXQWK5K3WSVNMPUSV56LOR/
Issue37132.
--
nosy: +serhiy.sto
Change by Serhiy Storchaka :
--
keywords: +easy
stage: -> needs patch
___
Python tracker
<https://bugs.python.org/issue40029>
___
___
Python-bugs-list mai
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue40029>
___
___
Python-bugs-list mailin
Serhiy Storchaka added the comment:
I apologize if I was rude. It's only because of my bad English. There were many
translation options for my words suggested by Google Translator and I obviously
picked up the wrong one.
Improving documentation is always a good thing. But I leave the
Serhiy Storchaka added the comment:
The problem is in ExceptionCatcher. It uses builtin function apply() which was
outdated even in Python 2.7 and was removed in Python 3 (instead of apply(func,
args) you can use func(*args)). So that code always failed, but all exceptions
were logged and
Change by Serhiy Storchaka :
--
pull_requests: +18461
pull_request: https://github.com/python/cpython/pull/19101
___
Python tracker
<https://bugs.python.org/issue24
Serhiy Storchaka added the comment:
We usually do not accept mass cosmetic changes. It messes the history and may
break pending PRs. It also consumes the time of core developers for review and
has a risk of introducing bugs.
--
nosy: +serhiy.storchaka
resolution: -> rejected
st
Serhiy Storchaka added the comment:
> Regardless, how can we best move forward with this idea?
Provide a pull request.
--
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
New changeset 684d2b9a071fa8e54749e0eec3c16aafcd642ed4 by Serhiy Storchaka in
branch 'master':
bpo-24916: Remove an outdated comment. (GH-19101)
https://github.com/python/cpython/commit/684d2b9a071fa8e54749e0eec3c16a
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:
New changeset b146568dfcbcd7409c724f8917e4f77433dd56e4 by Serhiy Storchaka in
branch 'master':
bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set.
(GH-18942)
https://github.com/p
Change by Serhiy Storchaka :
--
pull_requests: +18464
pull_request: https://github.com/python/cpython/pull/19104
___
Python tracker
<https://bugs.python.org/issue39
Serhiy Storchaka added the comment:
New changeset 39680fb7043e555469e08d3c4f49073acca77b20 by Serhiy Storchaka in
branch '3.7':
[3.7] bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is
set. (GH-18942). (GH-19104)
https://github.com/p
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
pull_requests: +18469
pull_request: https://github.com/python/cpython/pull/19108
___
Python tracker
<https://bugs.python.org/issue36
Serhiy Storchaka added the comment:
Fixed by issue39822. e.attrib = 1 now raises a TypeError.
--
resolution: -> out of date
stage: needs patch -> resolved
status: open -> closed
versions: -Python 2.7, Python 3.7, Python 3.8
___
Pytho
Serhiy Storchaka added the comment:
posix_putenv_garbage no longer used on Windows.
--
resolution: -> fixed
stage: patch review -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.o
Serhiy Storchaka added the comment:
New changeset b33e52511a59c6da7132c226b7f7489b092a33eb by Serhiy Storchaka in
branch 'master':
bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)
https://github.com/python/cpython/commit/b33e52511a59c6da7132c226b7f748
Serhiy Storchaka added the comment:
New changeset bace59d8b8e38f5c779ff6296ebdc0527f6db14a by Serhiy Storchaka in
branch 'master':
bpo-3: Improve compatibility of the ast module. (GH-19056)
https://github.com/python/cpython/commit/bace59d8b8e38f5c779ff6296ebdc0
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
2601 - 2700 of 25874 matches
Mail list logo