[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka
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

[issue39916] More reliable use of scandir in Path.glob()

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

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Serhiy Storchaka
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

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
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

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18295 pull_request: https://github.com/python/cpython/pull/18942 ___ Python tracker <https://bugs.python.org/issue39

[issue35712] Make NotImplemented unusable in boolean context

2020-03-11 Thread Serhiy Storchaka
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

[issue39940] Micro-optimizations to PySequence_Tuple()

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you have any benchmarks? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39940> ___ ___ Pytho

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Serhiy Storchaka
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

[issue39943] Meta: Clean up various issues in C internals

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39943> ___ ___ Python-bugs-list mailing list Unsub

[issue38373] List overallocation strategy

2020-03-11 Thread Serhiy Storchaka
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

[issue39944] UserString.join should return UserString

2020-03-11 Thread Serhiy Storchaka
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 _

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18305 pull_request: https://github.com/python/cpython/pull/18954 ___ Python tracker <https://bugs.python.org/issue38

[issue39944] UserString.join should return UserString

2020-03-12 Thread Serhiy Storchaka
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.

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-12 Thread Serhiy Storchaka
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

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18306 pull_request: https://github.com/python/cpython/pull/18955 ___ Python tracker <https://bugs.python.org/issue38

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

2020-03-12 Thread Serhiy Storchaka
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

[issue38643] Assertion failures when calling PyNumber_ToBase() with an invalid base

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

[issue39953] Let's update ssl error codes

2020-03-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +alex, christian.heimes, dstufft, janssen ___ Python tracker <https://bugs.python.org/issue39953> ___ ___ Python-bugs-list m

[issue39956] Numeric Literals vs string "1_1" on input int() or float() or literal_eval

2020-03-13 Thread Serhiy Storchaka
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

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-03-14 Thread Serhiy Storchaka
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

[issue39615] cpython/abstract.h not compatible with C90

2020-03-14 Thread Serhiy Storchaka
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

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the problem with the current code? -- ___ Python tracker <https://bugs.python.org/issue24916> ___ ___ Python-bug

[issue38938] Possible performance improvement for heaqq.merge()

2020-03-14 Thread Serhiy Storchaka
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

[issue39585] Delete a pending item in _warning.c

2020-03-14 Thread Serhiy Storchaka
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 -

[issue39585] Delete a pending item in _warning.c

2020-03-14 Thread Serhiy Storchaka
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

[issue39582] ossaudiodev update helpers signature

2020-03-14 Thread Serhiy Storchaka
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

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: RFC 8297 RFC 8470 -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39509> ___ ___ Python-bug

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: RFC8297 RFC8470 -- ___ Python tracker <https://bugs.python.org/issue39509> ___ ___ Python-bugs-list mailing list Unsub

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
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

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg364165 ___ Python tracker <https://bugs.python.org/issue39509> ___ ___ Python-bug

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg364166 ___ Python tracker <https://bugs.python.org/issue39509> ___ ___ Python-bug

[issue39509] Update HTTP status code to follow IANA

2020-03-14 Thread Serhiy Storchaka
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

[issue39509] Update HTTP status code to follow IANA

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

[issue39677] 3.6+ documentation for MAKE_FUNCTION

2020-03-14 Thread Serhiy Storchaka
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

[issue39677] 3.6+ documentation for MAKE_FUNCTION

2020-03-14 Thread Serhiy Storchaka
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

[issue39582] ossaudiodev update helpers signature

2020-03-14 Thread Serhiy Storchaka
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.

[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-03-14 Thread Serhiy Storchaka
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

[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: -> enhancement versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue39435> ___ ___ Python-

[issue39334] python specific index directives in our doc has been deprecated 10 years ago

2020-03-14 Thread Serhiy Storchaka
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

[issue39887] Duplicate C object description of vectorcallfunc

2020-03-14 Thread Serhiy Storchaka
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

[issue38938] Possible performance improvement for heaqq.merge()

2020-03-14 Thread Serhiy Storchaka
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

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-03-15 Thread Serhiy Storchaka
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

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-03-15 Thread Serhiy Storchaka
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

[issue39638] Keep ASDL signatures for AST nodes

2020-03-16 Thread Serhiy Storchaka
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

[issue38938] Possible performance improvement for heaqq.merge()

2020-03-16 Thread Serhiy Storchaka
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

[issue39638] Keep ASDL signatures for AST nodes

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

[issue39987] Simplify setting line numbers in the compiler

2020-03-16 Thread Serhiy Storchaka
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

[issue39987] Simplify setting line numbers in the compiler

2020-03-16 Thread Serhiy Storchaka
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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
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

[issue39989] Output closing parenthesis in ast.dump() on separate line

2020-03-17 Thread Serhiy Storchaka
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

[issue39989] Output closing parenthesis in ast.dump() on separate line

2020-03-17 Thread Serhiy Storchaka
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

[issue39973] The documentation for PyObject_GenericSetDict() is incorrect

2020-03-17 Thread Serhiy Storchaka
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 -

[issue39973] The documentation for PyObject_GenericSetDict() is incorrect

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

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-17 Thread Serhiy Storchaka
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"

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-17 Thread Serhiy Storchaka
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

[issue39992] Windows line endings of pyc file detected on Ubuntu

2020-03-17 Thread Serhiy Storchaka
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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
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

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

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

[issue39987] Simplify setting line numbers in the compiler

2020-03-17 Thread Serhiy Storchaka
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

[issue39987] Simplify setting line numbers in the compiler

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

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is your use case Anthony? -- ___ Python tracker <https://bugs.python.org/issue25024> ___ ___ Python-bugs-list mailin

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

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

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-17 Thread Serhiy Storchaka
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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
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

[issue39719] tempfile.SpooledTemporaryFile still has softspace property

2020-03-17 Thread Serhiy Storchaka
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

[issue38373] List overallocation strategy

2020-03-17 Thread Serhiy Storchaka
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

[issue38373] List overallocation strategy

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

[issue39719] tempfile.SpooledTemporaryFile still has softspace property

2020-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker <https://bugs.python.or

[issue39988] Remove AugLoad and AugStore expression context from AST

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

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
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

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
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

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
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

[issue40000] Improve AST validation for Constant nodes

2020-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You got an anniversary issue! -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue4> ___ ___

[issue40016] Clarify flag case in `re` module

2020-03-19 Thread Serhiy Storchaka
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

[issue40016] Clarify flag case in `re` module

2020-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: They are. -- ___ Python tracker <https://bugs.python.org/issue40016> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40016] Clarify flag case in `re` module

2020-03-19 Thread Serhiy Storchaka
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

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread Serhiy Storchaka
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

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See for example _PyTrash_deposit_object. -- ___ Python tracker <https://bugs.python.org/issue39998> ___ ___ Python-bug

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Serhiy Storchaka
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

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue40029> ___ ___ Python-bugs-list mai

[issue40030] Error with math.fsum() regarding float-point error

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

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue40029> ___ ___ Python-bugs-list mailin

[issue40016] Clarify flag case in `re` module

2020-03-21 Thread Serhiy Storchaka
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

[issue40011] Tkinter widget events become tuples

2020-03-21 Thread Serhiy Storchaka
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

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18461 pull_request: https://github.com/python/cpython/pull/19101 ___ Python tracker <https://bugs.python.org/issue24

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Serhiy Storchaka
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

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Serhiy Storchaka
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

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
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

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
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

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18464 pull_request: https://github.com/python/cpython/pull/19104 ___ Python tracker <https://bugs.python.org/issue39

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
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

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
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

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

2020-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18469 pull_request: https://github.com/python/cpython/pull/19108 ___ Python tracker <https://bugs.python.org/issue36

[issue39538] SystemError when set Element.attrib to non-dict

2020-03-22 Thread Serhiy Storchaka
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

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2020-03-22 Thread Serhiy Storchaka
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

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

2020-03-22 Thread Serhiy Storchaka
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

[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka
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

[issue39999] Fix some issues with AST node classes

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

<    22   23   24   25   26   27   28   29   30   31   >