[issue31651] io.FileIO cannot write more than 2GB (-4096) bytes??? must be documented (if not fixed)

2017-09-30 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: Thank you for the follow-ups! Wouldn't it be better if Python documentation said exactly that On Linux, write() (and similar system calls) will transfer at most 0x7000 (2,147,479,552) bytes, returning the number of bytes

[issue31651] io.FileIO cannot write more than 2GB (-4096) bytes??? must be documented (if not fixed)

2017-09-30 Thread Eryk Sun
Eryk Sun added the comment: Additionally, the FileIO documentation states the following: The read() (when called with a positive argument), readinto() and write() methods on this class will only make one system call. The Linux man page for write() in turn states

[issue29041] Reference leaks on Windows

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: Victor has cleaned these up, and we now have a buildbot running refleak checks on Windows every day (as long as it's not hung :) -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue28027] Remove Lib/plat-*/* files

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: Since we've reached 3.6.3 with no complaints that have made it to me, I'm going to go ahead and close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue31652] make install fails: no module _ctypes

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: I expect that the root cause is missing libffi(-dev[el]) on your system, preventing _ctypes from building, so your quick fix would be to install that and try again. However, not having _ctypes shouldn't cause installation to fail.

[issue31651] io.FileIO cannot write more than 2GB (-4096) bytes??? must be documented (if not fixed)

2017-09-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: The docs to look at here are https://docs.python.org/3/library/io.html#io.RawIOBase.write, which points out that short writes can happen. -- nosy: +benjamin.peterson resolution: -> not a bug stage: -> resolved status: open

[issue31654] ctypes should support atomic operations

2017-09-30 Thread Daniel Colascione
New submission from Daniel Colascione : Say we're using multiprocessing to share a counter between two processes and we want to atomically increment that counter. Right now, we need to protect that counter with a multiprocessing semaphore of some sort, then 1) acquire the

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-09-30 Thread Daniel Colascione
New submission from Daniel Colascione : Right now, the main loop in semlock_acquire looks like this: do { Py_BEGIN_ALLOW_THREADS if (blocking && timeout_obj == Py_None) res = sem_wait(self->handle); else if (!blocking) res =

[issue31460] IDLE: Revise ModuleBrowser API

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

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Change by Martin Panter : -- Removed message: https://bugs.python.org/msg303440 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Martin Panter added the comment: . Actually take back a lot of what I wrote above. I forgot that SimpleHTTPRequestHandler only supports HTTP 1.0; I don’t think it uses keep-alive or persistent connections, so it should close its TCP connections promptly. There may be

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c8198c92320bc35b1e3de5ff0118bd8e20e8d68a by Terry Jan Reedy in branch '3.6': [3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)

[issue31650] implement PEP 552

2017-09-30 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-09-30 Thread Martin Panter
Martin Panter added the comment: The change in handling KeyboardInterrupt was my intention in Issue 23430. I hope it isn’t a problem on its own :) Running the module with “python -m http.server” uses the HTTPServer class, based on socketserver.TCPServer. This only

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +3824 ___ Python tracker ___ ___

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d6bb65f378e34fe0c11fdb39588357ecf22964eb by Terry Jan Reedy in branch 'master': bpo-31460: Simplify the API of IDLE's Module Browser. (#3842) https://github.com/python/cpython/commit/d6bb65f378e34fe0c11fdb39588357ecf22964eb

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-30 Thread Steve Dower
Steve Dower added the comment: The difference is on startup in how they generate sys.path entries. Skip the install step and directly run the library in a clean virtual environment, so that no .pth or .egg files are in use. If the difference still occurs, show that it

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +3823 stage: test needed -> patch review ___ Python tracker ___

[issue31652] make install fails: no module _ctypes

2017-09-30 Thread Dandan Lee
New submission from Dandan Lee : The make install step fails with this error: Traceback (most recent call last): File "/home/dandan/Downloads/cpython-3.7.0a1/Lib/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

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

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 40c54d5e1aaab91cb7df71f735112d20b5e5b755 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (GH-3839) (#3841)

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +3822 ___ Python tracker ___ ___

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bfebfd81de21b7906df386fce845f2b1f5ffd212 by Terry Jan Reedy in branch 'master': bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (#3839)

[issue31557] tarfile: incorrectly treats regular file as directory

2017-09-30 Thread Nitish
Nitish added the comment: > This check was the source of a bug that caused tarfile to report a regular as > a directory because the file path was extra long, and when the tar write > truncated the path to the first 100B, it so happened to end on a slash. AFAIK,

[issue28280] Always return a list from PyMapping_Keys/PyMapping_Values/PyMapping_Items

2017-09-30 Thread Oren Milman
Change by Oren Milman : -- keywords: +patch pull_requests: +3821 stage: -> patch review ___ Python tracker ___

[issue20464] Update distutils sample config file in Doc/install/index.rst

2017-09-30 Thread Zachary Ware
Change by Zachary Ware : -- versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: With two-pass gone, this is gone. -- resolution: remind -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31651] io.FileIO cannot write more than 2GB (-4096) bytes??? must be documented (if not fixed)

2017-09-30 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko : originally detected on python 2.7, but replicated with python 3.5.3 -- apparently io.FileIO, if given a bytestring of 2GB or more, cannot write it all at once -- saves (and returns that size) only 2GB - 4096. I found no indication

[issue21411] Enable Treat Warning as Error on 32-bit Windows

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: We've introduced enough new warnings in the past 3 years that this is not viable at this point. If we decide we want warnings in the compile stage to set the whole build to warnings, we can open an issue in

[issue23283] Backport Tools/clinic to 3.4

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: At this point in 3.4's life cycle, this is likely not worth the effort. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28046] Remove the concept of platform-specific directories

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: Are there any remaining outstanding issues here? -- assignee: zach.ware -> status: open -> pending ___ Python tracker

[issue25153] PCbuild/*.vcxproj* should use CRLF line endings

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: This has been done for a while via .gitattributes. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue31120] [2.7] Python 64 bit _ssl compile fails due missing buildinf_amd64.h

2017-09-30 Thread Zachary Ware
Zachary Ware added the comment: Sorry it's taken me so long to get back to this, Hiren. Do you still need it since 2.7.14 is out? -- ___ Python tracker

[issue31645] openssl build fails in win32 if .pl extension is not associated with Perl

2017-09-30 Thread Zachary Ware
Change by Zachary Ware : -- components: +Windows nosy: +larry, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue31650] implement PEP 552

2017-09-30 Thread Benjamin Peterson
New submission from Benjamin Peterson : Now that PEP 552 is accepted, we'll need an actual implementation. Besides the core import changes, there are some perquisites improvements. For one, our SipHash implementation needs to be changed to accept an arbitrary key. Also,

[issue31592] assertion failure in Python/ast.c in case of a bad unicodedata.normalize()

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1163fb9be08c6072455b59d6f954e60662d18e75 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3838)

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d9c21a45fdc83904753d91ad45e3eafa195f4713 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)

[issue31592] assertion failure in Python/ast.c in case of a bad unicodedata.normalize()

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a4dfe1c9eaca6faf206f63a178233ffea208c906 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). (GH-3767)

[issue28604] Exception raised by python3.5 when using en_GB locale

2017-09-30 Thread Andreas Schwab
Andreas Schwab added the comment: This causes test_float.py to fail with glibc > 2.26. ERROR: test_float_with_comma (__main__.GeneralFloatCases) -- Traceback (most recent call last): File

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +3820 stage: needs patch -> patch review ___ Python tracker ___

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
New submission from Terry J. Reedy : All calls in tests should pass as keyword. Get better error message if pass wrong number of other arguments positionally. -- ___ Python tracker

[issue31649] IDLE: Make _htest, _utest parameters keyword-only.

2017-09-30 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: Make _htest, _utest parameters keyword-only. type: enhancement versions: Python 3.6, Python 3.7

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Menu item 'Module Browser' invokes '<>', which calls Editor_Window.open_module_browser. If the window is an actual editor, its path is used; otherwise open_module is called. In either case, ModuleBrowser is called with flist and path

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3819 ___ Python tracker ___ ___

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3818 ___ Python tracker ___

[issue31592] assertion failure in Python/ast.c in case of a bad unicodedata.normalize()

2017-09-30 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3817 ___ Python tracker ___

[issue31592] assertion failure in Python/ast.c in case of a bad unicodedata.normalize()

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7dc46d8cf5854d9f4ce3271b29c21aea4872e8ad by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). (#3767)

[issue31646] bug in time.mktime

2017-09-30 Thread Tim Peters
Tim Peters added the comment: Note that 2am doesn't exist on the local clock: it leaps from 1:59:59 to 3:00:00. You're claiming that one answer is "correct", but why? The relevant _standards_ don't appear to specify what happens when the input is senseless. Note that the

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-30 Thread Safihre
Safihre added the comment: Very good question! 5000 times via imp.load_dynamic: yEnc C New took 5870 ms yEnc C New took 5878 ms yEnc C New took 5835 ms 5000 times via "pip: having the .pyd in site-packages" yEnc C New took 6489 ms yEnc C

[issue31646] bug in time.mktime

2017-09-30 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28280] Always return a list from PyMapping_Keys/PyMapping_Values/PyMapping_Items

2017-09-30 Thread Oren Milman
Oren Milman added the comment: (for knowledge preservation's sake) Resolving this issue would also resolve #31486. -- ___ Python tracker

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-30 Thread Stefan Krah
Stefan Krah added the comment: Does the difference stay at 10-15% if you run it 5 times or is it a one time cost of around 100 ms? -- nosy: +skrah ___ Python tracker

[issue31627] test_mailbox fails if the hostname is empty

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f4ea642cb60556231e714089a79d3c59c202661e by Serhiy Storchaka in branch 'master': bpo-31627: Make test_mailbox be lenient to empty hostname. (#3821)

[issue31285] a SystemError and an assertion failure in warnings.warn_explicit()

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker

[issue31285] a SystemError and an assertion failure in warnings.warn_explicit()

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 40d736bcf40c10aa5fc7d6cc305a6641afd3cd0e by Serhiy Storchaka (Oren Milman) in branch '2.7': [2.7] bpo-31285: Don't raise a SystemError in warnings.warn_explicit() in case __loader__.get_source() has a bad

[issue31475] Bug in argparse - not supporting utf8

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31648] Improve ElementPath

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Stefan! Good improvement. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31648] Improve ElementPath

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 101a5e84acbab9d880e150195f23185dfb5449a9 by Serhiy Storchaka (scoder) in branch 'master': bpo-31648: Improve ElementPath (#3835) https://github.com/python/cpython/commit/101a5e84acbab9d880e150195f23185dfb5449a9

[issue31475] Bug in argparse - not supporting utf8

2017-09-30 Thread INADA Naoki
INADA Naoki added the comment: We already accept PEP 529 and PEP 538. And there are #15216 (PR 2343). So I don't think we need more solutions. -- ___ Python tracker

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's expected if uuid_generate_time_safe() isn't available on your platform. But test_uuid still passes? -- ___ Python tracker

[issue31648] Improve ElementPath

2017-09-30 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks for noticing. I added a test and fixed it. -- ___ Python tracker ___

[issue31648] Improve ElementPath

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the break in the loop for [.='text'] is not correct. >>> from xml.etree import ElementTree as ET >>> e = >>> ET.XML('texttext') >>> list(e.findall('.//a[b="text"]')) [, ] >>> list(e.findall('.//a[.="text"]')) [] I

[issue31648] Improve ElementPath

2017-09-30 Thread Stefan Behnel
Stefan Behnel added the comment: Well, there's XPath for a standard: https://www.w3.org/TR/xpath/ ElementPath deviates from it in its namespace syntax (it allows "{ns}tag" where XPath requires "p:tag" prefixes), but that's about it. All other differences are basically

[issue31648] Improve ElementPath

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this feature already implemented in lxml? Is it a part of some wider standard? -- ___ Python tracker

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2017-09-30 Thread Vaibhav Mallya
Vaibhav Mallya added the comment: Hello R. David & Terry! Appreciate your prompt responses. While experimenting with different test cases I realized that escaped slashes and newlines are intrinsically annoying to reason about as stringy-one-liners, so I threw

[issue31648] Improve ElementPath

2017-09-30 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +3816 stage: -> patch review ___ Python tracker ___

[issue31648] Improve ElementPath

2017-09-30 Thread Stefan Behnel
New submission from Stefan Behnel : * Allow whitespace around predicate parts, i.e. "[a = 'text']" instead of requiring the less readable "[a='text']". * Add support for text comparison of the current node, like "[.='text']". Both currently raise "invalid path"

[issue31581] Reduce the number of imports for functools

2017-09-30 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31581] Reduce the number of imports for functools

2017-09-30 Thread INADA Naoki
INADA Naoki added the comment: New changeset 9811e80fd0ed9d74c76a66f1dd4e4b8afa9e8f53 by INADA Naoki in branch 'master': bpo-31581: Reduce the number of imports for functools (GH-3757) https://github.com/python/cpython/commit/9811e80fd0ed9d74c76a66f1dd4e4b8afa9e8f53

[issue30806] netrc.__repr__() is broken for writing to file

2017-09-30 Thread INADA Naoki
INADA Naoki added the comment: New changeset b24cd055ecb3eea9a15405a6ca72dafc739e6531 by INADA Naoki (James Sexton) in branch 'master': bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-09-30 Thread Martin Panter
Martin Panter added the comment: I prefer Cornelius’s current proposal (rev 4f8137b) because it fixes both sites, rather than just patching the immediate problem site. I don’t think read(1) is a big problem, just less efficient. But if you prefer to do larger reads,

[issue31557] tarfile: incorrectly treats regular file as directory

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib) nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker

[issue31642] None value in sys.modules no longer blocks import

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 3834 provide possible solution of this issue. Initially import errors were silenced for solving issue15715. An import error raised when import was blocked by setting None in sys.modules was not silenced because it has

[issue31642] None value in sys.modules no longer blocks import

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +3815 stage: needs patch -> patch review ___ Python tracker

[issue31646] bug in time.mktime

2017-09-30 Thread Eryk Sun
Eryk Sun added the comment: This depends on the way the platform mktime implements folding when the clock is advanced for daylight saving time. It appears the timezone on your systems is set to US/Canada Central Time, for which on March 9th the clocks were advanced forward