[issue8964] platform._sys_version does not parse correctly IronPython 2.x version
Martin Matusiak added the comment: Hm, I see. Actually, in is already used in this function a little further down: elif PyPy in sys_version: So we should change both occurrences then. I'm attaching a v2 with these changes. -- Added file: http://bugs.python.org/file32154/issue8964_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8964 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17087] Improve the repr for regular expression match objects
Claudiu.Popa added the comment: I could use self-pattern-logical_size, but it seems that I still need the call to getstring for bytes co, to obtain the view to the underlying buffer (otherwise the group0 part from the repr will contain random bytes). I didn't find a simpler way to achieve this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19274] make zipfile.PyZipFile more usable
Georg Brandl added the comment: Looks fine but -- as a new feature -- is 3.4 only, and needs docs and tests. -- nosy: +georg.brandl stage: - patch review versions: +Python 3.4 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19274 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19277] zlib compressobj: missing parameter doc strings
New submission from Tobias Oberstein: Currently the `zlib` module documents zlib.compressobj([level]) However, there are more parameters present already today: zlib.compressobj([level, method, wbits]) These other parameters are used in at least 2 deployed libraries (in the context of WebSocket compression): https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/compress_deflate.py#L527 http://code.google.com/p/pywebsocket/source/browse/trunk/src/mod_pywebsocket/util.py#231 -- assignee: docs@python components: Documentation, Library (Lib) messages: 200113 nosy: docs@python, oberstet priority: normal severity: normal status: open title: zlib compressobj: missing parameter doc strings type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19277 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Changes by Ned Deily n...@acm.org: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19278] zlib compressobj: expose missing knobs
New submission from Tobias Oberstein: The zlib library provides a couple of knobs to control the behavior and resource consumption of compression: ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy)); Of these, only `level`, `method` and `windowBits` are exposed on `zlib.compressobj` (and only the first is even documented: see issue #19277). However, as was recently found from emperical evidence in the context of WebSocket compression http://www.ietf.org/mail-archive/web/hybi/current/msg10222.html the `memLevel` parameter in particular is very valuable in controlling memory consumption. For WebSocket compression (with JSON payload), the following parameter set was found to provide a useful resource-consumption/compression-ratio tradeoff: window bits=11 memory level=4 Hence, it would be useful to expose _all_ parameters in Python, that is `memLevel` and `strategy` too. -- components: Library (Lib) messages: 200114 nosy: oberstet priority: normal severity: normal status: open title: zlib compressobj: expose missing knobs type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19278 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Esa Peuha added the comment: Apparently related to issue 19205 and issue 19209. Looks like _osx_support imports re which imports copyreg. -- nosy: +Esa.Peuha ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka components: +Library (Lib), Tests -Extension Modules nosy: +serhiy.storchaka versions: +Python 2.7 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
New submission from Roundup Robot: New changeset 73dad296c483 by Serhiy Storchaka in branch '2.7': Issue 19276: Fix tests for wave files on big-endian platforms. http://hg.python.org/cpython/rev/73dad296c483 New changeset 236884b40a2d by Serhiy Storchaka in branch '3.3': Issue 19276: Fix tests for wave files on big-endian platforms. http://hg.python.org/cpython/rev/236884b40a2d New changeset 8bdf5328c55b by Serhiy Storchaka in branch 'default': Issue 19276: Fix tests for wave files on big-endian platforms. http://hg.python.org/cpython/rev/8bdf5328c55b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
New submission from Guillaume Lebourgeois: After the fetch of a webpage with a wrongly declared encoding, the use of codecs module for a conversion crashes. The issue is reproducible this way : content = b+1911\' rel=\'stylesheet\' type=\'text/css\' /\nlink rel=alternate type=application/rss+xml codecs.utf_7_decode(content, replace, True) Traceback (most recent call last): File stdin, line 1, in module SystemError: invalid maximum character passed to PyUnicode_New Original issue here : https://github.com/kennethreitz/requests/issues/1682 -- components: Library (Lib) messages: 200117 nosy: glebourgeois priority: normal severity: normal status: open title: UTF-7 to UTF-8 decoding crash type: crash versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka components: +Unicode nosy: +ezio.melotti, serhiy.storchaka stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Changes by Antoine Pitrou pit...@free.fr: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Roundup Robot added the comment: New changeset 58aaf7542efe by Christian Heimes in branch 'default': Issue #19275: Fix test_site on AMD64 Snow Leopard http://hg.python.org/cpython/rev/58aaf7542efe -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Christian Heimes added the comment: Let's hope that did the trick. -- assignee: - christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: I added tests to the patch and tweaked a few details. Once the local test run gives it a clean bill of health, I'll commit it so it will be included in 3.4a4 this weekend and you can check it works with Blender. -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Esa Peuha added the comment: Just by looking at the code, there still seems to be a problem: test_site.py was changed in 0b6052f2a8ee to test that the collections module isn't imported, but due to a bug it (re)tests the re module instead (re_mods needs to be changed to collection_mods). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Roundup Robot added the comment: New changeset 9cd88b39ef62 by Nick Coghlan in branch 'default': Issue #16129: Add `Py_SetStandardStreamEncoding` http://hg.python.org/cpython/rev/9cd88b39ef62 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: Putting this to pending for the moment - please try it out with Blender once 3.4a4 is released, and then we'll close it. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Roundup Robot added the comment: New changeset 537e13ca7683 by Nick Coghlan in branch 'default': Issue #16129: Move Py_SetStandardStreamEncoding declaration http://hg.python.org/cpython/rev/537e13ca7683 -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Bastien Montagne added the comment: Thanks Nick, we’ll do it for sure. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19266] Rename contextlib.ignore to contextlib.suppress
Roundup Robot added the comment: New changeset 22247b7d17fa by Nick Coghlan in branch 'default': Close #19266: contextlib.ignore - contextlib.suppress http://hg.python.org/cpython/rev/22247b7d17fa -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19266 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
David Edelsohn added the comment: The patch does not appear to fix the tests for wave on big-endian PPC64 Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19280] Add a datatype to represent mime types to the email module
New submission from R. David Murray: In issue 18891, Stephen Turnbull wondered if adding a datatype to represent mime types would be worthwhile. I think it would be. A mimetype is a pair (maintype/subtype), and while one may test the subparts independently in logic, the representation and what needs to be passed from place to place in the code is always a pair. Most importantly, having a datatype to represent this would eliminate a common class of errors: forgetting to test the component strings case-insensitively. If one is manipulating a Message object, the get_xxx methods used to access the mimetype do do case coercion, but within the email code itself there are a number of places where the raw strings are manipulated, and I have already made, discovered, and fixed case insensitivity bugs in that code. It is not clear at this point if the object should be exposed, though I'm inclined that way. I'd propose using a string subclass with maintype and subtype attributes, and this object could then be returned by get_content_type without breaking backward compatibility. Another advantage of using a string subclass is that the original casing of the values is easily retained and easily accessible, which while not critical is something the email package normally does (preserve the case of the original data). -- components: email keywords: easy messages: 200128 nosy: barry, r.david.murray priority: normal severity: normal stage: needs patch status: open title: Add a datatype to represent mime types to the email module type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19280 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18891] Master patch for content manager addition to email package
R. David Murray added the comment: Thanks everyone for the reviews. I've opened up a new issue for Stephen's mimetype object suggestion (issue 19280). I'm still planning to add some examples to the docs, so I'm going to leave this open until I do that, but I wanted to get the code itself into the next alpha. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Serhiy Storchaka added the comment: It fixed a bug in wave tests, but not a bug in the wave module. I'm working on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
Richard Oudkerk added the comment: I can reproduce the problem on the Non-Debug Gentoo buildbot using only os.fork() and os.kill(pid, signal.SIGTERM). See http://hg.python.org/cpython/file/9853d3a20849/Lib/test/_test_multiprocessing.py#l339 To investigate further I think strace and/or gdb will need to be installed on that box. P.S. Note that the Debug Gentoo buildbot is always failing at the configure stage with No space left on device. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19272] Can't pickle lambda (while named functions are ok)
Changes by Ethan Furman et...@stoneleaf.us: -- keywords: +patch Added file: http://bugs.python.org/file32155/issue19272.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19272 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Matthew Barnett added the comment: The bytestring literal isn't valid. It starts with b and later on has an unescaped followed by more characters. Also, the usual way to decode by using the .decode method. I get this: content = b+1911\' rel=\'stylesheet\' type=\'text/css\' /\nlink rel=\alternate\ type=\application/rss+xml\ content.decode(utf-7, strict) Traceback (most recent call last): File pyshell#10, line 1, in module content.decode(utf-7, strict) File C:\Python33\lib\encodings\utf_7.py, line 12, in decode return codecs.utf_7_decode(input, errors, True) UnicodeDecodeError: 'utf7' codec can't decode bytes in position 0-5: partial character in shift sequence -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Guillaume Lebourgeois added the comment: My fault, bad paste. Should have written : content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' /\nlink rel=alternate type=application/rss+xml' codecs.utf_7_decode(content, replace, True) Traceback (most recent call last): File stdin, line 1, in module SystemError: invalid maximum character passed to PyUnicode_New -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Guillaume Lebourgeois added the comment: Also, the usual way to decode by using the .decode method. The original bug happened using requests library, so I have no leverage on the used method for decoding. But if you used the replace mode with your methodology, you would have raised the same Exception : content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' /\nlink rel=alternate type=application/rss+xml' content.decode(utf-7, replace) File stdin, line 1, in module File /lib/python3.3/encodings/utf_7.py, line 12, in decode return codecs.utf_7_decode(input, errors, True) SystemError: invalid maximum character passed to PyUnicode_New -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Nick Coghlan added the comment: Indeed, 'utf-7' and the 'replace' error handler don't get along in this case. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Nick Coghlan added the comment: That is, I can locally reproduce the behaviour Guillaume describes on the latest tip build. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Roundup Robot added the comment: New changeset 51480f6428a5 by Nick Coghlan in branch 'default': Skip #16129 test until I debug cross-platform issues http://hg.python.org/cpython/rev/51480f6428a5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: Buildbots weren't happy with the test case. I've done two extra commits (one to turn off the diff limit, then a second one to skip it entirely), so will hopefully be able to debug it and keep this in for the alpha. (Larry - FYI, I'll have this test fixed or the patch reverted before the alpha on the weekend) -- resolution: fixed - stage: committed/rejected - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: According to http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/2716/steps/test/logs/stdio, output in the subprocess was fine, but for some reason sys.stdout.encoding and sys.stderr.encoding were None in the test itself o.O -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: Antoine pointed out this also needs a :versionadded: tag in the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: So reusing the run command from the buildbot still passed on my system. I thought using sys.stdout.encoding (etc) would reliably get me the default IO encoding, but it appears not :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
R. David Murray added the comment: I fixed the out of space last night. (Someday I'll get around to figuring out which test it is that is leaving a bunch of data around when it fails, but I haven't yet). I've installed strace and gdb on the bots, please send me your public key and I'll set up an ssh login for you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/579/steps/test/logs/stdio shows the same symptoms -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Serhiy Storchaka added the comment: Here is a patch for 3.3+. Other versions are affected too. They don't raise SystemError, but produce illegal unicode string on wide build. E.g. in Python 2.7: 'a+/,+IKw-b'.decode('utf-7', 'replace') u'a\ufffd\U003f20acb' \U003f20ac is illegal code. As encoding and encoded data can come from external source, this can be used in secure attacks. -- keywords: +patch nosy: +barry, benjamin.peterson, georg.brandl, larry priority: normal - release blocker stage: needs patch - patch review type: crash - security versions: +Python 2.6, Python 2.7, Python 3.2 Added file: http://bugs.python.org/file32156/utf7_errors.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18191 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1644818] Allow built-in packages and submodules as well as top-level modules
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1644818 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
STINNER Victor added the comment: You don't want to mention the return value (-1) on error in the doc? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Stefan Krah added the comment: Unfortunately the tests pass when I run them manually. On my FreeBSD bot thsi may be relevant: o LC_* is C. o The filesystem encoding is ascii. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
Richard Oudkerk added the comment: I fixed the out of space last night. (Someday I'll get around to figuring out which test it is that is leaving a bunch of data around when it fails, but I haven't yet). It looks like on the Debug Gentoo buildbot configure and clean are failing. http://buildbot.python.org/all/builders/x86%20Gentoo%203.x/builds/5090/steps/configure/logs/stdio http://buildbot.python.org/all/builders/x86%20Gentoo%203.x/builds/5090/steps/clean/logs/stdio I've installed strace and gdb on the bots, please send me your public key and I'll set up an ssh login for you. Thanks. For now I will just try starting gdb using subprocess on the custom buildbot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19278] zlib compressobj: expose missing knobs
Georg Brandl added the comment: Thanks for the suggestion; the parameters have already been added in Python 3.3, see http://docs.python.org/3/library/zlib.html#zlib.compressobj. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19278 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19278] zlib compressobj: expose missing knobs
Georg Brandl added the comment: Actually, compressobj() has always supported up to five arguments (named level, method, wbits, memlevel, strategy); I'll document this for 2.7 for issue 19277. The new thing in 3.3 are support for keyword arguments and the zdict parameter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19278 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19277] zlib compressobj: missing parameter doc strings
Roundup Robot added the comment: New changeset c54c8e71b79a by Georg Brandl in branch '2.7': Closes #19277: document all parameters of compressobj(). http://hg.python.org/cpython/rev/c54c8e71b79a -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19277 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19277] zlib compressobj: missing parameter doc strings
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg200151 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19277 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
R. David Murray added the comment: Hmm. Looks like the name of the temp files used by the failing test (which is in bsddb, by the way) have changed, so my delete command didn't delete them. So now /tmp is definitely clean, and the next build on that bot should work (crosses fingers). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19277] zlib compressobj: missing parameter doc strings
R. David Murray added the comment: Hmm. Looks like the name of the temp files used by the failing test (which is in bsddb, by the way) have changed, so my delete command didn't delete them. So now /tmp is definitely clean, and the next build on that bot should work (crosses fingers). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19277 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18416] Move to absolute file paths for module.__file__
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18416 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Serhiy Storchaka added the comment: What are array.array('l').itemsize and array.array('i').itemsize on PPC64 Linux? I suppose that this patch should fix the wave module on 64-bit platforms. -- keywords: +patch stage: - needs patch Added file: http://bugs.python.org/file32157/wave_ppc64.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15237] Add capsule API to _decimal
Stefan Krah added the comment: I've looked at this, and the question is: Do we really need a capsule API? All relevant symbols in _decimal start with Py* and shouldn't need to be static. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15237 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
David Edelsohn added the comment: import array print array.array('l').itemsize 8 print array.array('i').itemsize 4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Guido van Rossum added the comment: Another day, another patch. I'd rather like to commit this (and then iterate as needed), it makes my workflow for porting to Windows a little easier. Larry??? -- Added file: http://bugs.python.org/file32158/asyncio8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Larry Hastings added the comment: Does it break anything? (Besides, possibly, itself?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17087] Improve the repr for regular expression match objects
Serhiy Storchaka added the comment: Well. Here is a patch. I have changed repr() a little. repr() now contains match type qualified name (_sre.SRE_Match). groups now equals len(m.groups()). span representation now contains a comma (as repr(m.span())). Raymond, Ezio, is it good to you? -- assignee: - serhiy.storchaka Added file: http://bugs.python.org/file32159/sre_match_repr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Antoine Pitrou added the comment: For the record, why would this patch fix the issue? test_wave works fine under other 64-bit platforms. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Serhiy Storchaka added the comment: Thank you David. I suspected this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Guido van Rossum added the comment: It doesn't break anything AFAICT. (It's a pure addition except for one new extension module on Windows). However I just discovered that apparently regrtest doesn't automatically run tests in a subdirectory of the test package. I'm guessing I'll need to add some magic to test_asyncio/__init__.py. Any hints? On Thu, Oct 17, 2013 at 12:59 PM, Larry Hastings rep...@bugs.python.orgwrote: Larry Hastings added the comment: Does it break anything? (Besides, possibly, itself?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Roundup Robot added the comment: New changeset 9d2605f24a86 by Serhiy Storchaka in branch '2.7': Issue #19276: Fixed the wave module on 64-bit big-endian platforms. http://hg.python.org/cpython/rev/9d2605f24a86 New changeset a1a4a527c699 by Serhiy Storchaka in branch '3.3': Issue #19276: Fixed the wave module on 64-bit big-endian platforms. http://hg.python.org/cpython/rev/a1a4a527c699 New changeset 7e8ad3084891 by Serhiy Storchaka in branch 'default': Issue #19276: Fixed the wave module on 64-bit big-endian platforms. http://hg.python.org/cpython/rev/7e8ad3084891 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Larry Hastings added the comment: If its breakage is restricted to itself (and its tests) then you have my blessing to check it in. (Sorry, can't help you with the test expertise.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Serhiy Storchaka added the comment: Perhaps other 64-bit platforms are little-endian? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6839] zipfile can't extract file
Adam Polkosnik added the comment: I've got bitten by a different variation of this bug. In my case the issue can be summarized by: zipfile.BadZipfile: File name in directory Windows\TEMP\test.tmp and header C:\Windows\TEMP\test.tmp differ. Attached is a patch for Python27/lib/zipfile.py. I understand that it might not be the best approach, but at least we just compare the filenames without caring much about those pesky paths preceding them. -- nosy: +apolkosnik versions: +Python 2.7 Added file: http://bugs.python.org/file32160/zipfile.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Changes by Guido van Rossum gu...@python.org: -- keywords: +needs review -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Guido van Rossum added the comment: OK, no more giant patches. It's checked in. I've also solved the regrtest issues by adding some code in __init__.py and __main__.py. I expect to iterate a bit over the next few days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
Richard Oudkerk added the comment: I finally have a gdb backtrace of a stuck child (started using os.fork() not multiprocessing): #1 0xb76194da in ?? () from /lib/libc.so.6 #2 0xb6d59755 in ?? () from /var/lib/buildslave/custom.murray-gentoo/build/build/lib.linux-i686-3.4-pydebug/_ssl.cpython-34dm.so #3 0xb6d628f0 in _fini () from /var/lib/buildslave/custom.murray-gentoo/build/build/lib.linux-i686-3.4-pydebug/_ssl.cpython-34dm.so #4 0xb770859b in ?? () from /lib/ld-linux.so.2 #5 0xb75502c7 in ?? () from /lib/libc.so.6 #6 0xb7550330 in exit () from /lib/libc.so.6 #7 0xb558f244 in ?? () from /lib/libncursesw.so.5 #8 0xb76e9f38 in fork () from /lib/libpthread.so.0 ---Type return to continue, or q return to quit---#9 0x08085f89 in posix_fork (self=0xb74da374, noargs=0x0) at ./Modules/posixmodule.c:5315 ... It looks as though fork() is indirectly calling something in _ssl.cpython-34dm.so which is not completing. So I guess this is pthread_atfork() related. But the child argument passed to pthread_atfork() should be NULL, so I don't really understand this: static int PySSL_RAND_atfork(void) { static int registered = 0; int retval; if (registered) return 0; retval = pthread_atfork(NULL, /* prepare */ PySSL_RAND_atfork_parent, /* parent */ NULL);/* child */ if (retval != 0) { PyErr_SetFromErrno(PyExc_OSError); return -1; } registered = 1; return 0; } -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15237] Add capsule API to _decimal
Marc-Andre Lemburg added the comment: On 17.10.2013 21:01, Stefan Krah wrote: Stefan Krah added the comment: I've looked at this, and the question is: Do we really need a capsule API? All relevant symbols in _decimal start with Py* and shouldn't need to be static. You need a capsule in order to use the C API from other extension modules. See the datetime module for an example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15237 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13146] Writing a pyc file is not atomic
Barry A. Warsaw added the comment: On Aug 15, 2013, at 08:25 PM, Antoine Pitrou wrote: Barry, do you still want to keep this issue open? I don't necessarily need to. We've patched the Ubuntu version to be safe, so I guess we'll just carry that delta along until 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13146 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Roundup Robot added the comment: New changeset 510bf951210f by Ned Deily in branch 'default': Issue #19275: Fix test_site failure on OS X due to typo. http://hg.python.org/cpython/rev/510bf951210f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)
Ethan Furman added the comment: Where do we stand with this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17576 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19275] test_site is failing on AMD64 Snow Leopard
Ned Deily added the comment: Thanks for the observation, Esa. The typo is now fixed and the test is no longer failing on OS X. -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19275 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19276] test_wave failing on PPC64 Linux
Serhiy Storchaka added the comment: Fixed. Thank you David for your report. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18919] Unify audio modules tests
Serhiy Storchaka added the comment: Thank you David. Fixed in issue19276. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18919 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1641] asyncore delayed calls feature
Guido van Rossum added the comment: Now asyncio/tulip has landed in the 3.4 stdlib, asyncore will be effectively obsolete starting 3.4 (even if we don't mark it so). Its presence is required for backwards compatibility, but that doesn't mean we should encourage people to keep using it by adding features. If you agree, please close this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots
Richard Oudkerk added the comment: Actually, according to strace the call which blocks is futex(0xb7839454, FUTEX_WAIT_PRIVATE, 1, NULL -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Nick Coghlan added the comment: On 18 Oct 2013 02:41, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor added the comment: You don't want to mention the return value (-1) on error in the doc? I guess it should explicitly say any non-zero return value indicates an error rather than leaving that implied by the fact that zero indicates success. Something else occurred to me, though - this runs before Py_Initialize, and now I'm not sure all the API calls are valid in that context. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19213] platform.linux_distribution detects Oracle Linux as Red Hat Enterprise Linux
Alexander Boyd added the comment: Yep, that fixes it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19213 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19262] Add asyncio (tulip, PEP 3156) to stdlib
Roundup Robot added the comment: New changeset 30f33e6a04c1 by Ned Deily in branch 'default': Issue #19262: Install asyncio and test_asyncio directories. http://hg.python.org/cpython/rev/30f33e6a04c1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19213] platform.linux_distribution detects Oracle Linux as Red Hat Enterprise Linux
R. David Murray added the comment: Based on Marc-Andre recommendation at the end of issue 11678, I plan to commit this as a bug fix, and add arch to 2.7 while I'm at it. Unless there are objections. -- nosy: +anikom15, eric.araujo, georg.brandl, pitrou, python-dev, terry.reedy versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19213 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Larry Hastings added the comment: Attached is a patch against current trunk merging Argument Clinic. I already got the go-ahead to merge (took a poll in python-dev, got lots of +1s), but I still wanted to post it here to let it soak a little, even only if it's just a day. Unless something amazing happens I plan to merge about 24 hours from now. Ladies and gentlemen, fire up your Rietvelds! -- stage: needs patch - patch review Added file: http://bugs.python.org/file32161/larry.clinic.patch.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com