[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
severity: normal
status: open
title: IDLE SaveAs drops the extension in the prompted filename
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/3.4/library/2to3.html#2to3fixer-standard_error
https://docs.python.org/3.5/library/2to3.html#2to3fixer-standard_error

--
assignee: docs@python
components: Documentation
messages: 219341
nosy: docs@python, wluebbe
priority: normal
severity: normal
status: open
title: Misleading 2to3 fixer name in documentation: standard_error
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 very quick to respond

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
messages: 219345
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add tests for Tkinter images
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35401/tkinter_test_images.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -> serhiy.storchaka
dependencies: +Add tests for Tkinter images
keywords: +patch
stage: test needed -> patch review
type:  -> behavior
versions: +Python 2.7, Python 3.5
Added file: http://bugs.python.org/file35402/tkinter_bytes.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 words 合う, 会う and 遭う in a tkinter entry field). 
The only possibility is to enter the text in, say, a text editor and then copy 
them to the tkinter entry widget.

The error is specific to Mac OSX (at least to version 10.6). It does not occur 
on Windows.

--
components: Tkinter
messages: 219347
nosy: rovf
priority: normal
severity: normal
status: open
title: No visual feedback when entering japanese Characters in Entry widget
type: behavior
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> zip([1, 2, 3], ["a", "b", "c"])
[(1, 'a'), (2, 'b'), (3, 'c')]

--
components: Library (Lib)
messages: 219348
nosy: Sasha.Ovsankin
priority: normal
severity: normal
status: open
title: results of `zip` are displayed as '
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 following repr?

>>> zip([1, 2, 3], ["a", "b", "c"])
zip([1, 2, 3], ["a", "b", "c"])

--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 insignificant) than the usefulness of the information the
repr contains.  The fact that some objects (like list iterators) don't
themselves have informative reprs is an issue for any object with a
custom repr that reports it's attrs/args.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 platform?  I was not able to reproduce this 
behavior on any of the current OS X IDLEs and Tks with Save As.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/57130574d1e8

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 point all previously unechoed characters 
appeared.  I observed exactly the same behavior when using the Tk-supplied wish 
(/usr/local/bin/wish8.5 or 8.6) shell text demo.  (This was using the most 
recent ActiveTcl 8.5.15 and 8.6.1 releases.)  If you want to pursue the issue, 
I suggest checking the Tk project issue tracker and, if necessary, opening a 
new issue there with steps to reproduce using wish.

http://core.tcl.tk/tk/reportlist

--
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 cannot be "reused". What Eric suggested, was to look at 
the inputs of zip and construct a representation of zip object that is more 
user friendly. The point that Serhiy's is making is that its usefulness is 
actually fairly limited.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/file35404/issue19662_v2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 just for HTTP logging.

Does it make sense to assign mapLogRecord by default to self.format but allow 
it to be over-ridden like other Handlers?

--
components: Library (Lib)
messages: 219365
nosy: bk2zsto
priority: normal
severity: normal
status: open
title: logging.handlers.HTTPHandler.setFormatter() has no effect
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.datetime.now().microseconds

The interpreter returns 

AttributeError: 'datetime.datetime' object has no attribute 'microseconds'

The correct way to access the number of microseconds is by:

datetime.datetime.now().microsecond # Note the final 's'

which is not consistent with the documentation.

Many thanks

Miquel

--
assignee: docs@python
components: Documentation
messages: 219366
nosy: Miquel.Garcia, docs@python
priority: normal
severity: normal
status: open
title: Documentation for datetime.datetime uses microseconds instead of 
microsecond
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: load_module not closing opened files
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file35405/close_fp_2.7.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/file35406/socket_2.7.3_eintr_patch.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 formatting for other destinations (like console or 
file).

I don't think a patch which somehow shoehorns a Formatter into mapLogRecord() 
will be acceptable, both for reasons of backward compatibility and also because 
formatting in general is not the same as encoding for HTTP, and trying to push 
the two things together seems kludgy. I advise you to subclass HttpHandler if 
its default behaviour doesn't work for you. After all, that's why we have 
classes in Python :-)

--
resolution:  -> not a bug
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
Added file: http://bugs.python.org/file35407/subprocess_7.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 3.5 (default) branch. (Yes, I know it's 
complicated, but it beats other ways of keeping the Tulip and CPython trees in 
sync. And I have a script in the Tulip tree that automates most of the work.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: None)
thread = threading.Thread(target=killer)
thread.start()

while 1:
try:
smtplib.SMTP('localhost')
except Exception, ex:
running = False
raise

if __name__ == '__main__':
go()

Fails with:

socket.error: [Errno 4] Interrupted system call

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 #14315: The zipfile module now ignores extra fields in the central
http://hg.python.org/cpython/rev/33843896ce4e

New changeset 89be1419472c by Gregory P. Smith in branch 'default':
Fix issue #14315: The zipfile module now ignores extra fields in the central
http://hg.python.org/cpython/rev/89be1419472c

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com