[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-08-30 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Could the fix be backported to 2.7 branch? Apparently on macOS 2.7 is also affected https://github.com/macports/macports-ports/pull/2456 -- nosy: +yan12125 ___ Python tracker

[issue34552] Clarify built-in types comparisons

2018-08-30 Thread Windson Yang
New submission from Windson Yang : In https://docs.python.org/3.5/library/stdtypes.html#comparisons "some types (for example, function objects) support only a degenerate notion of comparison where any two objects of that type are unequal." We had some discussion at zulipchat already: "more

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> vstinner nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___

[issue34443] enum repr should use __qualname__

2018-08-30 Thread orlnub123
orlnub123 added the comment: I've created a separate PR that also changes the __str__s. -- nosy: +orlnub123 ___ Python tracker ___

[issue34443] enum repr should use __qualname__

2018-08-30 Thread orlnub123
Change by orlnub123 : -- pull_requests: +8481 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-30 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > if we can't make assertions about the behavior of strftime outputs, I think > it makes it hard to prevent regressions. Ironically, some of the changes we may have to make to fix time.strftime() inconsistencies may appear like regressions to some users.

[issue22872] multiprocessing.Queue raises AssertionError

2018-08-30 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22872] multiprocessing.Queue raises AssertionError

2018-08-30 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +8480 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34445] asyncio support in doctests

2018-08-30 Thread Stefan Tjarks
Stefan Tjarks added the comment: Thanks Grant! I expected that I am missing something. You are right that I could have posted in many places to get help about this. Before posting I tried to find a doctest for asyncio but my google magic failed me. At the end I just felt that, at the very

[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-08-30 Thread Tercio Gaudencio Filho
Change by Tercio Gaudencio Filho : -- nosy: +Tercio Gaudencio Filho ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34519] Add additional aliases for HP Roman 8

2018-08-30 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Wikipedia references it: https://en.wikipedia.org/wiki/HP_Roman#Roman-8 as well as IBM on its pages: https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.wmqfte.doc/codepages.htm --

[issue34445] asyncio support in doctests

2018-08-30 Thread Grant Jenks
Grant Jenks added the comment: This is not a bug in Python. The SyntaxError matches expected behavior. According to the Python grammar, you can't have "await" outside of a function. You have "await" at the globals scope which is not permitted. You may only "await" functions from within

[issue34481] Different behavior of C and Python impls of datetime.strftime with non-UTF-8-encodable strings

2018-08-30 Thread Paul Ganssle
Paul Ganssle added the comment: @izbyshev That's totally fair and I wouldn't want to make it a condition of merging the existing fixes - I've already made great progress in fixing the time.strftime part as well. The main reason it relates here is that I generally find the tests to be among

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-30 Thread Eric Lippert
Change by Eric Lippert : -- keywords: +patch pull_requests: +8479 stage: -> patch review ___ Python tracker ___ ___

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-08-30 Thread Steve Dower
Steve Dower added the comment: Agreed with not putting platform-specific details everywhere, but in this case we can probably have a generic wording for "Blocks for `timeout` seconds as best as is available on the current operating system". It is a general problem across all timeouts, so

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-30 Thread Eric Lippert
New submission from Eric Lippert : In _PyFunction_FastCallDict we have local nk assigned to be the size of a dictionary, and then local i is assigned to twice the size of the same dictionary, and then nk is assigned to half of i, which it already is: nk = (kwargs != NULL) ?

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-08-30 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34550] UnicodeDecodeError when invoke method configure() of Menu instance

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

[issue34427] calling MutableSequence.extend on self produces infinite loop

2018-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34427] calling MutableSequence.extend on self produces infinite loop

2018-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 1b5f9c9653f348b0aa8b7ca39f8a9361150f7dfc by Raymond Hettinger (Naris R) in branch 'master': bpo-34427: Fix infinite loop when calling MutableSequence.extend() on self (GH-8813)

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-30 Thread Ammar Askar
Ammar Askar added the comment: For some empirical data, I went through some popular packages that follow this pattern and searched for usage of their base exception classes: Requests: https://github.com/search?q=except+requests.RequestException=Code PyYaml:

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-08-30 Thread Nick Coghlan
Nick Coghlan added the comment: Given that importlib is essentially just doing "listdir", it would be interesting to know how the following behaves in a tight loop on affected systems: # Write a file f = open(os.path.join(dirname, "testname.py"), "w") f.write("text\n")

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-30 Thread Brett Cannon
Brett Cannon added the comment: I'm not questioning if people have ever created a base exception for an entire package, I'm just asking how often it's actually used when the base exception didn't make sense outside of the rule-of-thumb Nathaniel is pointing out? For instance, it could makes

[issue34550] UnicodeDecodeError when invoke method configure() of Menu instance

2018-08-30 Thread Tao Chen
New submission from Tao Chen : [Brief Description] Python 3.7.0 IDLE. After create one Menu instance, and invoke it's config() or configure() method without any parameter, python print UnicodeDecodeError. [Walk around] menubar = Menu(root) menubar.config(font=('Arial')) [LOG] Python 3.7.0

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: See https://bugs.python.org/issue443559 and "git log -p 13af42822cd". One other example from real code: requests.RequestException -- nosy: +fdrake ___ Python tracker

[issue34539] namedtuple's exec() throws segmentation fault

2018-08-30 Thread Álvaro Justen
Álvaro Justen added the comment: Yes, I think it was fixed in https://bugs.python.org/issue34087 (didn't see the commits), I just wanted to report it because I don't know if a test for this specific case is needed (the other bug is not related to namedtuples). --

[issue21145] Add the @cached_property decorator

2018-08-30 Thread Carl Meyer
Carl Meyer added the comment: Thanks everyone for the thoughtful and careful reviews! Patch is much improved from where it started. And thanks Nick for merging. -- ___ Python tracker

[issue34549] unittest docs could use another header

2018-08-30 Thread Nick
New submission from Nick : I find myself reaching for a list of the assert methods in the unittest library often. There are several methods but no clear way to link a URL via a header if you intend to bookmark or send it out. I have been using the method above the section in the meantime

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-30 Thread STINNER Victor
STINNER Victor added the comment: > Yeah, there were some good reasons I went with the relatively brute force > option of provideding Blender with a new config API call back in bpo-16129 - > as we've seen, actually fixing it properly has been a multi-year multi-person > effort :) Yeah, I

[issue21145] Add the @cached_property decorator

2018-08-30 Thread Nick Coghlan
Nick Coghlan added the comment: This has now been merged. Thanks for the multiple iterations on the implementation Carl, and thanks for the original proposal, Omer! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue34485] _PyCoreConfig: add stdio_encoding and stdio_errors

2018-08-30 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, there were some good reasons I went with the relatively brute force option of provideding Blender with a new config API call back in bpo-16129 - as we've seen, actually fixing it properly has been a multi-year multi-person effort :) -- nosy:

[issue34539] namedtuple's exec() throws segmentation fault

2018-08-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34530] distutils: find_executable() fails if the PATH environment variable is not set

2018-08-30 Thread STINNER Victor
STINNER Victor added the comment: > find_executable() always searches executables from the current directory. Oh! I didn't notice that! -- ___ Python tracker ___

[issue34548] IDLE: Make TextView use the configured theme colors

2018-08-30 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +8478 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34548] IDLE: Make TextView use the configured theme colors

2018-08-30 Thread Tal Einat
Change by Tal Einat : -- assignee: taleinat components: IDLE nosy: taleinat, terry.reedy priority: low severity: normal status: open title: IDLE: Make TextView use the configured theme colors versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

[issue34530] distutils: find_executable() fails if the PATH environment variable is not set

2018-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: find_executable() always searches executables from the current directory. This effectively equivalent having os.curdir at the start of path. shutil.which() does this only on Windows. This change LGTM, but it potentially can break user code, thus it may be

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-30 Thread Sergey G. Brester
Sergey G. Brester added the comment: I have extended the PR a bit (more tests and corresponding documentation part). -- ___ Python tracker ___

[issue34544] FreeBSD: Fatal Python error: get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed

2018-08-30 Thread STINNER Victor
STINNER Victor added the comment: I cannot reproduce the issue on my FreeBSD 11.1 VM. I cannot reproduce the issue on Koobs's "CURRENT-amd64%" buildbot neither :-( Example: CURRENT-amd64% env -i LC_ALL=invalid LC_CTYPE=invalid LANG=invalid PYTHONUTF8=0 PYTHONCOERCECLOCALE=0 ./python -X

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-08-30 Thread STINNER Victor
STINNER Victor added the comment: > 11:23:19 up -24855 days, -3:-14, 0 users, load average: 0.52, 0.58, 0.59 Impressive uptime! -- ___ Python tracker ___

[issue34545] error in the repl due to indentation

2018-08-30 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> third party stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields

2018-08-30 Thread Berker Peksag
Change by Berker Peksag : -- type: enhancement -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26901] Argument Clinic test is broken

2018-08-30 Thread STINNER Victor
STINNER Victor added the comment: Pablo, Serhiy: there are now 2 PR (one written by Pablo, one by me). Would you mind to have a look and tell me what is your preferred PR? My PR is based on Pablo's PR, I just changed how the tests are run to make sure that they are run on *all* CIs, not

[issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields

2018-08-30 Thread ernest ruiz
Change by ernest ruiz : -- type: crash -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34547] Wsgiref server does not handle closed connections gracefully

2018-08-30 Thread Petter S
New submission from Petter S : The server in the wsgiref module is actually used a lot. For example, it is the server Django uses for development. A very common thing that happens during Django development is that the web browser closes the connection for some reason. Then very long stack

[issue34547] Wsgiref server does not handle closed connections gracefully

2018-08-30 Thread Petter S
Change by Petter S : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-08-30 Thread Tal Einat
Tal Einat added the comment: > 1. Yes. Always show. Fix delay at 80 until we decide on something better. Done. > 2. No. Max should be enough. Done. > I once printed over 500_000 short lines to see if scrolling remained > responsive. It did. I could have set min to 1_000_000 for that

[issue33965] [Windows WSL] Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time, after year 2038

2018-08-30 Thread Petter S
Petter S added the comment: I am updating this bug since someone may find it. The problem lies with WSL. After having my computer running for many days, this is the result of the uptime command: $ uptime 11:23:19 up -24855 days, -3:-14, 0 users, load average: 0.52, 0.58, 0.59 Restarting

[issue34546] Zipfile encryption function

2018-08-30 Thread 大野隆弘
New submission from 大野隆弘 : from https://mail.python.org/pipermail/python-ideas/2018-August/053081.html I would like to use zipfile encryption as python standard library. https://github.com/python/cpython/blob/master/Lib/zipfile.py Below document says "currently" cannot.

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-30 Thread Bob Ippolito
Bob Ippolito added the comment: I suggested that each module would likely implement its own functions tailored to that project's IO and error handling requirements. The implementation may differ slightly depending on the protocol. This is consistent with how JSON is typically dealt with

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-30 Thread ron
ron added the comment: I'm a bit confused here. On one hand you say it's two lines of code. On other hand you suggest that each service provider will implement it's own functions. What's the harm from adding - small , unbreakable functionality? Your points for small code could have also

[issue34545] error in the repl due to indentation

2018-08-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this related to pyreadline? I can see an upstream issue with similar traceback and an open PR with some discussion. GitHub issue : https://github.com/pyreadline/pyreadline/issues/49 Open PR : https://github.com/pyreadline/pyreadline/pull/51