[issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

2017-10-27 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset afad147b59fe84b12317f7340ddd2deeecb22321 by Vinay Sajip (Lovesh Harchandani) in branch 'master': bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) https://github.com/python/cpython/commit/afad147b59fe84b12317f7340ddd2deeecb2232

[issue31877] Build fails on Cygwin since issue28180

2017-10-27 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 031c4bfadb69feeda82ce886d6b0cadc638d2e1e by Nick Coghlan (Erik Bray) in branch 'master': bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h (GH-4134) https://github.com/python/cpython/commit/031c4bfadb69feeda82ce886

[issue31877] Build fails on Cygwin since issue28180

2017-10-27 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31861] aiter() and anext() built-in functions

2017-10-27 Thread Davide Rizzo
Davide Rizzo added the comment: I attempted to make a Python implementation (attached) to use in my code. There are a few questions in the comments. One of the complications is the async equivalent of next with two arguments like next(iterator, default). It cannot return the result of __anext

[issue31878] Cygwin: _socket module does not compile due to missing ioctl declaration

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4111 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31415] Add -X option to show import time

2017-10-27 Thread STINNER Victor
STINNER Victor added the comment: > I didn't think it's worth enough because import will be much slower than one > dict lookup. I don't care much of performance. For the consistency with other environment variables, I like to only read the environment variable once ("at startup"), and not do

[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4112 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31415] Add -X option to show import time

2017-10-27 Thread INADA Naoki
INADA Naoki added the comment: Xoptions is not environment variable. Some modules are imported before xoptions are parsed. So negative cache for xoptions is little more complex than negative cache for environment variable. -- ___ Python tracker

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-10-27 Thread Berker Peksag
Berker Peksag added the comment: New changeset 843ea47a034307c7b1ca642dd70f0269255b289a by Berker Peksag (Utkarsh Upadhyay) in branch 'master': bpo-31545: Update documentation containing timedelta repr. (GH-3687) https://github.com/python/cpython/commit/843ea47a034307c7b1ca642dd70f0269255b289a

[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Berker Peksag
Berker Peksag added the comment: New changeset 843ea47a034307c7b1ca642dd70f0269255b289a by Berker Peksag (Utkarsh Upadhyay) in branch 'master': bpo-31545: Update documentation containing timedelta repr. (GH-3687) https://github.com/python/cpython/commit/843ea47a034307c7b1ca642dd70f0269255b289a

[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ __

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-10-27 Thread Berker Peksag
Berker Peksag added the comment: All PRs have been merged in both issues (this and bpo-31545) so I guess this issue can be closed now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31872] SSL BIO is broken for internationalized domains

2017-10-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread Stefan Krah
Stefan Krah added the comment: Should we care about the C11 restriction? http://en.cppreference.com/w/c/memory/aligned_alloc "size - number of bytes to allocate. An integral multiple of alignment" posix_memalign and _aligned_malloc don't care about the multiple. On the other hand, sane req

[issue16135] Removal of OS/2 support

2017-10-27 Thread Erik Bray
Change by Erik Bray : -- pull_requests: +4113 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue16135] Removal of OS/2 support

2017-10-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03eb11f0b354751248b427455b89e9340cfd2b47 by Victor Stinner (Erik Bray) in branch 'master': bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147) https://github.com/python/cpython/commit/03eb11f0b354751248b427455b89e9340cfd2b47

[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread STINNER Victor
STINNER Victor added the comment: Thank you Utkarsh Upadhyay for finishing the change up to the documentation ;-) -- nosy: +haypo ___ Python tracker ___ ___

[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7351f9e5a91c403d15c6d556f9989b443f1296f9 by Serhiy Storchaka in branch 'master': bpo-31174: Improve the code of test_tools.test_unparse. (#4146) https://github.com/python/cpython/commit/7351f9e5a91c403d15c6d556f9989b443f1296f9 -- ___

[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4114 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray
New submission from Erik Bray : Some of the tests for asyncio and asyncore block forever on Cygwin, due to a known (and seemingly difficult to fix) bug [1] in Cygwin involving SO_PEERCRED on UNIX sockets. SO_PEERCRED is a socket option that can be used to exchange file ownership info of the s

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray
Change by Erik Bray : -- keywords: +patch pull_requests: +4115 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bb78898224c99cbf9c6beed8706869f9b66967c2 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148) https://github.com/python/cpython/commit/bb78898224c99cbf9c6beed87068

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray
New submission from Erik Bray : There is an acknowledged bug in Cygwin's implementation of wcsxfrm() [1] that can cause heap corruption in certain cases. This bug has since been fixed in Cygwin 2.8.1-1 [2] and all current and future releases. However, that was relatively recent (July 2017) s

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray
Change by Erik Bray : -- keywords: +patch pull_requests: +4116 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue31884] subprocess set priority on windows

2017-10-27 Thread Mr JG Kent
Change by Mr JG Kent : -- components: Library (Lib) nosy: JamesGKent priority: normal severity: normal status: open title: subprocess set priority on windows type: enhancement ___ Python tracker __

[issue31884] subprocess set priority on windows

2017-10-27 Thread Mr JG Kent
Change by Mr JG Kent : -- keywords: +patch pull_requests: +4117 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: :) There's still a lot of room for improvement on documentation front, esp. the inline __doc__s. I'll be working on that next. ~ ut -- ___ Python tracker ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread STINNER Victor
STINNER Victor added the comment: PR 4089 becomes much more larger than what I expected, so I propose to defer enhancements to following PR, especially the idea of "emulating" PyMem_AlignedAlloc() on top of PyMem_Malloc() if the user calls PyMem_SetAllocators() without implemented aligned_all

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray
New submission from Erik Bray : Like issue31882, this is to mention an upstream bug in Cygwin that causes one of the tests in the test_socket test suite to hang indefinitely. That bug is fixed upstream [1], but for now it would still be better to skip the test on Cygwin. The bug is that in s

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray
Change by Erik Bray : -- keywords: +patch pull_requests: +4119 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue31886] Multiprocessing.Pool hangs after re-spawning several worker process.

2017-10-27 Thread olarn
New submission from olarn : Multiprocessing's pool apparently attempts to repopulate the pool in an event of sub-process worker crash. However the pool seems to hangs after about ~ 4*(number of worker) process re-spawns. I've tracked the issue down to queue.get() stalling at multiprocessing.po

[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Erik Bray
Change by Erik Bray : -- pull_requests: +4120 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Masayuki Yamamoto
Change by Masayuki Yamamoto : -- pull_requests: +4121 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I opened PR 4153 that is an alternative for PR 4136 (issue2445). -- ___ Python tracker ___ ___ P

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since this bug has been fixed in Cygwin, I don't think we should add a workaround for it. The expected date of Python 3.7 release is 2018-06-15, this is far from the date of releasing the fixed Cygwin. -- nosy: +serhiy.storchaka ___

[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread Peter Wullinger
New submission from Peter Wullinger : The documentation for email.generator.{Bytes,}Generator do not mention that Generator._handle_multipart_signed() exists and disables header folding for subparts of multipart/signed. This may cause some frustration, since, as implemented, rendering a messag

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: I don't know if saving the changes would be too difficult. 1. Create a new config file for the text (I think it would clutter the existing config files, but could also add it there). 2. Load font_sample_text from the config file. 3. In apply(), write the te

[issue31871] Support for file descriptor params in os.path

2017-10-27 Thread Éric Araujo
Éric Araujo added the comment: > support passing file descriptor instead of a path. os.path functions Are you sure about that? The docs for os.stat show the dir_fd parameter, used to avoid directory renaming issues or attacks, but it doesn’t say that the *path* argument can be an int file de

[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread R. David Murray
R. David Murray added the comment: The patch looks good to me if someone wants to make a PR out of it. If you wouldn't mind digitally signing the CLA, Peter, that would make PSF legal happy, though I doubt a one sentence doc patch is really an issue. -- _

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray
Erik Bray added the comment: To be clear, are you saying there shouldn't be a workaround to the underlying issue (I agree), or are you saying the test skip shouldn't even be added? I'm in favor of just skipping the test since it's still a problem on (currently) recent Cygwin versions. And it'

[issue31430] [Windows][2.7] Python 2.7 compilation fails on mt.exe crashing with error code C0000005

2017-10-27 Thread Steve Dower
Steve Dower added the comment: I don't remember exactly how VS 2008 handled the installation, but it likely wasn't designed with Windows 8 in mind :) I believe since Windows 8, the Windows Features approach is the correct way to install it, and I'm not even sure you can download installers an

[issue31884] subprocess set priority on windows

2017-10-27 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue31884] subprocess set priority on windows

2017-10-27 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-

[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: According to your reference a problem is fixed in recent Cygwin versions, isn't? Skipping the test on Cygwin means that wcsxfrm() will be untested on this platform. Future regressions will be unnoticed. -- ___ Py

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-10-27 Thread Ilya Kulakov
Ilya Kulakov added the comment: Can this be included into the next bugfix release? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue31430] [Windows][2.7] Python 2.7 compilation fails on mt.exe crashing with error code C0000005

2017-10-27 Thread David Bolen
David Bolen added the comment: Sounds good. I must admit I hadn't actually gone looking for a standalone installer yet, but just assumed it would exist. The Win10 worker now has the .NET 3.5 feature installed (which also installed 2.0 and 3.0). Builds seem fine even after removing the tempo

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread Nathaniel Smith
Nathaniel Smith added the comment: > On the other hand, sane requests will have the exact multiple most of the > time anyway. The ways we've discussed using aligned allocation in numpy wouldn't follow this requirement without special checking. Which isn't necessarily a big deal, and numpy w

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, thanks for explaining, in part, why I don't want to do this ;-). Using the the current .def, .cfg system would mean that the default sample would be frozen. I want to be able to change it. -- ___ Python t

[issue31881] subprocess.returncode not set depending on arguments to subprocess.run

2017-10-27 Thread Nick
Change by Nick : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue31863] Inconsistent returncode/exitcode for terminated child processes on Windows

2017-10-27 Thread Eryk Sun
Eryk Sun added the comment: If a multiprocessing Process gets terminated by any means other than its terminate() method, it won't get this special TERMINATE (0x1) exit code that allows the object to pretend the exit status is POSIX -SIGTERM. In general, the exit code will be 1. IMO, Proce

[issue18670] Using read_mime_types function from mimetypes module gives resource warning

2017-10-27 Thread Martin Panter
Martin Panter added the comment: The patches would mask an OSError raised by the “readfp” call, which would be a change in behaviour. But moving the call does not seem to be necessary; why not leave it outside the “try” statement? -- nosy: +martin.panter _

[issue24291] Many servers (wsgiref, http.server, etc) can truncate large output blobs

2017-10-27 Thread Martin Panter
Martin Panter added the comment: Closing because I understand it is too late to do anything for 3.5 now. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: Makes sense. I guess I didn't think of it being frozen because I was thinking of it being more like the Recent Files list, but pre-populated if it were empty. As you said, probably not worth the effort. :-) -- _

[issue26618] _overlapped extension module of asyncio uses deprecated WSAStringToAddressA() function

2017-10-27 Thread Berker Peksag
Berker Peksag added the comment: Unfortunately, Python 3.5 is now in security-fix-only mode. Closing this 'out of date'. -- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed type: -> behavior versions: -Python 3.6 ___

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ed6554c487fb2403bc88be6deee611c7a4171d33 by Terry Jan Reedy (Serhiy Storchaka) in branch 'master': bpo-31860: Make the font sample in the IDLE font configuration dialog editable. (#4106) https://github.com/python/cpython/commit/ed6554c487fb2403b

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4122 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue2771] Test issue

2017-10-27 Thread Ezio Melotti
Change by Ezio Melotti : -- Removed message: https://bugs.python.org/msg303087 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4123 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6a2957de08e0c2d73f3124d12874b408cda4633d by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-31860: Make the font sample in the IDLE font configuration dialog editable. (GH-4106) (#4154) https://github.com/python/cpython/commit/6a2957

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4124 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -4123 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue13657] IDLE doesn't recognize resetting sys.ps1.

2017-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The part about startup files in my last message is probably wrong. If one starts IDLE by 'import idlelib.idle' after setting 'sys.ps1 = 'me ', then the setting is recognized. However, a startup file that runs in the user process will not affect sys.ps1 in t

[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -4108 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -4109 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31836] test_code_module fails after test_idle

2017-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a by Terry Jan Reedy in branch 'master': bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070) https://github.com/python/cpython/commit/5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a -- _

[issue31836] test_code_module fails after test_idle

2017-10-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4126 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-10-27 Thread Nick Coghlan
Nick Coghlan added the comment: A recent numpy threaded import bug report that appears in 3.6.1 but is absent in 3.6.3: https://github.com/numpy/numpy/issues/9931 So that's additional evidence that this really was a pre-existing race condition that the new tests for the SystemError cases reve

[issue31888] Creating a UUID with a list throws bad exception

2017-10-27 Thread Tilman Krummeck
New submission from Tilman Krummeck : I found a problem by accident on Python 3.5.3 with the uuid library. Running this: from uuid import UUID UUID(["string"]) This throws an AttributeError: Traceback (most recent call last): File "", line 1, in File "C:\Users\Tilman Krummeck\AppData\Loc