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

2014-05-29 Thread Syou Ei
Syou Ei added the comment: http://bugs.python.org/issue21602 The smtplib.py also has the same problem. The EINTR cannot be handled properly. -- nosy: +meishao ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611

[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: normal

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue20611 ___

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

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[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:

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

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Removed file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

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

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file35399/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[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

[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 rep...@bugs.python.org

[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

[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

[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:

[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

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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]) zip object at 0x1017c79c8 Python 2.7.5 (default, Mar 9

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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 'zip object at 0xxxxxx

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

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: zip(list_iterator object at 0xb70c7c8c, list_iterator object at 0xb70c7cac) doesn't look more readable to me. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21607

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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? -- ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19662 ___ ___ Python-bugs-list mailing

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Eric Snow
Eric Snow added the comment: zip(list_iterator object at 0xb70c7c8c, list_iterator object at 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

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

2014-05-29 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21600 ___ ___ Python-bugs-list mailing

[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

[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.

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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 rep...@bugs.python.org http://bugs.python.org/issue21607

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue21462 ___

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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 rep...@bugs.python.org

[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

[issue14097] Improve the introduction page of the tutorial

2014-05-29 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___ Python-bugs-list

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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 cannot

[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:

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

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 rep...@bugs.python.org http://bugs.python.org/issue21607 ___

[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

[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

[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

[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
mattip added the comment: the issue has already been fixed on HEAD but not backported to 2.7 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21610 ___

[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 rep...@bugs.python.org

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

2014-05-29 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21608 ___ ___

[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:

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

2014-05-29 Thread tholzer
Changes by tholzer thol...@wetafx.co.nz: Removed file: http://bugs.python.org/file35359/socket_2.7.3_eintr_patch.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[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

[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.

[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

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

2014-05-29 Thread Syou Ei
Changes by Syou Ei oss.sh...@gmail.com: Removed file: http://bugs.python.org/file35400/socket_2_7_2_patch.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[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 rep...@bugs.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:

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

2014-05-29 Thread paul j3
Changes by paul j3 ajipa...@gmail.com: -- nosy: +paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___ ___ Python-bugs-list mailing list