[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8c74713d0e349c27518080945d5f040dfd52a56e by andrei kulakov in branch 'main': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384) https://github.com/python/cpyt

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a by Thomas Klausner in branch 'main': bpo-46000: Improve NetBSD curses compatibility (GH-29947) https://github.com/python/cpython/commit/2fb797e93c6bbd44dfcbe23f63acfa

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb8aad16401e081a6a9059c7b428f7e8aae85d58 by Miss Islington (bot) in branch '3.9': [3.9] bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) (GH-29924) https://github.com/python/cpyt

[issue45662] Incorrect repr of InitVar of a type alias

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

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 040f9f9c48f4e74e851d850275aa9e050a04d0c6 by Miss Islington (bot) in branch '3.9': bpo-46000: Improve NetBSD curses compatibility (GH-29947) (GH-30023) https://github.com/python/cpython/commit/040f9f9c48f4e74e851d850275aa9e

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Thomas for your contribution. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +functools' singledispatch does not support GenericAlias ___ Python tracker <https://bugs.python.org/is

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: -functools' singledispatch does not support GenericAlias ___ Python tracker <https://bugs.python.org/is

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46032> ___ ___ Python-

[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The current implementation allows for the final character of the input to be a newline. It does not allow double newlines. In the original example echo -e '{"foo":1}\n{"bar":2}\n' the echo command adds a newline to the

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Resolved in issue10544. -- nosy: +serhiy.storchaka resolution: out of date -> duplicate stage: test needed -> resolved status: pending -> closed superseder: -> yield expression inside generator expression

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28275 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30050 ___ Python tracker <https://bugs.python.org/issu

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is related to issue45665. It is a complicated case due to coincidence of several circumstances. 1. isinstance(list[int], type) is True, while isinstance(typing.List[int], type) is False. list[int] is considered a type in this check. 2. list[int

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +functools' singledispatch does not support GenericAlias ___ Python tracker <https://bugs.python.org/is

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 6.0 -> 7.0 pull_requests: +28283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30063 ___ Python tracker <https://bugs.p

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is due to use functools.wraps(). If __all__ is not defined all non-builtin functions should have correct __module__ to be displayed by pydoc. functools.wraps() assigns __module__, __name__, __qualname__, __doc__ and __annotations__. __module__ should

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is still reproducible if increase the depth. In 3.8-3.10 it needs 329 nested classes, in 3.11 -- 496. Seems the limit is sys.getrecursionlimit()//k - 4, where k=4 in 3.7 and older, k=3 in 3.8-3.10, and k=2 in 3.11. It is much better than was initially

[issue46055] Speed up binary shifting operators

2021-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please show any microbenchmarking results? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46

[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7da90251ae80f5faac938b659675ff159d565537 by Alex Waygood in branch '3.10': bpo-45840: Improve cross-references in the data model documentation (GH-29633) (GH-30077) https://github.com/python/cpyt

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e08c0d8eec528f1d7a282ee19bcadb9aae9ec123 by Serhiy Storchaka in branch 'main': bpo-27718: Fix help for the signal module (GH-30063) https://github.com/python/cpython/commit/e08c0d8eec528f1d7a282ee19bcadb

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28301 pull_request: https://github.com/python/cpython/pull/30080 ___ Python tracker <https://bugs.python.org/issue27

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e55deaabd8de338138cf29aea6890996e794c997 by Serhiy Storchaka in branch '3.10': [3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080) https://github.com/python/cpython/commit/e55deaabd8de338138cf29aea68909

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

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

[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2029c58097e49b5aedc152ab65958a9db35ebd1e by Alex Waygood in branch '3.9': [3.9] bpo-45840: Improve cross-references in the data model documentation (GH-29633) (GH-30081) https://github.com/python/cpyt

[issue45840] Improve cross-references in the data model documentation

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

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It ends, but it tooks several minutes to complete. It is a limitation of the regular expression implementation in Python. Your input contains a sequence of 588431 characters which match the pattern [a-zA-Z0-9_.+-] not following by '@'. The en

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The simplest example is: re.search('a@', 'a'*10) -- ___ Python tracker <https://bugs.python.org/issue46065> ___

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Limit the number of repetitions. For example use "{1,100}" (or what is the expected maximal length of email) instead of "+". -- ___ Python tracker <https://bug

[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other systems it opens a simple dialog window implemented in Tk. AFAIK it does not support creating new directories. Ask Tk core developers for a new feature. -- resolution: -> third party stage: -> resolved status: open -&g

[issue23148] Missing the charset parameter in as_encoded_word()

2021-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code was completely rewritten in issue27240. No tests are needed. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31370] Remove support for threads-less builds

2021-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Victor. It is fine to add a link to other discussion in a closed issue, but an issue closed many years ago is not a good place for a new discussion at all. -- ___ Python tracker <ht

[issue46069] Super Smash Flash 2

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

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.walk() has been implemented via os.scandir(), but by default it ignores OSErrors raised by os.scandir(), DirEntry.is_dir() and DirEntry.is_symlink(). You can get errors raised by os.scandir() if specify the onerror argument, but errors in

[issue46087] Zip library documentation error

2021-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since it is a REPL example, no print() is needed. In REPL any expression statement prints the repr of its result. For example: >>> for x in range(1, 5): ... f'{x}**2 = {x**2}' ... '1**2 = 1' '2**2 = 4' 

[issue46087] format library documentation error

2021-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eric.smith resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue22815] unexpected successes are not output

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the OP means that test details (test description, traceback, captured output) are printed for ERROR and FAIL in TextTestResult.printErrors(). Other possible results besides error and failure are success, skipped, expected failure and unexpected

[issue22815] unexpected successes are not output

2021-12-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30138 ___ Python tracker <https://bugs.python.org/issu

[issue22815] unexpected successes are not output

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are no other details for unexpected successes, only test descriptions. -- type: behavior -> enhancement ___ Python tracker <https://bugs.python.org/issu

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What do you mean they are required? All parameters of TestResult() are optional. -- nosy: +ezio.melotti, michael.foord, rbcollins, serhiy.storchaka status: pending -> open ___ Python tracker <

[issue22815] unexpected successes are not output

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unless you tun tests in verbose mode you do not know which of tests was unexpectedly successful. And even in the verbose mode it is not easy to find that test in long output. Yes, unexpected successes considered successes in earlier versions. See

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue22815. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue20165> ___ ___ Python-bug

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

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

[issue12681] unittest expectedFailure could take a message argument like skip does

2021-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Such change would break a lot of existing interfaces. * addUnexpectedSuccess() has a single parameter. The change will add the second parameter and will break subclasses of TestResult. * addExpectedFailure() has two parameter. The change will add the third

[issue46111] test_unittest fails in optimized mode

2021-12-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -OO -m test -vuall test_unittest ... == FAIL: testShortDescriptionWhitespaceTrimming (unittest.test.test_case.Test_TestCase

[issue46111] test_unittest fails in optimized mode

2021-12-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28380 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30163 ___ Python tracker <https://bugs.python.org/issu

[issue46111] test_unittest fails in optimized mode

2021-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 95a922b3bb3af247ec141d73fcdfbf68bb1d32a5 by Serhiy Storchaka in branch 'main': bpo-46111: Fix unittest tests in optimized mode (GH-30163) https://github.com/python/cpython/commit/95a922b3bb3af247ec141d73fcdfbf

[issue46112] PEP 8 code format

2021-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PEP 8 is a guide for writing new code. It does not require rewriting the old code. In fact, patches with mass reformatting of the stdlib code have always been rejected. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> re

[issue46111] test_unittest fails in optimized mode

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

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you. I knew about this issue but forgot to fix it. I think it is also needed in _log.py. Not sure about mock.py. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46

[issue46131] Add PyType_FastSubclass for float

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is because PyFloat_Check() and PyComplex_Check() are rarely used in comparison with checks for integers, strings, etc. The flags space is limited, so it is better to use it for something more important. There were reasons for not adding such flags at

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These parameters were added in d99ef9a9df093d3443996725cd9dcac5f113f176, but they were not tested nor documented. An indirect test was added later in issue12376. If it is an official feature it needs documentation and tests. Otherwise we can remove these

[issue23819] test_asyncio fails when run under -O

2021-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 5.0 -> 6.0 pull_requests: +28433 pull_request: https://github.com/python/cpython/pull/30212 ___ Python tracker <https://bugs.python.org/issu

[issue23819] test_asyncio fails when run under -O

2021-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6ca78affc8023bc5023189d64d8050857662042a by Serhiy Storchaka in branch 'main': bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) https://github.com/python/cpython/commit/6ca78affc8023bc5023189d64d8050

[issue37295] Possible optimizations for math.comb()

2021-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: factorial(49) has 163 significant binary digits. It cannot be represented in floating-point without losses. And C functions log2() and exp2() can add additional errors, depending on platform. We rely on the assumption that all errors will be compensated

[issue23819] test_asyncio fails when run under -O

2021-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 95948169d75bed3936284ea2225e83e07ec5fe20 by Miss Islington (bot) in branch '3.10': bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213) https://github.com/python/cpython/commit/95948169d75bed3936284ea2225e83

[issue46051] Make @atexit.register work for functions with arguments

2021-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It cannot work this way. atexit.register() as a function allows you to specify arguments which will be passed to the registered function, but if it is used as a decorator, only one argument (the function itself) is passed to atexit.register() (it is how

[issue37295] Possible optimizations for math.comb()

2021-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: long long is at least 64 bit, so we can safely use PyLong_FromLongLong() for int64_t. -- ___ Python tracker <https://bugs.python.org/issue37

[issue46140] Some API methods could take const Py_buffer* instead of Py_buffer *

2021-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 31ff96712e8f89ac1056c2da880b44650002219f by David Hewitt in branch 'main': bpo-46140: take more Py_buffer arguments as const * (GH-30217) https://github.com/python/cpython/commit/31ff96712e8f89ac1056c2da880b44650002219f -

[issue46140] Some API methods could take const Py_buffer* instead of Py_buffer *

2021-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution David. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46160] IPy->IPSet AttributeError: module 'collections' has no attribute 'MutableSet'

2021-12-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other similar errors: Doc/library/json.rst:162: will result in an :exc:`RecursionError` (or worse). Doc/library/json.rst:435: prevent an infinite recursion (which would cause an :exc:`RecursionError`). Doc/library/tarfile.rst:66

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Doc/using/cmdline.rst:474: * ``-X warn_default_encoding`` issues a :class:`EncodingWarning` when the Doc/c-api/init_config.rst:601: If non-zero, emit a :exc:`EncodingWarning` warning when :class:`io.TextIOWrapper` Doc/library/fractions.rst:90

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Kumar. These errors were found with the following one-liners: $ find -name '*.rst' -exec egrep --color -i '\ban +:[a-z:]+:`[qwrtpsdfghjklzxcvbnm]' '{}' + $ find -name '*.rst' -exec egrep --color -i '

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And more errors can be found with: $ find -name '*.rst' -exec egrep --color -i '\ban +[qwrtpsdfghjklzxcvbnm]' '{}' + $ find -name '*.rst' -exec egrep --color -i '\ba +[eioa]' '{}' + It is worth

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46157> ___ ___ Python-bugs-list m

[issue46157] Typo in JSON documentation

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 30237 introduced few new errors. -- ___ Python tracker <https://bugs.python.org/issue46157> ___ ___ Python-bugs-list m

[issue46167] Parse assert (x == y, "Descriptive text") as statement params instead of a tuple

2021-12-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It does not need any change in parser, it can be done in the code generator which currently explicitly warns about such ambiguity. Although it needs changes in formal grammar which will be more complex. But what is a benefit? What is an advantage of

[issue46162] Make `builtins.property` generic

2021-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does it mean that property[GetType, SetType] will be required and MyPy will complain if the raw property decorator be used? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46

[issue46167] Parse assert (x == y, "Descriptive text") as statement params instead of a tuple

2021-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For very long expression or very long message you can add parentheses around the expression or message. Black will format it as: assert ( very very long expression ), ( "very very long " "message" ) With the propose

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 393ff040281db818f2d6e0240919316f58f989a6 by Miss Islington (bot) in branch '3.9': bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29723) https://github.com/python/cpyt

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a9e0b2b49374df91c40fe409508cfcdc6332450e by Miss Islington (bot) in branch '3.10': bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29748) https://github.com/python/cpyt

[issue45865] Old syntax in unittest

2021-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not worth the hassle. -- ___ Python tracker <https://bugs.python.org/issue45865> ___ ___ Python-bugs-list mailing list Unsub

[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue46175> ___ ___ Python-bugs-list mailing list Unsub

[issue40296] help(list[int]) fails

2021-12-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28474 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30253 ___ Python tracker <https://bugs.python.org/issu

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 078abb676cf759b1e960f78390b6e80f256f0255 by Serhiy Storchaka in branch 'main': bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) https://github.com/python

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28475 pull_request: https://github.com/python/cpython/pull/30254 ___ Python tracker <https://bugs.python.org/issue46

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 03c7449fbc7c57f5e0365f234a0b65c1dde763f2 by Serhiy Storchaka in branch '3.10': [3.10] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254) https://github.com/python

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28479 pull_request: https://github.com/python/cpython/pull/30258 ___ Python tracker <https://bugs.python.org/issue45

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28480 pull_request: https://github.com/python/cpython/pull/30259 ___ Python tracker <https://bugs.python.org/issue45

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 11909c12c75a7f377460561abc97707a4006fc07 by Serhiy Storchaka in branch '3.10': [3.10] Remove a NEWS entry for bpo-45878 (GH-30258) https://github.com/python/cpython/commit/11909c12c75a7f377460561abc9770

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fb7c61ca76c6fbff4d90b272e34e92bc2c7d729 by Serhiy Storchaka in branch 'main': Remove a NEWS entry for bpo-45878 (GH-30259) https://github.com/python/cpython/commit/1fb7c61ca76c6fbff4d90b272e34e9

[issue23819] test_asyncio fails when run under -O

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc by Kumar Aditya in branch 'main': bpo-23819: Fix asyncio tests on python optimized mode (GH-30195) https://github.com/python/cpython/commit/a23ab7b6d8b3ae3a47747c0c4bceb2

[issue45321] Module xml.parsers.expat.errors misses error code constants of libexpat >=2.0

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eli.bendersky, scoder ___ Python tracker <https://bugs.python.org/issue45321> ___ ___ Python-bugs-list mailing list Unsub

[issue22815] unexpected successes are not output

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1944434b44e0118e812bf63f47b268ff6dd0c8f1 by Serhiy Storchaka in branch 'main': bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138) https://github.com/python/cpython/commit/1944434b44e0118e812bf63f47b268

[issue22815] unexpected successes are not output

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

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bee660e46ae2a051400177dcd758d95b5b4a6fcc by Miss Islington (bot) in branch '3.9': [3.9] Remove a NEWS entry for bpo-45878 (GH-30258) (GH-30260) https://github.com/python/cpython/commit/bee660e46ae2a051400177dcd758d9

[issue43413] tuple subclasses allow arbitrary kwargs

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ad4857884b4821fc2c9bd23b63d03f9570eb03d1 by Serhiy Storchaka in branch 'main': bpo-43413: Revert changes in set.__init__ (GH-28403) https://github.com/python/cpython/commit/ad4857884b4821fc2c9bd23b63d03f

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2e3e0d23adca8d83722d939d6abd1e467d7578f7 by E-Paine in branch 'main': bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) https://github.com/python/cpython/commit/2e3e0d23adca8d83722d939d6abd1e

[issue23819] test_asyncio fails when run under -O

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 07229054a129a72b4ffdf29252eb73c6154c0ccf by Miss Islington (bot) in branch '3.9': [3.9] bpo-23819: Fix asyncio tests on python optimized mode (GH-30195) (GH-30265) https://github.com/python/cpyt

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25a12aac4de819745dfc64664ba183a5784b5a81 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) (GH-30254) (GH-30255) https://github.com/python

[issue46032] functools' singledispatch does not support GenericAlias

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

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45496> ___ ___ Pyth

[issue45496] Tkinter: test_winfo_rgb failure

2021-12-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue45496> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

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

[issue46175] Zero argument super() does not function properly inside generator expressions

2021-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Josh. super() uses a lot of magic, and in case of comprehensions it fails in interesting way. Most common cases in which super() does not work: 1. Outside of a function defined in a class. 2. In a static method. 3. In inner function. 4. In

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2021-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, the tar command strips trailing slashes (even from file paths), so it is reasonable to do this in getmember(). $ mkdir dir $ touch dir/file $ tar cf archive.tar dir $ tar tf archive.tar dir dir/ dir/file $ tar tf archive.tar dir/ dir/ dir/file $ tar

[issue46191] Conflict between using annotations in singledispatch() and MyPy

2021-12-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : You can dispatch on collections.abc.Sequence. @functools.singledispatch def f(a: collections.abc.Sequence) -> None: pass But MyPy complains about this: error: Missing type parameters for generic type "Sequence" MyPy requires paramet

[issue34498] Python 3.7+ break on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2021-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The original issue is about dispatching on non-parametrized generics like typing.Sequence. isinstance([], typing.Sequence) works, so it could be possible to support dispatching on typing.Sequence. But I have doubts that it is worth to revive such feature

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was assigned to a variable initially because it was used in multiple places. Now it is only used in one place, but I agree with keeping the variable for readability. But it should be named _IGNORED_ERRNOS

[issue46191] Conflict between using annotations in singledispatch() and MyPy

2021-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think there is a problem in MyPy. What if use __origin__ for dispatching? Registering with parametrized generics with the same __origin__ will be error. @sigledispatch def f(a: int) -> None: pass @f.register # ok def _(a: list[int]) ->

  1   2   3   4   5   6   7   8   9   10   >