[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: Yes, I understand that this is a matter of memory consumption, which is why I submitted this ticket as "resource usage". What I don't understand is, what could possibly require gigabytes of memory for this task? -- ___

[issue24421] Race condition compiling Modules/_math.c

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d4190ed586a4 by Martin Panter in branch '2.7': Issue #24421: Compile _math.c separately to avoid race condition https://hg.python.org/cpython/rev/d4190ed586a4 -- ___ Python tracker

[issue26390] hashlib's pbkdf2_hmac documentation "rounds" does not match source

2016-02-25 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26390] hashlib's pbkdf2_hmac documentation "rounds" does not match source

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7609aaf180b4 by Martin Panter in branch '3.5': Issue #26390: Fix and test pbkdf2_hmac() parameter names https://hg.python.org/cpython/rev/7609aaf180b4 New changeset a74420677e6b by Martin Panter in branch 'default': Issue #26390: Merge

[issue24421] Race condition compiling Modules/_math.c

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset a99580157968 by Martin Panter in branch '3.5': Issue #24421: Compile _math.c separately to avoid race condition https://hg.python.org/cpython/rev/a99580157968 -- ___ Python tracker

[issue26439] ctypes.util.find_library fails ALWAYS when gcc is not used

2016-02-25 Thread Michael Felt
Michael Felt added the comment: FYI: getting objdump is not too hard... root@x064:[/data/prj/gnu/binutils-2.25.1]v/null /usr/lib/libcrypto.a < In archive /usr/lib/libcrypto.a: libcrypto.so: file format aixcoff-rs6000 libcrypto.so.0.9.8: file format aixcoff-rs6000

[issue25507] IDLE: user code 'import tkinter; tkinter.font' should fail

2016-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'import tkinter; tkinter.messagebox' should also fail, but currently work in IDLE. See https://stackoverflow.com/questions/35619027/sub-import-issues-with-tkinter-messagebox, and my answer there. -- ___ Python

[issue26441] email.charset: to_splittable and from_splittable are not there anymore!

2016-02-25 Thread Martin Panter
New submission from Martin Panter: In /Doc/library/email.charset.rst, the descriptions of the to_splittable() and from_splittable() methods are disabled. The comment saying they are not there is presumably referring to the fact that the methods were removed from the Python 3 implementation.

[issue26431] string template substitute tests

2016-02-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26431] string template substitute tests

2016-02-25 Thread Greg McCoy
Greg McCoy added the comment: My Mistake, I wasn't running coverage on all the tests -- ___ Python tracker ___

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f8dc6f2b171 by Georg Brandl in branch '3.5': Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak. https://hg.python.org/cpython/rev/1f8dc6f2b171 -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Georg Brandl
Georg Brandl added the comment: Ok, that was a bug in rstlint. Fixed now - and now I can find quite a few instances, will fix them (most of them are in this patch). -- ___ Python tracker

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Georg Brandl
Georg Brandl added the comment: These are interpreted as comments by docutils. "make suspicious" only checks for markup erroneously remaining in the output. "make check", which runs tools/rstlint.py, should pick them up though. -- nosy: +georg.brandl

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: We discussed truncation vs. rounding some time ago. See msg202270 and the posts around it. The consensus was the same as Guido's current advise: do the truncation. -- ___ Python tracker

[issue26437] asyncio create_server() not always accepts the 'port' parameter as str

2016-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know why it used to accept a string port, but I can't find anything in the docs indicating that is acceptable. I am guessing the doc authors assumed it was so obvious that a port is an integer they forgot to mention it. I can guess that in the past

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-25 Thread Guido van Rossum
Guido van Rossum added the comment: Out of context here, but regarding round vs. truncate, IIUC for time truncating down is the norm. My digital clock shows "12:00" for the duration of the minute starting at noon. People look for clocks to flip to know when it is exactly a given time (if the

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-25 Thread Alessandro Cucci
Alessandro Cucci added the comment: Oh, now I see your point. I've uploaded a new patch with a note for that. -- Added file: http://bugs.python.org/file42031/issue19475_v16.patch ___ Python tracker

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread Eryk Sun
Eryk Sun added the comment: > My Python is 64-bit, but my computer only has 2GB physical RAM. That explains why it takes half an hour to crash. It's thrashing on page faults. Adding another paging file or increasing the size of your current paging file should allow this to finish parsing...

[issue26436] Add the regex-dna benchmark

2016-02-25 Thread Brett Cannon
Brett Cannon added the comment: Oh, and how long does an execution take? -- ___ Python tracker ___ ___

[issue26436] Add the regex-dna benchmark

2016-02-25 Thread Brett Cannon
Brett Cannon added the comment: I assume the code looks idiomatic to you? And out of curiosity, what does the performance look like between something 3.5 and default? -- ___ Python tracker

[issue26404] socketserver context manager

2016-02-25 Thread Aviv Palivoda
Aviv Palivoda added the comment: updated the patch according to the CR comments. -- Added file: http://bugs.python.org/file42030/socketserver_context_manager4.patch ___ Python tracker

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: My Python is 64-bit, but my computer only has 2GB physical RAM. -- ___ Python tracker ___

[issue26402] Regression in Python 3.5 xmlrpc.client, raises RemoteDisconnected seemingly randomly.

2016-02-25 Thread Jelte Fennema
Jelte Fennema added the comment: No problem, I'm glad to have contributed something to the language I use the most. -- ___ Python tracker ___

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread Eryk Sun
Eryk Sun added the comment: I don't think this is Windows related. Are you using 32-bit Python? On Linux, if I limit the process address space to 2 gigs, it crashes almost immediately: $ ulimit -v 200 $ python-dbg -c 'import crash' Segmentation fault It runs out of memory

[issue26440] tarfile._FileInFile.seekable is broken in stream mode

2016-02-25 Thread Bill Lee
Bill Lee added the comment: I posted an incomplete traceback by mistake. Here is the whole traceback. Traceback = Traceback (most recent call last): File "seekable.py", line 5, in print(contentFile.seekable()) File "/usr/local/lib/python3.5/tarfile.py", line 649, in seekable

[issue26440] tarfile._FileInFile.seekable is broken in stream mode

2016-02-25 Thread Bill Lee
New submission from Bill Lee: Description === With a file object, retrieved by the `extractfile` method of a TarFile object opened in stream mode, calling its `seekable` method will raise an AttributeError. How to Reproduce cat > seekable.py << EOF import sys import

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread A. Skrobov
A. Skrobov added the comment: Mine is on Windows. I've now installed both 2.7.10 and 3.4.3 to reconfirm, and it's still the same, on both of them, except that on 3.4.3 it crashes with a MemoryError much faster (within a couple minutes). -- components: +Windows nosy: +paul.moore,

[issue26439] ctypes.util.find_library fails ALWAYS when gcc is not used

2016-02-25 Thread Michael Felt
Michael Felt added the comment: Last message (back to debian, and minor changes to learn expected behavior) if sys.platform == "darwin": print cdll.LoadLibrary("libm.dylib") print cdll.LoadLibrary("libcrypto.dylib") print

[issue26439] ctypes.util.find_library fails ALWAYS when gcc is not used

2016-02-25 Thread Michael Felt
Michael Felt added the comment: Further testing... I added an extremely simple hack in util.py so that a archive (AIX library) name got returned. Also in this case - the print cdll.LoadLibrary("libc.a") fails. +74 if os.name == "posix" and sys.platform == "darwin": +75 from

[issue26439] ctypes.util.find_library fails ALWAYS when gcc is not used

2016-02-25 Thread Michael Felt
Michael Felt added the comment: p.s. On a debian (on POWER) system, the function is working, but the test seems a bit broken as well, i.e., cdll.LoadLibrary("libm.so") is not working even though if os.name == "posix": # find and load_version print find_library("m")

[issue26439] ctypes.util.find_library fails ALWAYS when gcc is not used

2016-02-25 Thread Michael Felt
New submission from Michael Felt: I have successful enough with python 2.7.10 (for building cloud-init), including it finding openssl libraries during the installation od setuptools (before installing pip). I have also been able to assemble saltstack - BUT - salt-master and salt-minion fail

[issue26415] Out of memory, trying to parse a 35MB dict

2016-02-25 Thread Christian Heimes
Christian Heimes added the comment: It takes about 12 seconds to byte compile crash.py on my computer and less than half a second to import about 28 MB of byte code: $ rm -rf crash.pyc __pycache__/ $ time python2.7 -c 'import crash' real0m11.930s user0m9.859s sys 0m2.085s $ time

[issue26438] Complete your registration to Python tracker -- key4g5ti2VWPYCbHm4wBLtl92LNQ9nzndqi

2016-02-25 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26438] Complete your registration to Python tracker -- key4g5ti2VWPYCbHm4wBLtl92LNQ9nzndqi

2016-02-25 Thread heha37
New submission from heha37: is ok ---Original--- From: "Python tracker" Date: 2016/2/25 21:55:19 To: "zhanghanqun"; Subject: Complete your registration to Python tracker -- key4g5ti2VWPYCbHm4wBLtl92LNQ9nzndqi To complete your registration

[issue26437] asyncio create_server() not always accepts the 'port' parameter as str

2016-02-25 Thread Xavier de Gaye
New submission from Xavier de Gaye: create_server() used to accept the 'port' parameter as a string before in all cases (until last december at least). The following session shows the difference in behavior when the listening address is INADDR_ANY and '127.0.0.1':

[issue26402] Regression in Python 3.5 xmlrpc.client, raises RemoteDisconnected seemingly randomly.

2016-02-25 Thread Martin Panter
Martin Panter added the comment: Thanks for reporting this Jelte -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22836] Broken "Exception ignored in:" message on exceptions in __repr__

2016-02-25 Thread Martin Panter
Martin Panter added the comment: Here is a new patch with Victor’s suggestions. The reports now look like >>> raise BrokenStrException() Traceback (most recent call last): File "", line 1, in __main__.BrokenStrException: >>> o = VeryBroken() >>> del o Exception ignored in: Traceback (most

[issue26436] Add the regex-dna benchmark

2016-02-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds the regex-dna benchmark from The Computer Language Benchmarks Game (http://benchmarksgame.alioth.debian.org/). This is artificial but well known benchmark. The patch is based on regex-dna Python 3 #5 program and fasta Python 3 #3

[issue26402] Regression in Python 3.5 xmlrpc.client, raises RemoteDisconnected seemingly randomly.

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d668b5595534 by Martin Panter in branch '3.5': Issue #26402: Fix XML-RPC client retrying after server disconnection https://hg.python.org/cpython/rev/d668b5595534 New changeset 70bf0d764939 by Martin Panter in branch 'default': Issue #26402: Merge

[issue26039] More flexibility in zipfile interface

2016-02-25 Thread Martin Panter
Martin Panter added the comment: When you say concurrent writes should be impossible, I guess that only applies to a single-threaded program. There is no lock protecting the “self._fileRefCnt > 1” check and related manipulation (not that I am saying there should be). For serializing

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-02-25 Thread Martin Panter
Changes by Martin Panter : -- stage: -> test needed versions: +Python 2.7 ___ Python tracker ___

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Martin Panter
Martin Panter added the comment: Thanks for finding these. I presume they are also applicable to 3.5. There is a similar problem with the range() documentation: ./Doc/library/stdtypes.rst:1301: .. data: start ./Doc/library/stdtypes.rst:1306: .. data: stop ./Doc/library/stdtypes.rst:1310:

[issue25801] ResourceWarning in test_zipfile64

2016-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch SilentGhost. -- resolution: -> fixed stage: patch review -> resolved status: languishing -> closed type: -> resource usage versions: +Python 2.7, Python 3.5 ___ Python tracker

[issue25801] ResourceWarning in test_zipfile64

2016-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset baec3e2e1b1f by Serhiy Storchaka in branch '3.5': Issue #25801: Fixed resource warnings in test_zipfile64. https://hg.python.org/cpython/rev/baec3e2e1b1f New changeset 32051701a49d by Serhiy Storchaka in branch '2.7': Issue #25801: Fixed resource

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Jakub Stasiak
New submission from Jakub Stasiak: A double colon seems to be required for a directive to work, please find a patch attached. -- assignee: docs@python components: Documentation files: typos.patch keywords: patch messages: 260848 nosy: docs@python, jstasiak priority: normal severity:

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-25 Thread Jakub Stasiak
Jakub Stasiak added the comment: Thank you. I didn't know whether to add an entry to Doc/whatsnew/3.6.rst, Misc/NEWS or both so I chose both, feel free to modify/remove as needed. The new patch also doesn't have a typo in the versionchanged directive present in the version 2. I noticed more

[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2016-02-25 Thread Marc Schlaich
New submission from Marc Schlaich: This is a follow up of #5162. There are some occasions where you can still run into this issue. One example is if you want to spawn a new multiprocessing.Process as a child of a multiprocessing.Process: pythonservice.exe - multiprocessing.Process

[issue26433] urllib.urlencode() does not explain how to handle unicode

2016-02-25 Thread Thomas Güttler
New submission from Thomas Güttler: The current docs for Python2, don't explain how to handle unicode: https://docs.python.org/2/library/urllib.html#urllib.urlencode It seems to be a common problem. See

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2016-02-25 Thread Paolo Veglia
Paolo Veglia added the comment: I had the same issue as Jonathan with Python 3.5.1, big chunks of data get truncated (to ~85KB). The problem disappears when splitting original data into smaller chunks: def _write(self,data): chunk_size = 1024 for chunk in

[issue26432] Add partial.kwargs

2016-02-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Most Python classes that exposes a dictionary of keyword arguments as an attribute, name this attribute "kwargs": concurrent.futures.process._CallItem concurrent.futures.process._WorkItem concurrent.futures.thread._WorkItem inspect.BoundArguments