Serhiy Storchaka added the comment:
New changeset ed146b52a3b6537689324e3bd9952055f9c6b43d by Serhiy Storchaka in
branch '3.8':
[3.8] bpo-37830: Fix compilation of break and continue in finally. (GH-15320)
(GH-15456)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
For forbidding 'break', 'continue' and 'return' in the 'finally' clause please
open a topic on Python-Dev.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
_
Serhiy Storchaka added the comment:
Section 3p is OS specific (Debian and derivatives). `man 3 times` works as well.
But the manpages-posix-dev is not installed by default, so changing this will
add a regression on Linux.
I thank that it would be better to add both references, times(2) and
Serhiy Storchaka added the comment:
How large is benefit from special casing exact floats?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
New changeset ce6a070414ed1e1374d1e6212bfbff61b6d5d755 by Serhiy Storchaka
(Zackery Spytz) in branch 'master':
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
https://github.com/python/cpython/commit/ce6a070414ed1e1374d1e6212bfbff
Serhiy Storchaka added the comment:
There are different optimizations on different levels (AST, bytecode
generation, peepholer), would be nice to control them separately. This means
that we should pass a bitset to the compiler.
--
___
Python
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15177
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15490
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Thank you Zackery for your contribution.
> where ".AssertionError" is a name-mangled free variable and is assigned once
> the module is executed.
But this still allows to overriding builtin AssertionError before importing a
module. A
Serhiy Storchaka added the comment:
Closed because several commenters found things to not like about it.
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset c3ea41e9bf100a5396b851488c3efe208e5e2179 by Serhiy Storchaka in
branch 'master':
bpo-36917: Add default implementation of ast.NodeVisitor.visit_Constant().
(GH-15490)
https://github.com/python/cpyt
New submission from Serhiy Storchaka :
There are several issues in ast.dump() with incompletely initialized node. Some
fields and attributes of AST nodes are optional, but creating an AST node
without them leads ast.dump() to fail or to produce incorrect result.
1. With annotate_fields=False
Serhiy Storchaka added the comment:
New changeset 522a394a72f107ca55701371529b5e4ed20c9fff by Serhiy Storchaka
(Miss Islington (bot)) in branch '3.8':
[3.8] bpo-36917: Add default implementation of
ast.NodeVisitor.visit_Constant(). (GH-15490) (GH-15509)
https://github.com/pyth
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15196
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15510
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
pull_requests: +15197
pull_request: https://github.com/python/cpython/pull/15511
___
Python tracker
<https://bugs.python.org/issue36
Serhiy Storchaka added the comment:
Guido's Time Machine strikes back.
>>> import gc
>>> def f(): pass
...
>>> gc.get_referents(f)
[", line 1>, {'__name__':
'__main__', '__doc__': None, '__package__': None,
Change by Serhiy Storchaka :
--
nosy: +pitrou
versions: +Python 3.9 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue32847>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
New changeset c2388622923c81b5f06b0c9a5ce821fc03c624b9 by Serhiy Storchaka in
branch '3.7':
bpo-36917: Backport basic test for ast.NodeVisitor. (GH-15511)
https://github.com/python/cpython/commit/c2388622923c81b5f06b0c9a5ce821
Serhiy Storchaka added the comment:
Thank you for your report and discussion Anthony.
Added the default implementation of visit_Constant which calls corresponding
visitor for old constant nodes. It emits a deprecation warning
(PendingDeprecationWarning in 3.8 and DeprecationWarning in 3.9
Change by Serhiy Storchaka :
--
versions: +Python 3.9 -Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue30076>
___
___
Pytho
Serhiy Storchaka added the comment:
This issue was closed 2.5 years ago. Would not be better to open a new issue
for new commits?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue27
Serhiy Storchaka added the comment:
Could you please provide any microbenchmarks that show the performance
improvement?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
Tests that fail on some platforms can be marked to skip in code.
For example:
@unittest.skipIf(sys.platform.startswith('aix'),
'bpo-29972: broken test on AIX')
def test_strcoll_with_diacritic(self):
Serhiy Storchaka added the comment:
I think using the timeit module is enough. For more precise benchmarking you
may need to use the pyperf module, but I think this is not a case.
For example, something like:
./python -m timeit -s "from pathlib import Path; p = Patch('...
New submission from Serhiy Storchaka :
__repr__() implementations of buffered and text streams try to include the
value of "name" and "mode" attributes in the result. But they silence too wide
range of exceptions (all subclasses of Exception) when try to get these values.
Change by Serhiy Storchaka :
--
nosy: +benjamin.peterson, stutzbach
___
Python tracker
<https://bugs.python.org/issue37960>
___
___
Python-bugs-list mailin
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15220
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15543
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
In Python 3.8+ I got:
Traceback (most recent call last):
File "/home/serhiy/py/cpython/issue37971.py", line 10, in
def foo():
File "/home/serhiy/py/cpython/issue37971.py", line 2, in printingdec
raise Exception()
Exception
Serhiy Storchaka added the comment:
New changeset b235a1b47394eedc5f8ea4cf214f56c4c6932e59 by Serhiy Storchaka in
branch 'master':
bpo-37960: Silence only necessary errors in repr() of buffered and text
streams. (GH-15543)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset e64f948e762a6b9fd02e2902ccf42438df6fcb61 by Serhiy Storchaka in
branch 'master':
bpo-37950: Fix ast.dump() when call with incompletely initialized node.
(GH-15510)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
pull_requests: +15258
pull_request: https://github.com/python/cpython/pull/15582
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
New changeset 122376df550b71dd3bec0513c7483cc1714212fa by Serhiy Storchaka
(Justin Blanchard) in branch 'master':
bpo-37372: Fix error unpickling datetime.time objects from Python 2 with
seconds>=24. (GH-14307)
https://github.com/python/c
Serhiy Storchaka added the comment:
New changeset 097eae5b9b4801d34bb900c01b5e6a80f028bc12 by Serhiy Storchaka in
branch '3.8':
[3.8] bpo-37950: Fix ast.dump() when call with incompletely initialized node.
(GH-15510) (GH-15582)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
The documentation changes should be backported.
And I think we need a change like PR 9254, but with raising a RuntimeError
instead of adding the value to the queue, to be applied in older versions.
It may be better to apply it even to the developed
Serhiy Storchaka added the comment:
Thank you for your contribution Justin!
--
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
versions: -Python 3.7
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
I am not even sure this is a bug.
--
nosy: +rhettinger, serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
It makes sense. If write decorators as explicit function calls:
decorated = (
deco1(
deco2(
original
)
)
)
The line number of decorator itself will be used for CALL_FUNCTION:
2 0 LOAD_NAME0
Serhiy Storchaka added the comment:
New changeset 4901fe274bc82b95dc89bcb3de8802a3dfedab32 by Serhiy Storchaka
(Rémi Lapeyre) in branch 'master':
bpo-37034: Display argument name on errors with keyword arguments with Argument
Clinic. (GH-13593)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
pull_requests: +15275
pull_request: https://github.com/python/cpython/pull/15599
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
New changeset 96631dcb11c2786f470d4586bf23ecca14361506 by Serhiy Storchaka in
branch '3.8':
[3.8] bpo-37034: Display argument name on errors with keyword arguments with
Argument Clinic. (GH-13593). (GH-15599)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
Thank you for your patch Joran. We now use GitHub, do you mind to create a pull
request?
You need to use 4-spaces indentation instead of tabs.
Would be nice if you have signed the PSF contributor agreement
https://www.python.org/psf/contrib/contrib-form
Serhiy Storchaka added the comment:
Thank you Rémi!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
Agree. This is an improvement of UX.
The initial code was added in 8572b4fedf7e6ee4cd350680d53cd0a21574b083.
Other option is to check ahead if the argument is an iterable.
if (!item->ob_type->tp_iter && !PySequence_Check(item)) {
Serhiy Storchaka added the comment:
I am fine with simplifying the code as Raymond suggested.
map() does not have anything special.
--
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
json.tool produces more readable representation. Your option is opposite to
this purpose.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue37
Change by Serhiy Storchaka :
--
pull_requests: +15283
pull_request: https://github.com/python/cpython/pull/15609
___
Python tracker
<https://bugs.python.org/issue15
Change by Serhiy Storchaka :
--
pull_requests: +15284
pull_request: https://github.com/python/cpython/pull/15610
___
Python tracker
<https://bugs.python.org/issue15
Serhiy Storchaka added the comment:
See more general issue issue15999.
--
___
Python tracker
<https://bugs.python.org/issue37980>
___
___
Python-bugs-list mailin
Serhiy Storchaka added the comment:
Thank you for your report, but this has been fixed in issue37830. Try 3.8.0b4!
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
superseder: -> continue and break in finally with return in try results wi
Serhiy Storchaka added the comment:
No modification of open() is needed. Just make your enum class a subclass of
str.
This idea does not look particularly attractive to me, but you can create a
package on PyPi with your OpenMode class and test how popular it will be.
--
nosy
Serhiy Storchaka added the comment:
There is no a bug.
"\\\"" is the same as r"\\" -- a 2-charackter string consisting of a backslash
character and a doublequote character. r"\\\"" is a different string, it
contains 3 backslash characte
Change by Serhiy Storchaka :
--
nosy: +mark.dickinson
___
Python tracker
<https://bugs.python.org/issue37986>
___
___
Python-bugs-list mailing list
Unsubscribe:
Serhiy Storchaka added the comment:
It should be against master or the the newest version in which the problem
exists. After merging this pull request the changes will be backported to older
versions.
3.6 and 3.5 are open for security fixes only.
--
nosy: +serhiy.storchaka
Change by Serhiy Storchaka :
--
pull_requests: +15289
pull_request: https://github.com/python/cpython/pull/15621
___
Python tracker
<https://bugs.python.org/issue15
Change by Serhiy Storchaka :
--
pull_requests: +15290
pull_request: https://github.com/python/cpython/pull/15622
___
Python tracker
<https://bugs.python.org/issue15
Change by Serhiy Storchaka :
--
pull_requests: +15293
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15625
___
Python tracker
<https://bugs.python.org/issu
New submission from Serhiy Storchaka :
There are still sites in the CPython code where all errors of failed attribute
lookup are silenced or overridden by other exception. This can hide such
exceptions like MemoryError, RecursionError or KeyboardInterrupt and lead to
incorrect result (as the
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15298
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15630
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Previous round of fixing such issues is issue32571.
--
___
Python tracker
<https://bugs.python.org/issue37994>
___
___
Pytho
New submission from Serhiy Storchaka :
ast.dump() is mainly useful for debugging purposes. Unfortunately the output is
too long and complex even for simple examples. It contains too much nested
calls and lists.
>>> import ast
>>> node = ast.parse('spam(eggs, &q
Serhiy Storchaka added the comment:
See also issue36287.
--
___
Python tracker
<https://bugs.python.org/issue37995>
___
___
Python-bugs-list mailing list
Unsub
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15299
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15631
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> inspect.getsource returns incorrect source for classes when
class definition is part of multiline strings
___
Py
Serhiy Storchaka added the comment:
This was optimized in 3.7. See issue27169 and issue30501.
--
nosy: +serhiy.storchaka
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bug
Change by Serhiy Storchaka :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue28964>
___
___
Python-bugs-list mailing list
Un
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
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 f02ea6225bc3b71bd5fe66224d199a6e3e23b14d by Serhiy Storchaka in
branch 'master':
bpo-36543: Remove old-deprecated ElementTree features. (GH-12707)
https://github.com/python/cpython/commit/f02ea6225bc3b71bd5fe66224d199a
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 41c57b335330ff48af098d47e379e0f9ba09d233 by Serhiy Storchaka in
branch 'master':
bpo-37994: Fix silencing all errors if an attribute lookup fails. (GH-15630)
https://github.com/python/cpython/commit/41c57b335330ff48af098d47e379e0
Change by Serhiy Storchaka :
--
pull_requests: +15303
pull_request: https://github.com/python/cpython/pull/15635
___
Python tracker
<https://bugs.python.org/issue37
Serhiy Storchaka added the comment:
New changeset eb8974616bc58f44b2a3c3e4ca2326894ae42c8f by Serhiy Storchaka in
branch 'master':
bpo-15999: Always pass bool instead of int to the expat parser. (GH-15622)
https://github.com/python/cpython/commit/eb8974616bc58f44b2a3c3e4ca2326
Serhiy Storchaka added the comment:
New changeset 5eca7f3f3836cc734dfe8dc5ec669f3b4e9333fe by Serhiy Storchaka in
branch 'master':
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)
https://github.com/python/cpython/commit/5eca7f3f3836cc734dfe8dc5ec669f
Serhiy Storchaka added the comment:
New changeset 1f21eaa15e8a0d2b0f78d0e3f2b9e5b458eb0a70 by Serhiy Storchaka in
branch 'master':
bpo-15999: Clean up of handling boolean arguments. (GH-15610)
https://github.com/python/cpython/commit/1f21eaa15e8a0d2b0f78d0e3f2b9e5
Serhiy Storchaka added the comment:
What is s?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue37998>
___
___
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:
New changeset 353053d9ad08fea0e205e6c008b8a4350c0188e6 by Serhiy Storchaka in
branch '3.8':
[3.8] bpo-37994: Fix silencing all errors if an attribute lookup fails.
(GH-15630) (GH-15635)
https://github.com/python/cpyt
New submission from Serhiy Storchaka :
Use only the __index__() method for implicit conversion to iteger, and not
__int__().
This converts deprecation warnings added in issue36048 into TypeError.
--
components: Interpreter Core
messages: 350947
nosy: serhiy.storchaka
priority: normal
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15304
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15636
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
You can use datetime.date.fromisocalendar(*b).
--
___
Python tracker
<https://bugs.python.org/issue24416>
___
___
Python-bug
New submission from Serhiy Storchaka :
Is it correct that strings, bytes objects, bytearrays, floats, fractions,
decimals can be coerced to an interpreter ID?
>>> import _xxsubinterpreters as interpreters
>>> id = interpreters.InterpreterID('10', force=True)
>
Change by Serhiy Storchaka :
--
title: Coercing strings and non-integer numbers to interpreter ID -> Coercing
strings and non-integer numbers to interpreter ID and channel ID
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +15319
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15652
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
PR 15652 fixes some bugs. But I am not sure that floats and strings (and
bytearrays, and fractions) should be accepted in constructors and several other
functions. Although there was a test for strings. What is a use case? Should
not an ID be an integer
Change by Serhiy Storchaka :
--
components: +Interpreter Core
type: -> behavior
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
These opcodes are always used with CALL_FUNCTION_EX (which can be used also
without any of them).
f(*a, *b, **c, **d)
1 0 LOAD_NAME0 (f)
2 LOAD_NAME1 (a)
4 LOAD_NAME2
Change by Serhiy Storchaka :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
This tracker is for bugs in CPython (the C implementation of Python). lxml is
not a part of the standard library. Please use a proper tracker for reporting a
bug in lxml.
--
nosy: +serhiy.storchaka
resolution: -> third party
stage: -> re
Serhiy Storchaka added the comment:
Indeed, there is a bug in Python. It can be reproduced without lxml:
$ ./python -c "raise SyntaxError('error', (b'file', 1, 2, 'text'))"
Traceback (most recent call last):
File ""
Serhiy Storchaka added the comment:
The fast method to check if the value is a power of two:
not value & (value - 1)
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/iss
Serhiy Storchaka added the comment:
New changeset 3ccdbc33385a849c60a268def578cb06b8d41be6 by Serhiy Storchaka
(Joannah Nanjekye) in branch 'master':
bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)
https://github.com/python/cpyt
New submission from Serhiy Storchaka :
AFAIK setting frame.f_trace *instead* of calling sys.settrace() does not work.
You need to call sys.settrace() to enable tracing.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python
3.2, Python 3.3, Python 3.4
___
Python tracke
501 - 600 of 25874 matches
Mail list logo