[issue39259] poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode)

2020-01-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +17323 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17912 ___ Python tracker ___

[issue39269] Descriptor how-to guide wanting update for 3.6+ features

2020-01-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the reminder. I'll have time soon to work on this. Since the other tracker issue cover this, will close this one as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue39259] poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode)

2020-01-08 Thread Dong-hee Na
Dong-hee Na added the comment: ftplib: https://github.com/python/cpython/blob/efa3b51fd060352cc6220b27a1026e4d4d5401bd/Lib/ftplib.py#L155 nntplib: https://github.com/python/cpython/blob/2e6a8efa837410327b593dc83c57492253b1201e/Lib/nntplib.py#L1049 smtplib: https://github.com/python/cpython/b

[issue39260] distutils.spawn: find_executable() Fails To Find Many Executables on Windows

2020-01-08 Thread Thomas Passin
Thomas Passin added the comment: I came across it while working on some code running in the Leo editor. I had no idea it was not really public; I just assumed that someone knew something I didn't. Then I discovered that it couldn't find some files I thought it clearly should, and wrote th

[issue39261] Dead assignment in pyinit_config

2020-01-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2c7ed417a4c758f1c3f97fcbca70a49f79e58c07 by Benjamin Peterson (Alex Henrie) in branch 'master': closes bpo-39261: Remove dead assignment from pyinit_config. (GH-17907) https://github.com/python/cpython/commit/2c7ed417a4c758f1c3f97fcbca70a49f7

[issue39262] Unused error message in _sharedexception_bind

2020-01-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +17325 pull_request: https://github.com/python/cpython/pull/17913 ___ Python tracker ___ __

[issue39262] Unused error message in _sharedexception_bind

2020-01-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 5cae042f686cc174e00093944dc118914c874b7c by Benjamin Peterson (Alex Henrie) in branch 'master': closes bpo-39262: Use specific out-of-memory message in _sharedexception_bind. (GH-17908) https://github.com/python/cpython/commit/5cae042f686cc1

[issue39150] See if PyToken_OneChar would be faster as a lookup table

2020-01-08 Thread Andy Lester
Andy Lester added the comment: I tried out some experimenting with the lookup table vs. the switch statement. The relevant diff (not including the patches to the code generator) is: --- Parser/token.c +++ Parser/token.c @@ -77,31 +77,36 @@ int PyToken_OneChar(int c1) { -switch (c1) {

[issue39262] Unused error message in _sharedexception_bind

2020-01-08 Thread miss-islington
miss-islington added the comment: New changeset 45e5750a013291c5729e0ebad2b9e340fdffbd36 by Miss Islington (bot) in branch '3.8': closes bpo-39262: Use specific out-of-memory message in _sharedexception_bind. (GH-17908) https://github.com/python/cpython/commit/45e5750a013291c5729e0ebad2b9e34

[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 mo

[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 ___

[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.melotti, mrabarnett

[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 ___

[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 ___

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a183faccbe5c32c367dbced721a25c1444dc5c1 by Serhiy Storchaka (Alex Henrie) in branch 'master': bpo-39271: Remove dead assignment from pattern_subx (GH-17915) https://github.com/python/cpython/commit/1a183faccbe5c32c367dbced721a25c1444dc5c1 -

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Alex. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39273] ncurses does not include BUTTON5_* constants

2020-01-08 Thread Michael Yoo
New submission from Michael Yoo : Hi, Recently I was working with ncurses, and when handling the mouse scroll events, I noticed that the curses library does not include the BUTTON5_* macros provided by ncurses. On my system, BUTTON5 corresponds to the mouse down event. Is there a reason for

<    1   2