[issue45684] `functools.singledispatchmethod` does not define `__class_getitem__`

2021-11-05 Thread Alex Waygood
Alex Waygood added the comment: To clarify why this is an issue: It's probably quite improbable that anybody would ever need to use `singledispatchmethod` in a type annotation. But, if they do, they'll find themselves in an impossible situation if they're using mypy wit

[issue45729] [doc] "history and license" link has wrong target

2021-11-05 Thread Alex Waygood
Alex Waygood added the comment: @Éric: I personally found it difficult to immediately understand what the issue was about when reading only the title on the BPO homepage, and thought the change in title would help clarify, having seen other documentation issues marked similarly on the

[issue45684] `functools.singledispatchmethod` does not define `__class_getitem__`

2021-11-06 Thread Alex Waygood
Alex Waygood added the comment: ^ I posted the wrong link for the example; it should have been: https://mypy-play.net/?mypy=latest&python=3.10&flags=show-error-codes%2Cstrict&gist=6a26d31899f9803a823662261eae21df -- ___ Python tra

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-08 Thread Alex Waygood
Change by Alex Waygood : -- title: Custom Name for ThreadPoolExecutor -> Add the ability to give custom names to threads created by ThreadPoolExecutor ___ Python tracker <https://bugs.python.org/issu

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-08 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +27730 pull_request: https://github.com/python/cpython/pull/29479 ___ Python tracker <https://bugs.python.org/issue45

[issue45759] non-matching `elif`/`else` statements with uninformative errors

2021-11-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45759> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45759] Improve error messages for non-matching `elif`/`else` statements

2021-11-09 Thread Alex Waygood
Change by Alex Waygood : -- title: non-matching `elif`/`else` statements with uninformative errors -> Improve error messages for non-matching `elif`/`else` statements ___ Python tracker <https://bugs.python.org/issu

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

2021-11-09 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch nosy: +AlexWaygood nosy_count: 8.0 -> 9.0 pull_requests: +27759 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29508 ___ Python tracker <https://bugs.python.org/i

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2021-11-09 Thread Alex Waygood
Alex Waygood added the comment: Reproduced on 3.11. -- nosy: +AlexWaygood, lukasz.langa, rhettinger versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue40

[issue43923] Can't create generic NamedTuple as of py3.9

2021-11-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue43923> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45787] HOWTO for socket programming and select documentation contradict

2021-11-11 Thread Alex Waygood
New submission from Alex Waygood : The HOWTO for socket programming in Python (https://docs.python.org/3/howto/sockets.html#non-blocking sockets) includes the following lines (using triple-quotes here to indicate multiline quotes from the docs): """ The major mechanical diff

[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood nosy_count: 7.0 -> 8.0 pull_requests: +27803 pull_request: https://github.com/python/cpython/pull/29555 ___ Python tracker <https://bugs.python.org/issu

[issue45814] datetime.time.strftime: use the same function signature for C and Python implementations

2021-11-16 Thread Alex Waygood
Change by Alex Waygood : -- title: Use the same function signature for datetime.time.strftime -> datetime.time.strftime: use the same function signature for C and Python implementations ___ Python tracker <https://bugs.python.org/issu

[issue41260] datetime, date and time: strftime method takes different keyword argument: fmt (pure) or format (C)

2021-11-16 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41260> ___ ___ Python-bugs-list mailing list Unsub

[issue41260] datetime, date and time: strftime method takes different keyword argument: fmt (pure) or format (C)

2021-11-16 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue41260> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-16 Thread Alex Waygood
New submission from Alex Waygood : The following methods have parameters that are positional-only in the C implementation of the `datetime` module, but positional-or-keyword in the pure-Python implementation: * tzinfo.tzname * tzinfo.utcoffset * tzinfo.dst * tzinfo.fromutc * date.fromordinal

[issue41260] datetime, date and time: strftime method takes different keyword argument: fmt (pure) or format (C)

2021-11-16 Thread Alex Waygood
Alex Waygood added the comment: In addition to `date.strftime` and `time.strftime`, there is also a discrepancy in `datetime.fromtimestamp`. In the C implementation, the first parameter is called "timestamp"; in the pure-Python implementation, the first parameter is

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

2021-11-18 Thread Alex Waygood
New submission from Alex Waygood : The documentation for the data model has a lot of cross-references to other parts of the data model. However, often these cross-references do not have proper hyperlinks online, as :meth:`__iter__` is used (for example), instead of :meth:`~object.__iter__

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

2021-11-18 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue45840> ___ ___ Python-bugs-list mailing list Unsubscrib

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

2021-11-18 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27865 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29633 ___ Python tracker <https://bugs.python.org/issu

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-19 Thread Alex Waygood
Alex Waygood added the comment: It seems to me that there are two ways of resolving this: (1) Change the Python implementation to match the C implementation (make these parameters positional-only in the Python implementation). (2) Change the C implementation to match the Python

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-11-19 Thread Alex Waygood
Alex Waygood added the comment: It makes me sad that the stdlib will no longer provide a way to compose classmethods with other descriptors. However, I agree that deprecating classmethod chaining is probably the correct course of action, given the complications this feature has caused, and

[issue45851] statistics.multimode is inefficient (time and space) (mode somewhat, too)

2021-11-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, steven.daprano ___ Python tracker <https://bugs.python.org/issue45851> ___ ___ Python-bugs-list mailing list Unsub

[issue42238] Deprecate suspicious.py?

2021-11-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue42238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45852] statistics.mode test doesn't test what it claims to

2021-11-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, steven.daprano type: -> behavior ___ Python tracker <https://bugs.python.org/issue45852> ___ ___ Python-

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Ref to discussion on typeshed: https://github.com/python/typeshed/pull/6343 -- ___ Python tracker <https://bugs.python.org/issue45

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Reproduced on 3.11. The error occurs if a type is on the left-hand-side of the operand, as well as if a type is on the right-hand-side: ``` >>> int | "str" Traceback (most recent call last): File "", line 1, in TypeError: un

[issue32582] chr raises OverflowError

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue32582> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45843] Optimizing LOAD_CONST followed by COMPARE_OP (or IS_OP)

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> performance ___ Python tracker <https://bugs.python.org/issue45843> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32658] Metacharacter (\) documentation suggestion

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue32658> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Arguably, either the implementation should be altered to support forward references, or the documentation at https://docs.python.org/3/library/stdtypes.html#union-type should be altered to make clear that, when type-hinting a union that includes a forward

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-22 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Ken! To clarify: I agree that changing the implementation here would probably be a bad way to go: it would be foolish to try to replicate all the functionality of the typing module as builtins. I also think the existing documentation at https

[issue45459] Limited API support for Py_buffer

2021-11-22 Thread Alex Gaynor
Alex Gaynor added the comment: I am someone who is interested in having this, but FWIW my motivation is slightly more narrow, I only really need abi3-friendly buffer support with contiguous 1d buffers. Not sure if there'd be interest in doing a smaller version before figuring out the e

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

2021-11-23 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45878> ___ ___ Python-bugs-list m

[issue44724] multiprocessing: the Resource Tracker process is never reaped

2021-11-24 Thread Alex Willmer
Change by Alex Willmer : -- nosy: +Alex.Willmer ___ Python tracker <https://bugs.python.org/issue44724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-11-24 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, yselivanov type: -> behavior versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue45897] Frozen dataclasses with slots raise TypeError

2021-11-24 Thread Alex Waygood
Alex Waygood added the comment: This looks to be due to the fact that `slots=True` leads to the creation of an entirely new class (see line 1102), meaning that in the `super(cls, self)` calls in lines 611 and 618 (in the `_frozen_get_del_attr` function, responsible for generating

[issue44353] PEP 604 NewType

2021-11-25 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood nosy_count: 12.0 -> 13.0 pull_requests: +28022 pull_request: https://github.com/python/cpython/pull/29785 ___ Python tracker <https://bugs.python.org/issu

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Mark.Shannon, brett.cannon, rhettinger, serhiy.storchaka, tim.peters, vstinner, yselivanov ___ Python tracker <https://bugs.python.org/issue45

[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue45903> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45914] Very first multiprocessing example not working on Windows 11

2021-11-27 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue45914> ___ ___ Python-

[issue28140] Attempt to give better errors for pip commands typed into the REPL

2021-11-28 Thread Alex Waygood
Alex Waygood added the comment: Similar discussion in a newer issue: https://bugs.python.org/issue45721 -- nosy: +AlexWaygood, pablogsal, steven.daprano, terry.reedy ___ Python tracker <https://bugs.python.org/issue28

[issue45922] Many method, function, built-in... are not clickable and should be

2021-11-29 Thread Alex Waygood
Alex Waygood added the comment: I'm already attempting something similar over at https://bugs.python.org/issue45840 (though that issue is for one specific piece of documentation). See also my attached PR, and the comments on it :) -- nosy: +AlexWaygood, eric.araujo ver

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-11-29 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +colesbury ___ Python tracker <https://bugs.python.org/issue43498> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45926] singledispatchmethod doesn't handle named arguments

2021-11-29 Thread Alex Waygood
Alex Waygood added the comment: This is arguably a duplicate of https://bugs.python.org/issue41122 -- nosy: +AlexWaygood, lukasz.langa, rhettinger versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue45

[issue45451] IDLE Shell GUI - remove window border

2021-11-29 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45451> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45897] Frozen dataclasses with slots raise TypeError

2021-12-02 Thread Alex Waygood
Alex Waygood added the comment: You get the same error if you subclass a frozen dataclass, then try to set an attribute that is not one of the superclass's __slots__: ``` >>> @dataclass(slots=True, frozen=True) ... class Point: ... x: int ... y: int ... ... >

[issue45897] Frozen dataclasses with slots raise TypeError

2021-12-02 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +28119 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29895 ___ Python tracker <https://bugs.python.org/issu

[issue45967] Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block

2021-12-02 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gpolo, serhiy.storchaka title: treeview -> Tkinter.ttk.Treeview does not clear after opening and reopening another using same code block ___ Python tracker <https://bugs.python.org/issu

[issue45959] Teach pprint about dict views

2021-12-02 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41768] unittest.mock spec calls class properties

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue41768> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45756] mock raises exception when using a spec with an attribute that raises exception on access

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue45756> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45972] typing.NamedTuple with default arguments without type annotations is falsy

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- components: +Library (Lib) nosy: +AlexWaygood, gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue45972> ___ ___ Pytho

[issue45972] typing.NamedTuple with default arguments without type annotations is falsy

2021-12-03 Thread Alex Waygood
Alex Waygood added the comment: I agree that prohibiting zero-length NamedTuples seems like a bad idea, and also agree that this probably doesn't need to be documented. The behaviour here definitely looks weird at first glance, but it's probably not a good idea to tamper with th

[issue45972] typing.NamedTuple with default arguments without type annotations is falsy

2021-12-03 Thread Alex Waygood
Alex Waygood added the comment: To me, the fact that NamedTuple uses class attributes to provide field defaults feels like an implementation detail that is only relevant to an unusual edge case. Where do you think the documentation should be improved, and what is your suggested wording

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue45957> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45962] Clarify that PyModule_AddString{Constant, Macro} use utf-8

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue45962> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45964] 3.10.0 tests fail in test_pdb_breakpoints_preserved_across_interactive_sessions

2021-12-03 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue45964> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45975] Simplify some while-loops with walrus operator

2021-12-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45975> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-05 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45985> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-05 Thread Alex Waygood
Alex Waygood added the comment: You can find the release schedule here, which says that 3.10.1 is expected... tomorrow https://www.python.org/dev/peps/pep-0619/#id6 -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue45

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue45987> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37927] No Instantiation Restrictions for AbstractBaseClasses derived from builtin types

2021-12-06 Thread Alex Waygood
Alex Waygood added the comment: See also #5996 -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue37927> ___ ___ Python-bugs-list mailin

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- title: asyncio.Semaphore waiters deqeueu doesn't work -> asyncio.Semaphore waiters deque doesn't work ___ Python tracker <https://bugs.pytho

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue45997> ___ ___ Python-bugs-list mailing list Unsubscrib

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

2021-12-07 Thread Alex Waygood
Alex Waygood added the comment: I am changing the "version" field to 3.11, as enhancement proposals are generally only considered for unreleased versions of Python. -- nosy: +AlexWaygood, bob.ippolito, ezio.melotti, rhettinger versions: +Python 3.11 -P

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

2021-12-08 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker <https://bugs.python.org/issue45929> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46014] functools.singledispatch does not support Union types

2021-12-08 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, lukasz.langa, rhettinger versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46

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

2021-12-08 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker <https://bugs.python.org/issue45840> ___ ___ Python-bugs-list mai

[issue37542] UDP sendto() sends duplicate packets

2019-12-27 Thread Alex Grönholm
Alex Grönholm added the comment: Can you reproduce this on localhost, or over Ethernet while only listening on that specific interface? If not, then likely this is just a Wireshark artifact. Failing that, you should construct a script that allows others to try to reproduce the effect

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2019-12-28 Thread Alex Grönholm
New submission from Alex Grönholm : Receiving a UDP datagram using DatagramProtocol on the Proactor event loop results in error_received() being called with WinError 87 (Invalid Parameter). The low-level sock_recv() works fine, but naturally loses the sender address information. The attached

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2019-12-28 Thread Alex Grönholm
Change by Alex Grönholm : -- components: +asyncio nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue39148> ___ ___ Python-bugs-list mailin

[issue39237] Redundant call to round in delta_new

2020-01-06 Thread Alex Henrie
New submission from Alex Henrie : The delta_new function in _datetimemodule.c currently contains the following code: /* Round to nearest whole # of us, and add into x. */ double whole_us = round(leftover_us); int x_is_odd; PyObject *temp; whole_us = round(leftover_us

[issue39237] Redundant call to round in delta_new

2020-01-06 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17293 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17877 ___ Python tracker <https://bugs.python.org/issu

[issue39237] Redundant call to round in delta_new

2020-01-08 Thread Alex Henrie
Alex Henrie added the comment: Thank you! -- ___ Python tracker <https://bugs.python.org/issue39237> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39261] Dead assignment in pyinit_config

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : The function pyinit_config currently contains the following line: config = &tstate->interp->config; However, the config variable is not used after that point. Victor Stinner has confirmed that this assignment is unnecessary: https://github.

[issue39261] Dead assignment in pyinit_config

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17318 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17907 ___ Python tracker <https://bugs.python.org/issu

[issue39261] Dead assignment in pyinit_config

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue39261> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39261] Dead assignment in pyinit_config

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- type: -> performance ___ Python tracker <https://bugs.python.org/issue39261> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39262] Unused error message in _sharedexception_bind

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : The function _sharedexception_bind currently has the following bit of code in two places: if (PyErr_ExceptionMatches(PyExc_MemoryError)) { failure = "out of memory copying exception type name"; } failure = "unable to

[issue39262] Unused error message in _sharedexception_bind

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17319 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17908 ___ Python tracker <https://bugs.python.org/issu

[issue39270] Dead assignment in config_init_module_search_paths

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : config_init_module_search_paths currently has the following code: const wchar_t *p = sys_path; while (1) { p = wcschr(sys_path, delim); The first assignment to p is unnecessary because it is immediately overwritten. Victor Stinner suggested

[issue39270] Dead assignment in config_init_module_search_paths

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17326 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17914 ___ Python tracker <https://bugs.python.org/issu

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : The function pattern_subx currently sets the variable b to charsize, but that variable is reset to STATE_OFFSET(&state, state.start) before it is ever used. -- components: Regular Expressions messages: 359653 nosy: alex.henrie, ezio.mel

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17327 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17915 ___ Python tracker <https://bugs.python.org/issu

[issue39272] Dead assignment in _ssl__SSLContext_load_verify_locations_impl

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : The function _ssl__SSLContext_load_verify_locations_impl currently contains the following code: if (r != 1) { ok = 0; if (errno != 0) { ERR_clear_error(); PyErr_SetFromErrno(PyExc_OSError

[issue39272] Dead assignment in _ssl__SSLContext_load_verify_locations_impl

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17328 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17916 ___ Python tracker <https://bugs.python.org/issu

[issue39286] Configure includes LIBS but does not pass it to distutils

2020-01-10 Thread Alex Grund
New submission from Alex Grund : When configuring with `LIBS=-lpthread` env var set, the pthread detection assumes that no flag is necessary and distutils will build all extensions without any flag for pthreads. This will make them fail, when they use certain pthread symbols on certain

[issue39307] Memory leak in parsetok

2020-01-11 Thread Alex Henrie
New submission from Alex Henrie : The parsetok function currently contains the following code: if (!growable_comment_array_init(&type_ignores, 10)) { err_ret->error = E_NOMEM; PyTokenizer_Free(tok); return NULL; } if ((ps = PyParser_New(g, start))

[issue39307] Memory leak in parsetok

2020-01-11 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17363 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17953 ___ Python tracker <https://bugs.python.org/issu

[issue39316] settrace skips lines when chaining methods without arguments

2020-01-12 Thread Alex Hall
New submission from Alex Hall : When stepping through a multiline expression like this: ``` print(slug .replace("_", " ") .title() .upper() .replace("a", "b") .lower() .replace("The ", "the ")) ```

[issue39364] Automatically tabulate module contents in the docs

2020-01-16 Thread alex c
New submission from alex c : By default, the docs.python.org page for a module does not list or tabulate the contents of that module. This makes it difficult to browse a module's functions or get a bird's-eye view. For example, the logging module (https://docs.python.org

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Alex Rebert
Change by Alex Rebert : -- pull_requests: +17504 pull_request: https://github.com/python/cpython/pull/18117 ___ Python tracker <https://bugs.python.org/issue35

[issue39421] Use-after-free in heappushpop() of heapq module

2020-01-23 Thread Alex Gaynor
Change by Alex Gaynor : -- keywords: +security_issue nosy: +alex ___ Python tracker <https://bugs.python.org/issue39421> ___ ___ Python-bugs-list mailin

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-23 Thread Alex Rebert
Change by Alex Rebert : -- pull_requests: +17534 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/18148 ___ Python tracker <https://bugs.python.org/issu

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-23 Thread Alex Rebert
Change by Alex Rebert : -- pull_requests: +17537 pull_request: https://github.com/python/cpython/pull/18151 ___ Python tracker <https://bugs.python.org/issue35

[issue33997] multiprocessing Pool hangs in terminate()

2020-01-27 Thread Alex Hall
Alex Hall added the comment: I'm also experiencing hanging on terminate. I haven't made a debug build or anything but it's happening to me consistently on 3.8, although I haven't managed to create a small example to reproduce. Replacing pool.py with https://raw.githubus

[issue33997] multiprocessing Pool hangs in terminate()

2020-01-27 Thread Alex Hall
Alex Hall added the comment: Sorry, I should have looked around more, I think my problem is https://bugs.python.org/issue22393 -- ___ Python tracker <https://bugs.python.org/issue33

[issue39494] Extra null terminators in keyword arrays in sqlite module

2020-01-29 Thread Alex Henrie
New submission from Alex Henrie : Modules/_sqlite/cursor.c currently has the following variable declaration: static char *kwlist[] = {"size", NULL, NULL}; The second null terminator is unnecessary and detrimental in that it makes the code harder to read and understand. Modul

[issue39494] Extra null terminators in keyword arrays in sqlite module

2020-01-29 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17644 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18267 ___ Python tracker <https://bugs.python.org/issu

<    3   4   5   6   7   8   9   10   11   12   >