[issue940286] pydoc.Helper.help() ignores input/output init parameters

2018-07-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7928 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2018-07-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7929 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2018-07-22 Thread Berker Peksag
Berker Peksag added the comment: New changeset d04f46c59f1d07d9bcc0ba910741296ac88d370d by Berker Peksag in branch 'master': bpo-940286: Fix pydoc to show cross refs correctly (GH-8390) https://github.com/python/cpython/commit/d04f46c59f1d07d9bcc0ba910741296ac88d370d --

[issue21446] Update reload fixer to use importlib instead of imp

2018-07-22 Thread Berker Peksag
Change by Berker Peksag : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29336] merge tuples in module

2018-07-22 Thread INADA Naoki
Change by INADA Naoki : -- resolution: postponed -> duplicate stage: -> resolved status: pending -> closed superseder: -> Same constants in tuples are not merged while compile() ___ Python tracker

[issue34192] FunctionType.__new__ can generate functions that immediately crash

2018-07-22 Thread Dan Snider
New submission from Dan Snider : The following program crashes on 3.3.1, 3.4.2, 3.5.2, and 3.6.1 because despite having a non-empty co_cellvars slot due to the generator object, the NOFREE flag was set. 3.7 isn't immune to some bad behavior here, either. While I only have access to 3.7.03b

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2018-07-22 Thread Éric Araujo
Éric Araujo added the comment: Patch works! -- assignee: eric.araujo -> berker.peksag ___ Python tracker ___ ___ Python-bugs-list

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-07-22 Thread mattip
mattip added the comment: It would be sufficient to modify the documentation to reflect the code. There are other objects like `file` that recommend[0] calling a method to release resources without depending on implementation-specific details like garbage collection. [0]

[issue31734] crash or SystemError in sqlite3.Cache in case it is uninitialized or partially initialized

2018-07-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the PR and for the work you've been doing to fix similar bugs in Python! The Cache class is an implementation detail and it has no practical use for third party users. See issue 30262 for a discussion on making it private. If a user somehow finds

[issue34188] Allow dict choices to "transform" values in argpagse

2018-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, please don't try to get your way by adopting a tone of shoving people around or mis-parsing their words try to catch them in a contradiction. There is in fact a boundary between argument parsing logic and application logic. In my view, the

[issue34136] Del on class __annotations__ regressed, failing test

2018-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: > Did you consider my suggestion to make it a "SyntaxError" for > "del __annotations__" on a class level or even module level or at all? > Or does this go too far? That's not reasonable. __annotations__ is just an identifier. There are lots of other things

[issue34188] Allow dict choices to "transform" values in argpagse

2018-07-22 Thread Victor Porton
Victor Porton added the comment: @Raymond: "Downstream processing or transformation of inputs is beyond the scope of argparse which should stick to its core responsibilities of argument extraction." You somehow contradict the official documentation: "One particularly effective way of

[issue34188] Allow dict choices to "transform" values in argpagse

2018-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Zachary. Downstream processing or transformation of inputs is beyond the scope of argparse which should stick to its core responsibilities of argument extraction. -- assignee: -> bethard nosy: +bethard, rhettinger type: behavior

[issue34127] Gramatically incorrect error message for some calls with wrong number of arguments

2018-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nice work. Thanks for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34127] Gramatically incorrect error message for some calls with wrong number of arguments

2018-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 1426daa4fe47d8f8be0d416f7cba7adae1d5839f by Raymond Hettinger (Xtreak) in branch 'master': bpo-34127: Fix grammar in error message with respect to argument count (GH-8395)

[issue34191] argparse: Missing subparser error message should be more clear

2018-07-22 Thread Victor Porton
New submission from Victor Porton : argparse produces a long unreadable, non-understandable for non-programmers error message when a subparser is not specified in the command line. Note that the below message contains Ubuntu specifics, but it seems it would be nearly as unclear on other OSes

[issue34190] x86 Gentoo Refleaks 3.x: test_sys_setprofile leaked [1, 1, 1] references, sum=3

2018-07-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Same error in the x86 Gentoo Refleaks 3.7 buildbot: https://buildbot.python.org/all/#/builders/114/builds/174 -- ___ Python tracker

[issue34190] x86 Gentoo Refleaks 3.x: test_sys_setprofile leaked [1, 1, 1] references, sum=3

2018-07-22 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The x86 Gentoo Refleaks 3.x report that test_sys_setprofile is potentially leaking referenecs: https://buildbot.python.org/all/#/builders/1/builds/292 -- Ran 21 tests in 0.007s OK

[issue34021] [2.7] test_regrtest: test_env_changed() fails on x86 Windows XP VS9.0 2.7

2018-07-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems that this buildbot failure is related to this issue: https://buildbot.python.org/all/#/builders/105/builds/192 1 test failed: test_regrtest 43 tests skipped: test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 46cb5fd706563673663e676bb70f46a73f4edc89 by Serhiy Storchaka in branch '2.7': [2.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396). (GH-8400) https://github.com/python/cpython/commit/46cb5fd706563673663e676bb70f46a73f4edc89

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0ff174643437f34c50c8625462b5419b1a643b57 by Serhiy Storchaka in branch '3.6': [3.6] bpo-34189: Add simple tests for new Tk widget options. (GH-8396) (GH-8399) https://github.com/python/cpython/commit/0ff174643437f34c50c8625462b5419b1a643b57

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c7b91d95d8890a4bafefa797f194a1ae3f0f0abb by Serhiy Storchaka in branch '3.7': [3.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396) (GH-8398) https://github.com/python/cpython/commit/c7b91d95d8890a4bafefa797f194a1ae3f0f0abb

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7926 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7927 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7925 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c75c1e0e8aeb720ac3fcfab119b70cabba4e8235 by Serhiy Storchaka in branch 'master': bpo-34189: Fix checking for bugfix Tcl version. (GH-8397) https://github.com/python/cpython/commit/c75c1e0e8aeb720ac3fcfab119b70cabba4e8235 --

[issue34180] bool(Q) always return True for a priority queue Q

2018-07-22 Thread Tim Peters
Tim Peters added the comment: I'm sure Guido designed the API to discourage subtly bug-ridden code relying on the mistaken belief that it _can_ know the queue's current size. In the general multi-threaded context Queue is intended to be used, the only thing `.qsize()`'s caller can know is

[issue34127] Gramatically incorrect error message for some calls with wrong number of arguments

2018-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: We don't normally backport an exception message change unless its content, as opposed to style, is erroneous. -- type: -> enhancement versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7924 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34188] Allow dict choices to "transform" values in argpagse

2018-07-22 Thread ppperry
Change by ppperry : -- title: Use dicts to "transform" argparse arguments to values -> Allow dict choices to "transform" values in argpagse ___ Python tracker ___

[issue25943] Integer overflow in _bsddb leads to heap corruption

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 041a4ee9456d716dd449d38a5328b82e76f5dbc4 by Serhiy Storchaka (Zackery Spytz) in branch '2.7': bpo-25943: Check for integer overflow in bsddb's DB_join(). (GH-8392)

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e271ca78e37a502b3dc1036f824aa3999efcd56b by Serhiy Storchaka in branch 'master': bpo-34189: Add simple tests for new Tk widget options. (GH-8396) https://github.com/python/cpython/commit/e271ca78e37a502b3dc1036f824aa3999efcd56b --

[issue34154] Tkinter __init__ documentations sometimes missing valid keyword values

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few new options were added: see issue34189. -- ___ Python tracker ___ ___ Python-bugs-list

[issue21446] Update reload fixer to use importlib instead of imp

2018-07-22 Thread Brett Cannon
Brett Cannon added the comment: I think we said backporting fixers was fine but I honestly don't remember. On Sat, Jul 21, 2018, 23:22 Berker Peksag, wrote: > > Berker Peksag added the comment: > > Thanks, Brett. I've opened PR 8391. Should we backport this to 3.7? We do > backport

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7923 stage: -> patch review ___ Python tracker ___ ___

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-07-22 Thread Windson Yang
Windson Yang added the comment: Add a __del__ method in the Pool class should work. But I'm not sure we should do this. -- ___ Python tracker ___

[issue34189] Add simple tests for new Tk widget options

2018-07-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following PR adds simple tests for Tk widget options added in Tk 8.6.5. TIP 441: Add -justify Configuration Option to the listbox Widget https://core.tcl.tk/tips/doc/trunk/tip/441.md TIP 437: Tk panedwindow options for proxy window

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-07-22 Thread Windson Yang
Change by Windson Yang : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2018-07-22 Thread Anjali Bansal
Anjali Bansal added the comment: Thank you for the information. I had started working on this issue. You can assign it to me if needed. I will create a PR soon. Github Username: bansalanjali2512 -- ___ Python tracker

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-07-22 Thread tzickel
tzickel added the comment: But alas that does not work... -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue34127] Gramatically incorrect error message for some calls with wrong number of arguments

2018-07-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have added a simple patch based on the changes by https://bugs.python.org/issue29951. The C code related error messages doesn't seem to have been covered by tests and I have added some tests. I have limited knowledge of C and this is my first C

[issue34127] Gramatically incorrect error message for some calls with wrong number of arguments

2018-07-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +7922 stage: needs patch -> patch review ___ Python tracker ___

[issue20906] Issues in Unicode HOWTO

2018-07-22 Thread A.M. Kuchling
Change by A.M. Kuchling : -- keywords: +patch pull_requests: +7921 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34186] [3.6.6 on macOS] os.listdir replacing "/" with ":"

2018-07-22 Thread Todd
Todd added the comment: Ah, thank you for the link. I looked for something like that, but I obviously didn’t use the right wording while searching. Sorry for the false report and thanks for the quick help. -Todd Sent from my iPhone > On Jul 21, 2018, at 10:10 PM, Zachary Ware wrote: > >

[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Zachary Ware
Zachary Ware added the comment: I like to think I'm fairly reasonable :). You can get what you want by specifying `type=choices_dict.get`, or by extracting from the dict manually after calling `parse_args`. -- nosy: +zach.ware ___ Python tracker

[issue25943] Integer overflow in _bsddb leads to heap corruption

2018-07-22 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7920 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25943] Integer overflow in _bsddb leads to heap corruption

2018-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: Integer overflow can also occur in DB_join(). -- ___ Python tracker ___ ___ Python-bugs-list

[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Victor Porton
New submission from Victor Porton : The below code produces "rock", but it should produce "a". This (to use dict value instead of the key by argparse result) is both to be a new useful feature (for example to map strings in a command line to certain functions or classes provided as dict

[issue34188] Use dicts to "transform" argparse arguments to values

2018-07-22 Thread Victor Porton
Change by Victor Porton : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34166] Tools/msgfmt.py emits a DeprecationWarning under Python 3.7

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.8 ___ Python tracker ___

[issue34181] Lib/test/test_typing.py failed when ran as a script

2018-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34181] Lib/test/test_typing.py failed when ran as a script

2018-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 81f85d09f4cc83fc35452afcca75baaf64831b22 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380) (GH-8385)

[issue34158] Documentation of datetime '%z' format code is odd

2018-07-22 Thread Martin Panter
Martin Panter added the comment: FWIW more oddities with this paragraph could be fixed by: * removing the first “and” from “HH is . . ., [and] MM is . . ., SS is . . . and uu is”, * changing the condition for omitting “uu” from “a whole number of [minutes]” to “seconds”, and *

[issue34115] code.InteractiveConsole.interact() closes stdin

2018-07-22 Thread Eryk Sun
Eryk Sun added the comment: > On Windows Console, sys.stdin.close() does not prevent a second > interact call. This might be considered a bug. This is a bug in io._WindowsConsoleIO. In Python 3, the sys.std* file objects that get created at startup use closefd=False: >>>

[issue34187] Issues with lazy fd support in _WindowsConsoleIO fileno() and close()

2018-07-22 Thread Eryk Sun
New submission from Eryk Sun : The _WindowsConsoleIO implementation of fileno should raise a ValueError if the internal handle value is INVALID_HANDLE_VALUE. Currently it raises io.UnsupportedOperation, and only if closefd=True. >>> f = open('conin$', 'r') >>> f.close() >>>

[issue31935] subprocess.run() timeout not working with grandchildren and stdout=PIPE

2018-07-22 Thread Martin Panter
Martin Panter added the comment: Closing in faviour of Issue 30154, which suggests documentation or adjusting the timeout implementation. There is also Issue 26534 proposing a new “kill_group” option when using the timeout feature. -- resolution: -> duplicate stage: -> resolved

[issue33154] subprocess.Popen ResourceWarning should have activation-deactivation flags

2018-07-22 Thread Martin Panter
Martin Panter added the comment: Can’t you use Python’s existing CLI and environment variable to control the ResourceWarning messages? Warnings where enabled

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2018-07-22 Thread STINNER Victor
STINNER Victor added the comment: I would say that Python no longer officially supports sparc and solaris because of the lack of volunteer. -- ___ Python tracker ___

[issue34136] Del on class __annotations__ regressed, failing test

2018-07-22 Thread Kay Hayen
Kay Hayen added the comment: As somebody whose opinion is even less important: Did you consider my suggestion to make it a "SyntaxError" for "del __annotations__" on a class level or even module level or at all? Or does this go too far? Yours, Kay --

[issue21446] Update reload fixer to use importlib instead of imp

2018-07-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Brett. I've opened PR 8391. Should we backport this to 3.7? We do backport mimetypes additions (see https://github.com/python/cpython/commit/8204b903683f9e0f037ccfaa87622716019914d7 for an example) I think lib2to3 falls into the same category as

[issue21446] Update reload fixer to use importlib instead of imp

2018-07-22 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +7919 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: