[issue14315] zipfile.ZipFile() unable to open zip File

2014-05-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6dd5e9556a60 by Gregory P. Smith in branch '2.7': Fix issue #14315: The zipfile module now ignores extra fields in the central http://hg.python.org/cpython/rev/6dd5e9556a60 New changeset 33843896ce4e by Gregory P. Smith in branch '3.4': Fix issue #1

[issue12776] argparse: type conversion function should be called only once

2014-05-29 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread tholzer
tholzer added the comment: And a test case for smtplib: import threading import signal import os import smtplib def go(): running = True pid = os.getpid() def killer(): while running: os.kill(pid, signal.SIGINT) signal.signal(signal.SIGINT, lambda x,y: Non

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: @tholzer I've updated socket_2_7_2_patch.py and added the missing break statement. -- Added file: http://bugs.python.org/file35408/socket_2_7_2_patch.py ___ Python tracker __

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Changes by Syou Ei : Removed file: http://bugs.python.org/file35400/socket_2_7_2_patch.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1191964] asynchronous Subprocess

2014-05-29 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW while the Tulip changes should indeed go into the Tulip repo first, the rest should be committed to the CPython 3.5 tree first. Then I'll commit the Tulip changes, first to the Tulip repo, then to the CPython 3.4 branch (yes!) and then merge that into t

[issue1191964] asynchronous Subprocess

2014-05-29 Thread Josiah Carlson
Josiah Carlson added the comment: I submitted an issue to the tulip/asyncio bug tracker: https://code.google.com/p/tulip/issues/detail?id=170 And I am uploading a new patch that only includes non-tulip/asyncio related changes, as tulip/asyncio changes will eventually be propagated to Python.

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Vinay Sajip
Vinay Sajip added the comment: HTTPHandler doesn't exactly format text for output - it encodes the LogRecord fields into an HTTP GET or POST request, and sends that request to a web server. Since this "formatting" is determined by the HTTP protocol, it is not possible to share it with formatti

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread tholzer
Changes by tholzer : Removed file: http://bugs.python.org/file35359/socket_2.7.3_eintr_patch.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread tholzer
tholzer added the comment: Oops, I missed a break statement at the end of socket_2.7.3_eintr_patch.py. I've fixed this now in the attached patch. @meishao Could you please also update your socket_2_7_2_patch.py and add the missing break statement ? -- Added file: http://bugs.python.o

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread Miquel Garcia
Miquel Garcia added the comment: My mistake. Yes you are right, I was confused with the timedelta class. Sorry for the confusion. Many thanks! Miquel -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue21610] load_module not closing opened files

2014-05-29 Thread mattip
mattip added the comment: the issue has already been fixed on HEAD but not backported to 2.7 -- ___ Python tracker ___ ___ Python-bugs

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread SilentGhost
SilentGhost added the comment: Could you provide an actual quote where it refers to datetime.datetime.microseconds? Are you not by any chance confusing it with datetime.timedelta.microseconds? -- nosy: +SilentGhost ___ Python tracker

[issue21610] load_module not closing opened files

2014-05-29 Thread mattip
New submission from mattip: imputil and modulefinder are opening files but not actively closing them. This causes problems for pypy and is not clean. -- components: Library (Lib) files: close_fp_2.7.patch keywords: patch messages: 219367 nosy: mattip priority: normal severity: normal st

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread Miquel Garcia
New submission from Miquel Garcia: In browsing the documentation for datetime.datetime: https://docs.python.org/2/library/datetime.html It states that the datetime.datetime.microseconds returns the number of microseconds but in trying (Python 2.7.1 r271:86832): import datetime print datetime.

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Bikram Zesto II
New submission from Bikram Zesto II: HTTPHandler instance will assign a Formatter to format() but emit() never calls self.format(record) so it has no effect. I know mapLogRecord() does something like this now but would like to reuse Formatters across Handlers instead of subclassing HTTPHandler

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: Yep, you are right. Even the zip thingy is not reusable. Oh well... -- ___ Python tracker ___ ___ Py

[issue19662] smtpd.py should not decode utf-8

2014-05-29 Thread Maciej Szulik
Maciej Szulik added the comment: I've implemented all your proposed changes, because for most of your changes I was thinking pretty the same way for the whole day today, to make the code more elegant. The current state of work is attached as issue19662_v2.patch -- Added file: http://bu

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread SilentGhost
SilentGhost added the comment: >> How do you display the contents of an iterable without using them up > In general case you can't, but zip object _is_ reusable iterable so we can > reuse it? I think you're misunderstanding what an iterator is or how it functions. Just to make it clear, it cann

[issue14097] Improve the "introduction" page of the tutorial

2014-05-29 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes warnings. -- assignee: -> serhiy.storchaka keywords: +patch stage: -> patch review versions: +Python 2.7, Python 3.5 Added file: http://bugs.python.org/file35403/io_open_resource_warning.patch

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: >>> How do you display the contents of an iterable without using them up <<< In general case you can't, but zip object _is_ reusable iterable so we can reuse it? -- ___ Python tracker

[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-29 Thread Zachary Ware
Zachary Ware added the comment: Steve or Tim, did one of you want to commit this since you can run a clean test? -- ___ Python tracker ___ ___

[issue21606] No visual feedback when entering japanese Characters in Entry widget

2014-05-29 Thread Ned Deily
Ned Deily added the comment: tkinter-based apps depend on the underlying Tk widget for text processing. I know nothing about the various Japanese input methods on OS X but, in spot checking of a few, I observed no visual feedback with Katakana selected until I pressed the Return key, at which

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Mark Lawrence
Mark Lawrence added the comment: How do you display the contents of an iterable without using them up, or have I grossly overlooked something? -- nosy: +BreamoreBoy ___ Python tracker _

[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-05-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa7b656 by Eric Snow in branch '3.4': Issue #21226: fix a ref leak. http://hg.python.org/cpython/rev/baa7b656 New changeset 57130574d1e8 by Eric Snow in branch 'default': Issue #21226: Merge from 3.4. http://hg.python.org/cpython/rev/571305

[issue21603] IDLE SaveAs drops the extension in the prompted filename

2014-05-29 Thread Ned Deily
Ned Deily added the comment: There are known differences among the various Tk implementations with regard to how file extensions are handled in Tk file dialogs, like IDLE uses; see Issue4832. Can you say which version of Tk was in use (it should be in the About IDLE display) and on what platf

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-05-29 Thread Ned Deily
Changes by Ned Deily : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Eric Snow
Eric Snow added the comment: > "zip(, 0xb70c7cac>)" doesn't look more readable to me. Well, that seems more informative to me. Now you know that you're zipping together two list iterators. By "readable" do you mean shorter? In my opinion the size of a repr is less of a concern (though not in

[issue19662] smtpd.py should not decode utf-8

2014-05-29 Thread R. David Murray
R. David Murray added the comment: Added review comments. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: It's also showing up in iPython. list(...) is a reasonable workaround but I disagree with the "not a bug" opinion. This is definitely the regression vs Python 2. Who else can I talk to about reopening this? -- ___ P

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "zip(, )" doesn't look more readable to me. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Eric Snow
Eric Snow added the comment: It may be the correct behavior but that doesn't mean we cannot update the repr to be more informative. We've already done that for a number of types that previously used the default __repr__() implementation. So in the case, how hard would it be to have the follo

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread SilentGhost
SilentGhost added the comment: This is the correct behaviour. In python 3 zip returns an iterator. Detailed information is available in documentation. https://docs.python.org/3/library/functions.html#zip -- nosy: +SilentGhost resolution: -> not a bug status: open -> closed __

[issue21607] results of `zip` are displayed as '

2014-05-29 Thread Sasha Ovsankin
New submission from Sasha Ovsankin: Python 3.4.0 (default, May 20 2014, 20:42:24) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> zip([1, 2, 3], ["a", "b", "c"]) >>> Python 2.7.5 (default, Mar 9 2014,

[issue21606] No visual feedback when entering japanese Characters in Entry widget

2014-05-29 Thread rovf
New submission from rovf: When I enter Japanese text in a tkinter entry widget, I don't get any visual feedback while typing; in particular, I don't get the Kanji selection box of the Kotaeri input method, which makes it impossible to choose the correct Kanji (try, for example, to type the wor

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes passing Python bytes to Tcl in Python 3. However it will be not easy to fix this issue in Python 2. See also issue21605 which adds tests for Tkinter images (some of them fails without this patch). -- assignee: docs@python

[issue21605] Add tests for Tkinter images

2014-05-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds tests for tkinter's classes BitmapImage and PhotoImage. Some tests are temporary skipped until resolving issue21580. -- assignee: serhiy.storchaka components: Tests, Tkinter files: tkinter_test_images.patch keywords: patch messag

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: @flox Thank you for your comment. So we just only modify the socket.py to handle the system level call, is it right? Please let me attach the patch file of socket.py for 2.7.2. -- Added file: http://bugs.python.org/file35400/socket_2_7_2_patch.py ___

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Florent Xicluna
Florent Xicluna added the comment: @meishao Previous comments answer your question : http://bugs.python.org/issue20611#msg218836 http://bugs.python.org/issue20611#msg218841 -- ___ Python tracker __

[issue21590] Systemtap and DTrace support

2014-05-29 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I'd really prefer IRC, if at all possible for you :) When online, I'm usually on #fedora-python, but I can really come any channel of your choice. Sorry for the delays in communication, I've got a lot on my plate right now and I'll probably not be ve

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file35399/keymerge2.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue21604] Misleading 2to3 fixer name in documentation: standard_error

2014-05-29 Thread Wilfried Lübbe
New submission from Wilfried Lübbe: The documentation https://docs.python.org/2/library/2to3.html#2to3fixer-standard_error calls the fixer "standard_error". But really its name is "standarderror" (the filename is "fix_standarderror.py"). Py3.4.1 and Py3.4 docs are the same: https://docs.pyth

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: @neologix, May I attach the patch file of smtplib.py for review? -- ___ Python tracker ___ ___ Python-bugs-

[issue21602] smtplib.py socket.create_connection() also doesn't handle EINTR properly

2014-05-29 Thread Charles-François Natali
Charles-François Natali added the comment: If you know it's a duplicate, why create a new issue? -- resolution: -> duplicate status: open -> closed superseder: -> socket.create_connection() doesn't handle EINTR properly ___ Python tracker

[issue21603] IDLE SaveAs drops the extension in the prompted filename

2014-05-29 Thread Raymond Hettinger
New submission from Raymond Hettinger: In IDLE, edit and save a file foo.py. Then choose File SaveAs. The dialog box only shows "foo", not "foo.py" which is irritating when renaming a file or saving a variant of a file. -- components: IDLE messages: 219338 nosy: rhettinger priority: norm