[issue37830] continue and break in finally with return in try results with segfault

2019-08-24 Thread Serhiy Storchaka
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

[issue37830] continue and break in finally with return in try results with segfault

2019-08-24 Thread Serhiy Storchaka
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 _

[issue20806] os.times document points to wrong section of non-Linux manual

2019-08-25 Thread Serhiy Storchaka
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

[issue37942] Generate correct error check for PyFloat_AsDouble

2019-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How large is benefit from special casing exact floats? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue37

[issue34880] About the "assert" bytecode

2019-08-25 Thread Serhiy Storchaka
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

[issue2506] Add mechanism to disable optimizations

2019-08-25 Thread Serhiy Storchaka
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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-25 Thread Serhiy Storchaka
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

[issue34880] About the "assert" bytecode

2019-08-25 Thread Serhiy Storchaka
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

[issue30162] Add _PyTuple_Empty and make PyTuple_New(0) never failing

2019-08-25 Thread Serhiy Storchaka
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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-26 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-26 Thread Serhiy Storchaka
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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-26 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-26 Thread Serhiy Storchaka
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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15197 pull_request: https://github.com/python/cpython/pull/15511 ___ Python tracker <https://bugs.python.org/issue36

[issue37949] Create empty __annotations__ dictionaries lazily

2019-08-26 Thread Serhiy Storchaka
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,

[issue32847] Add DirectoryNotEmptyError subclass of OSError

2019-08-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +pitrou versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue32847> ___ ___ Python-bugs-list m

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-26 Thread Serhiy Storchaka
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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-08-26 Thread Serhiy Storchaka
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

[issue30076] Opcode names BUILD_MAP_UNPACK_WITH_CALL and BUILD_TUPLE_UNPACK_WITH_CALL are too long

2019-08-26 Thread Serhiy Storchaka
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

[issue27961] remove support for platforms without "long long"

2019-08-26 Thread Serhiy Storchaka
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

[issue37935] Improve performance of pathlib.scandir()

2019-08-26 Thread Serhiy Storchaka
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

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-08-26 Thread Serhiy Storchaka
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):

[issue37935] Improve performance of pathlib.scandir()

2019-08-27 Thread Serhiy Storchaka
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('...

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
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.

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson, stutzbach ___ Python tracker <https://bugs.python.org/issue37960> ___ ___ Python-bugs-list mailin

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
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

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2019-08-28 Thread Serhiy Storchaka
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

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-28 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-28 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15258 pull_request: https://github.com/python/cpython/pull/15582 ___ Python tracker <https://bugs.python.org/issue37

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-08-29 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-29 Thread Serhiy Storchaka
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

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-29 Thread Serhiy Storchaka
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

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-08-29 Thread Serhiy Storchaka
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

[issue37950] ast.dump() with incomplete node

2019-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker <https://bugs.python.or

[issue37976] zip() shadows TypeError raised in __iter__() of source iterable

2019-08-29 Thread Serhiy Storchaka
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

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2019-08-29 Thread Serhiy Storchaka
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

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-08-29 Thread Serhiy Storchaka
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

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15275 pull_request: https://github.com/python/cpython/pull/15599 ___ Python tracker <https://bugs.python.org/issue37

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-08-29 Thread Serhiy Storchaka
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

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2019-08-29 Thread Serhiy Storchaka
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

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Rémi! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37976] zip() shadows TypeError raised in __iter__() of source iterable

2019-08-29 Thread Serhiy Storchaka
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)) {

[issue37976] zip() shadows TypeError raised in __iter__() of source iterable

2019-08-29 Thread Serhiy Storchaka
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

[issue37982] Add a --minify argument to json.tool

2019-08-29 Thread Serhiy Storchaka
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

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15283 pull_request: https://github.com/python/cpython/pull/15609 ___ Python tracker <https://bugs.python.org/issue15

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15284 pull_request: https://github.com/python/cpython/pull/15610 ___ Python tracker <https://bugs.python.org/issue15

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See more general issue issue15999. -- ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bugs-list mailin

[issue37987] retrun collection item in for cycle with finally continue

2019-08-30 Thread Serhiy Storchaka
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

[issue37918] What about an enum for open() modes?

2019-08-30 Thread Serhiy Storchaka
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

[issue37944] Adjacent escape character in json.load()

2019-08-30 Thread Serhiy Storchaka
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

[issue37986] Improve perfomance of PyLong_FromDouble()

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker <https://bugs.python.org/issue37986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37985] WFERR_UNMARSHALLABLE breaks recursion limit

2019-08-30 Thread Serhiy Storchaka
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

[issue15999] Using new 'bool' format character

2019-08-30 Thread 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

[issue15999] Using new 'bool' format character

2019-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15290 pull_request: https://github.com/python/cpython/pull/15622 ___ Python tracker <https://bugs.python.org/issue15

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-30 Thread Serhiy Storchaka
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

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
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

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
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

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Previous round of fixing such issues is issue32571. -- ___ Python tracker <https://bugs.python.org/issue37994> ___ ___ Pytho

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
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

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue36287. -- ___ Python tracker <https://bugs.python.org/issue37995> ___ ___ Python-bugs-list mailing list Unsub

[issue37995] Multiline ast.dump()

2019-08-31 Thread Serhiy Storchaka
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

[issue15856] inspect.getsource(SomeClass) doesn't show @decorators

2019-08-31 Thread Serhiy Storchaka
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

[issue7682] Optimisation of if with constant expression

2019-08-31 Thread Serhiy Storchaka
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

[issue29477] Lambda with complex arguments is ctx STORE

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28964] AST literal_eval exceptions provide no information about line number

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue28964> ___ ___ Python-bugs-list mailing list Un

[issue36793] Do not define unneeded __str__ equal to __repr__

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36542] Allow to overwrite the signature for Python functions

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36254] Fix invalid uses of %d in format strings in C

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32805] Possible integer overflow when call PyDTrace_GC_DONE()

2019-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-09-01 Thread Serhiy Storchaka
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

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-09-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-09-01 Thread Serhiy Storchaka
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

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-09-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15303 pull_request: https://github.com/python/cpython/pull/15635 ___ Python tracker <https://bugs.python.org/issue37

[issue15999] Using new 'bool' format character

2019-09-01 Thread Serhiy Storchaka
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

[issue15999] Using new 'bool' format character

2019-09-01 Thread Serhiy Storchaka
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

[issue15999] Using new 'bool' format character

2019-09-01 Thread Serhiy Storchaka
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

[issue37998] re.sub(r'\\', r'\\\\', s) reporting MemoryError

2019-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is s? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue37998> ___ ___ Python-bugs-list mailin

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-09-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37994] Fix silencing all errors if an attribute lookup fails

2019-09-01 Thread Serhiy Storchaka
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

[issue37999] No longer use implicit convertion to int with loss

2019-09-01 Thread Serhiy Storchaka
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

[issue37999] No longer use implicit convertion to int with loss

2019-09-01 Thread Serhiy Storchaka
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

[issue38001] Unexpected behaviour of 'is' operator

2019-09-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue24416] Return a namedtuple from date.isocalendar()

2019-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use datetime.date.fromisocalendar(*b). -- ___ Python tracker <https://bugs.python.org/issue24416> ___ ___ Python-bug

[issue38005] Coercing strings and non-integer numbers to interpreter ID

2019-09-02 Thread Serhiy Storchaka
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) >

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-02 Thread Serhiy Storchaka
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

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-02 Thread Serhiy Storchaka
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

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-02 Thread Serhiy Storchaka
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

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core type: -> behavior versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue38016] Results with re.sub and re.replace is giving different results

2019-09-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30076] Opcode names BUILD_MAP_UNPACK_WITH_CALL and BUILD_TUPLE_UNPACK_WITH_CALL are too long

2019-09-03 Thread Serhiy Storchaka
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

[issue38024] adding or subtracting decimals

2019-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38042] Crash on double list(lxml.etree.iterparse(f))

2019-09-06 Thread Serhiy Storchaka
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

[issue38042] Crash on double list(lxml.etree.iterparse(f))

2019-09-06 Thread Serhiy Storchaka
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 ""

[issue38045] Flag instance creation is slow

2019-09-06 Thread Serhiy Storchaka
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

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread Serhiy Storchaka
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

[issue37937] Mention ``frame.f_trace`` in :func:`sys.settrace` docs.

2019-09-07 Thread Serhiy Storchaka
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.

[issue20806] os.times document points to wrong section of non-Linux manual

2019-09-07 Thread Serhiy Storchaka
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

<    1   2   3   4   5   6   7   8   9   10   >