[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

2018-06-29 Thread Elliot Gorokhovsky
Elliot Gorokhovsky added the comment: You can always fall back on safe_object_compare. So unless there's an obvious reason why your edge case can't be triggered, it would be worth putting that in as a failsafe. The additional branch should be 100% predictable, so there shouldn't be any

[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +elliot.gorokhovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, do you want to take this one? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue33959] doc Remove time complexity mention from list Glossary entry

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Let's leave this as-is. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you want to submit a patch? -- nosy: +rhettinger ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This might need a deprecation before switching but it would be useful. The DictReader can produced huge numbers of instances that would benefit from the smaller size. -- nosy: +rhettinger ___ Python tracker

[issue34007] test_gdb fails in s390x SLES buildbots

2018-06-29 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_gdb is currently failing on the following buildbots: http://buildbot.python.org/all/#/builders/54/builds/465 http://buildbot.python.org/all/#/builders/66/builds/178 http://buildbot.python.org/all/#/builders/16/builds/1279

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-29 Thread Roel Schroeven
New submission from Roel Schroeven : Since 3.7 (and possibly 3.6.6) the .chm Windows help file uses fixed line lenghts, instead of properly adapting to the window width. Please revert to the old behavior. See screenshot: the empty space on the right is just silly. -- components:

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Indeed, it is the exact same patch. Sorry about the duplicate. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28411] Eliminate PyInterpreterState.modules.

2018-06-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +7625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Zackery Spytz
Zackery Spytz added the comment: This is a duplicate of #33911 (which already has a PR). -- nosy: +ZackerySpytz ___ Python tracker ___

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Library (Lib), XML versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +7624 stage: -> patch review ___ Python tracker ___ ___

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : xmlrpc still makes use of formatargspec which is deprecated since Python 3.5 and raises a deprecation warning: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly The proposed patch replace

[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-06-29 Thread Joseph Sible
New submission from Joseph Sible : When Python is built on Alpine Linux or in any other configuration that uses musl libc, calls to Lock.acquire() can't be interrupted by signals. This bug is caught by test_lock_acquire_interruption and test_rlock_acquire_interruption in

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Michael Selik added the comment: I searched for previously submitted issues, but somehow didn't spot #32339. I'll do some searching for whether anyone uses ``move_to_end`` on DictReader rows and respond to the mailing list with a report. -- ___

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Błażej Michalik, can you confirm the attached patch fixed the issue for you? -- nosy: +remi.lapeyre ___ Python tracker ___

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +7623 stage: -> patch review ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Eric V. Smith
Eric V. Smith added the comment: The dict and OrderedDict APIs are slightly different, although I'm not sure anyone cares. See #32339. In that PR https://github.com/python/cpython/pull/4904, Guido said to not make this change. See also the python-dev discussion at

[issue33977] [Windows] test_compileall fails randomly with PermissionError: [WinError 5] Access is denied: (...).pyc

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: While the issue is rare, I am sure that there is a race condition. The bug maybe happens when other tests run in parallel. The test should work in its own temporary directory to no be bothered by other tests. --

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0464de0f9a226cfa32b803e0326c12b2432aba26 by Serhiy Storchaka (Zackery Spytz) in branch '2.7': [2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8013)

[issue33700] [doc] Old version picker don't understand language tags in URL

2018-06-29 Thread Larry Hastings
Larry Hastings added the comment: Doc fixes are generally okay in security-fixes-only branches. Obviously I'd want to review it before it went in; it sounds like a simple change (one line change to an RE?), so you can send me a PR or just post it here if you want a pre-review. --

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Michael Selik added the comment: Pull request. https://github.com/python/cpython/pull/8014 -- ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- keywords: +patch pull_requests: +7622 stage: -> patch review ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
New submission from Michael Selik : Since dicts are now keeping insertion order as of 3.7, we can switch to the more efficient construction of dict rather than OrderedDict for each row in the CSV file. -- messages: 320734 nosy: selik priority: normal severity: normal status: open

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7621 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33977] [Windows] test_compileall fails randomly with PermissionError: [WinError 5] Access is denied: (...).pyc

2018-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: #20760 reported failures on Linux. I think one of these two issues should be closed. FWIW, I ran f:\dev\3x>python -m test -R 3:10 -m CommandLineTests test_compileall twice with no failures. -- nosy: +terry.reedy

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d6a283b37b66ecd2d0ff43602ddc8e91b54a51c5 by Serhiy Storchaka (Zackery Spytz) in branch '3.6': [3.6] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8012)

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: My vote is for "that's just the way it is, it works fine for just about everyone most of the time". In pure Python code, it is expensive to try to handle or defend against all possible input variations. -- assignee: -> tim.peters nosy:

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- components: +email nosy: +barry, r.david.murray versions: +Python 3.8 ___ Python tracker ___ ___

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- keywords: +patch pull_requests: +7620 stage: -> patch review ___ Python tracker ___ ___

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
New submission from Michael Selik : The primary motivation for these improvements was avoiding a while/pop pattern for looping. A for-loop is a big improvement over copying a list, then repeatedly popping the 0th element. A lesser improvement is the use of ``a.intersection(b)`` instead of

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7619 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33927] Allow json.tool to have identical infile and outfile

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Pablo, I added two tests to confirm that file descriptors do not link anymore. The tests are rather ugly but I'm not sure if it's possible to do better. Is this patch ok for you? -- ___ Python tracker

[issue33949] tests: allow to select tests using loadTestsFromName

2018-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have used test -m, but a point in favor of this proposal, for other people, is consistency with running unittest f:\dev\3x>python -m unittest idlelib.idle_test.test_autocomplete.AutoCompleteTest.test_init Running Debug|Win32 interpreter... .

[issue33980] SSL Error when uploading package to your own pypi

2018-06-29 Thread Éric Araujo
Éric Araujo added the comment: I don’t think there is an option (see the --help command), but on localhost you could use http instead of https. Otherwise it’s strongly recommended to use twine to upload. -- ___ Python tracker

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Erik Wolf
Erik Wolf added the comment: To help get an idea of the racing condition I created a trace with several additional debug outputs in pool.py and connection.py "=== Creating new pool ===" marks a new start of a pool using the Pool.imap() function. The iteration is terminated at some

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-29 Thread Eric Snow
Eric Snow added the comment: > I looked quickly at _Py_InitializeCore() and I'm not sure > that it's designed to replace an existing configuration. > ... > So maybe for this specific case, _Py_InitializeCore() should > always set Py_HashRandomizationFlag. +1 At the same time, the use of

[issue33944] Deprecate and remove pth files

2018-06-29 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: I *think* we need to ask maintainers of packages who use .pth -- at least, Mark Hammond (pywin32) -- to find out the impact and if everything can be done with other means. AFAICS it at least allows pywin32 to have many top-level modules without cluttering

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
Change by James Edwards : -- keywords: +patch pull_requests: +7617 stage: -> patch review ___ Python tracker ___ ___

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2018-06-29 Thread Alan Huang
New submission from Alan Huang : LibreSSL has a function called `ssl_clamp_version_range` that is called before attempting to set the minimum and maximum protocol versions in `ssl_version_set_{min,max}`. The function disallows setting ranges that are invalid (i.e., where minimum_version >

[issue34000] Document when compile returns a code object v. AST

2018-06-29 Thread Geoffrey Sneddon
New submission from Geoffrey Sneddon : The compile built-in documentation says: > Compile the source into a code or AST object. It doesn't however go on to say when it returns each! It does however note: > If you want to parse Python code into its AST representation, see ast.parse(). So

[issue33999] `pip3 install past` does not work

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a tracker for bugs in the Python interpreter. Use appropriate tracker for reporting bugs in a third-party project. -- nosy: +serhiy.storchaka resolution: -> third party stage: -> resolved status: open -> closed

[issue33999] `pip3 install past` does not work

2018-06-29 Thread Peter
New submission from Peter : When trying to install the `past` module using pip 10.0.1 using python 3.6.5 I get: $ pip3 install past --no-compile Collecting past Could not find a version that satisfies the requirement past

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Dan Snider
Change by Dan Snider : -- keywords: +patch pull_requests: +7616 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: "I have a really hard time believing that [...] others haven't noticed this rather glaring flaw in the code." *shrug* Easy or hard for you to believe, nevertheless this same quote-unquote "flaw" goes back to Python 1.5 or older. Whether that makes it a

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Dan Snider
New submission from Dan Snider : This "bug" is present even in 2.7. I have a really hard time believing that, even if it would be incredibly rare for someone to stumble upon this, may others haven't noticed this rather glaring flaw in the code. I couldn't find any similar issues though. My

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: > Thanks STINNER for your help.The issue has been resolved.It was related to > gdb itself and not Python. Oh good! Happy to see that you solved your issue! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25612] nested try..excepts don't work correctly for generators

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue introduced a regression in Python 3.7.0: bpo-33996 "Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory". -- ___ Python tracker

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: > I suspected that the bug is caused by the new exc_info attribute of > PyThreadState: commit ae3087c6382011c47db82fea4d05f8bbf514265d. The change comes from bpo-25612. -- ___ Python tracker

[issue33978] logging.config.dictConfig with file handler leaks resources

2018-06-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +7613 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread STINNER Victor
New submission from STINNER Victor : Attached dagpool_test.py script triggers a crash on Python 3.7, but works well on Python 3.6. The script is a highly simplified code of tests/dagpool_tests.py of eventlet. To reproduce the crash, you only need a single dependency: greenlet. Example using

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +7614 stage: -> patch review ___ Python tracker ___ ___

[issue33978] logging.config.dictConfig with file handler leaks resources

2018-06-29 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Erik Wolf
New submission from Erik Wolf : The terminate() method of multiprocessing.Pool hangs sporadically. I could track this issue down to the fact that _handle_results() hangs in the outqueue-cleanup. poll() returned True but get() actually hangs endlessly never returning any data. --

[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2018-06-29 Thread László Kiss Kollár
Change by László Kiss Kollár : -- nosy: +lkollar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: > @Steven lib2to3 is no longer specifically for python 2 code, it also > parses python 3 code Ah, all good then. Thanks. -- ___ Python tracker

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread miss-islington
miss-islington added the comment: New changeset eabebbb54c2604fd8d08e8019ea1be634aed8c2f by Miss Islington (bot) in branch '3.7': bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918) https://github.com/python/cpython/commit/eabebbb54c2604fd8d08e8019ea1be634aed8c2f

[issue33959] doc Remove time complexity mention from list Glossary entry

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +7612 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 23db935bcf258657682e66464bf8512def8af830 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-06-29 Thread Steffen Schuldenzucker
Steffen Schuldenzucker added the comment: To give you a data point, I just hit this problem. Based on the docs and common sense, I didn't expect LoggerAdapter to throw away the other extra arguments. I strongly feel that this is a bug. I cannot see how it could be desired behavior over the

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread skreft
skreft added the comment: @Steven lib2to3 is no longer specifically for python 2 code, it also parses python 3 code and is the building block of tools like YAPF. See Eli's comment on this https://bugs.python.org/issue23894: "AFAIK lib2to3 has been repurposed to parse Python 3 as well - it

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
James Edwards added the comment: This came up in a StackOverflow question[1] today, so I took a stab at addressing the error. The changes don't restore the 2.x behavior, but just do as R. David Murray suggested and coerce the keys to strings prior to sorting to prevent the error. The

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread Vibhuti
Vibhuti added the comment: Thanks STINNER for your help.The issue has been resolved.It was related to gdb itself and not Python. -- ___ Python tracker ___

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +2to3 (2.x to 3.x conversion tool) nosy: +benjamin.peterson, eric.smith ___ Python tracker ___

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use: rel_name = "tmp/test.md" -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker