[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: One sub issue then is naming: _overlapped renamed Overlapped.GetOverlappedResult to Overlapped.getresult. I think the _winapi name is better, since all other methods also use Windows API function names. -- ___ Pyth

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think overlapped.c should be merged back to _winapi (apparently, it started with code from _winapi). overlapped has a number of functions that aren't in _winapi, but should be (IMO). Then, the _overlapped module should be dropped. Of course, this may break

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d140e3f41796 by Gregory P. Smith in branch '2.7': Refactor the new test for issue19081 to exec import statements into a http://hg.python.org/cpython/rev/d140e3f41796 -- ___ Python tracker

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread Berker Peksag
Berker Peksag added the comment: Hi Serhiy, there are commented-out lines in the 2.7 version of the patch. Are they intentionally there?: +#tester("ntpath.join('//computer/share', 'x/y')", '//computer/share\\x/y') +#tester("ntpath.join('//computer/share/', 'x/y')", '//computer

[issue20413] Errors in documentation of standard codec error handlers

2014-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: I plan to take a look at the codec docs in general in the next week or so, I'll tackle this as well. -- assignee: docs@python -> ncoghlan nosy: +ncoghlan ___ Python tracker

[issue19618] test_sysconfig_module fails on Ubuntu 12.04

2014-01-27 Thread Berker Peksag
Berker Peksag added the comment: The cause of the test failure was the Lib/_sysconfigdata.py file which is created by the _generate_posix_vars() function in Lib/sysconfig.py. With a fresh copy of the repo and a clean build, all tests are passed. -- resolution: -> out of date stage: -

[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-27 Thread Nikolaus Rath
Nikolaus Rath added the comment: Ok, I've attached yet another patch revision. This revision is less complex, because it gets rid of the ability to set up chains of tunnels. The only reason that I put that in was to preserve backward compatibility -- but upon reviewing the old implementation

[issue15189] tkinter.messagebox does not use the application's icon

2014-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: After applying the .wm_iconphoto patch, I verifies that the icon specified is used for the options dialog and an ask file name message box opened by the dialog. In other words, dialogs and boxes *do* use the application title bar icon if one is provided. So I

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread STINNER Victor
STINNER Victor added the comment: _winapi is used for example by multiprocessing, whereas _overlapped is used by asyncio. -- ___ Python tracker ___ _

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread STINNER Victor
STINNER Victor added the comment: I found this issue while I was trying to understand the issue of pending operations which are not cancelled. The issue #19565 changed the behaviour in the _winapi module, but not in the _overlapped module :-( New changeset da10196b94f4 by Richard Oudkerk in br

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread STINNER Victor
New submission from STINNER Victor: Python 3.3 has _winapi.Overlapped. Python 3.4 _winapi.Overlapped but also _overlapped.Overlapped. Why do we have two implementations? Most code looks to be duplicated. -- components: Windows messages: 209496 nosy: gvanrossum, haypo, pitrou, sbt prior

[issue3158] Doctest fails to find doctests in extension modules

2014-01-27 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think there's an issue with this change - ismethoddescriptor() doesn't guarantee that that the object has an __objclass__ attribute. Unbound PyQt4 signals appear to be a case where this goes wrong. This came up testing IPython on Python 3.4 - we subclass Doc

[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-27 Thread Nikolaus Rath
Nikolaus Rath added the comment: Hmm. I think I found another problem... please wait for another patch revision. -- ___ Python tracker ___

[issue20406] Use application icon for IDLE

2014-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: For comparison. -- Added file: http://bugs.python.org/file33760/py.gif ___ Python tracker ___ ___ Py

[issue20406] Use application icon for IDLE

2014-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are two icon issues. First is the window icon at the left of the title bar of Idle windows. By the name 'wm_iconphote', I presume this is what this issue is about. Until recently, it *was* the red 'Tk' that is generally used for Tk windows. It is slightl

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9ca2019bcb9 by Yury Selivanov in branch 'default': inspect.signature: Support classes without user-defined __init__/__new__ #20308 http://hg.python.org/cpython/rev/b9ca2019bcb9 -- nosy: +python-dev ___ P

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-27 Thread Larry Hastings
Larry Hastings added the comment: Looks perfect! Please check it in. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-27 Thread Larry Hastings
Larry Hastings added the comment: (With a Misc/NEWS entry of course.) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Patch is attached, please review. Should we commit this to 3.3 too? -- assignee: -> yselivanov keywords: +patch nosy: +ncoghlan Added file: http://bugs.python.org/file33758/signature_method_first_arg_01.patch ___ Pyt

[issue12296] Minor clarification in devguide

2014-01-27 Thread Moritz Neeb
Moritz Neeb added the comment: Tried to summarize the previous discussion and generate a compromise here. Patch attached. -- nosy: +zormit Added file: http://bugs.python.org/file33757/devguide-patch.diff ___ Python tracker

[issue20356] fix formatting of positional-only parameters in inspect.Signature

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20372] inspect.getfile should raise a TypeError if C object does not have __module__

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for the review, Nick. Closing the issue now. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset baedc256999a by Yury Selivanov in branch 'default': inspect.signature: Add support for 'functools.partialmethod' #20223 http://hg.python.org/cpython/rev/baedc256999a -- nosy: +python-dev ___ Python tracke

[issue18321] Multivolume support in tarfile module

2014-01-27 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20030] unittest.TestLoader.discover return value incorrectly documented.

2014-01-27 Thread Moritz Neeb
Changes by Moritz Neeb : -- nosy: +zormit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed first patch (with small change, ntpath.join('c:', 'C:') now returns 'C:'). There is yet one argument for first option: it is almost impossible (with current design) to implement second option in pathlib. -- resolution: -> fixed stage: pat

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is the proper fix to address the issue in site.py? Does this issue > reveal anything else of concern about the implementation? I don't know, but it's a regression, so we'd better add a "fix" or "workaround" in site.py anyway. -- _

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b314f5c9404 by Serhiy Storchaka in branch '2.7': Issue #19456: ntpath.join() now joins relative paths correctly when a drive http://hg.python.org/cpython/rev/6b314f5c9404 New changeset f4377699fd47 by Serhiy Storchaka in branch '3.3': Issue #19456:

[issue20308] inspect.Signature doesn't support user classes without __init__ or __new__

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Please take a look at the attached 'signature_plain_cls_04.patch'. This one supports classes (returns signature of 'object' builtin), and metaclasses (returns signature of 'type' builtin). -- Added file: http://bugs.python.org/file33756/signatur

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Is the proper fix to address the issue in site.py? Does this issue reveal anything else of concern about the implementation? Assuming Yes and No, then yes, I can put together a fix. -- ___ Python tracker

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: Heh, OK. I've managed to avoid learning the gory details of the zipimporter internals so far, and the details of Windows DLL loading is the gap on the extension module side :) -- ___ Python tracker

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds reasonably easy to fix. Can you write a patch? -- nosy: +pitrou priority: normal -> high stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue20413] Errors in documentation of standard codec error handlers

2014-01-27 Thread RalfM
New submission from RalfM: The standard library documentation lists the standard codec error handlers in three places: (a) 2. Build-in Functions, section open() (b) 7.2 codecs - Codec registry and base classes (c) 7.2.1 Codec Base Classes As far as I can judge these lists, (c) looks ok, but (a

[issue20412] Enum and IntEnum classes are not defined in the documentation

2014-01-27 Thread Ethan Furman
New submission from Ethan Furman: While trying to update the socket documentation it was brought to my attention that Enum and IntEnum are not defined as classes as far as the docs are concerned [1]. [1] http://bugs.python.org/issue20386#msg209473 -- assignee: ethan.furman messages: 2

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this issue. See #17481 for details. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ _

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +zach.ware -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15185] Validate callbacks in 'contextlib.ExitStack.callback()'

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread R. David Murray
R. David Murray added the comment: I think a python programmer is going to expect that join(a, b, c) == join(join(a, b), c) so the answer to Serhiy's example should be 'c:z'. -- nosy: +r.david.murray ___ Python tracker

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-01-27 Thread Georg Brandl
Georg Brandl added the comment: IntEnum is not a class in the enum module either, as far as the docs are concerned ;) Otherwise :class:`enum.IntEnum` or :class:`.IntEnum` would work, no matter the source and target documents. -- ___ Python tracker

[issue19456] ntpath doesn't join paths correctly when a drive is present

2014-01-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5845] rlcompleter should be enabled automatically

2014-01-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Added issue20411, revealed in 3.4b2. -- nosy: +jason.coombs ___ Python tracker ___ ___ Python-bugs-l

[issue20411] IndexError in sys.__interactivehook__ with pyreadline installed

2014-01-27 Thread Jason R. Coombs
New submission from Jason R. Coombs: Following the blame history, this appears to be new issue following issue5845. I'm using Python 3.4b2 64-bit on Windows. I've installed pyreadline 2.0 using Setuptools 2.1. Now, when I start the interactive interpreter, I get this output: > python Python 3

[issue20356] fix formatting of positional-only parameters in inspect.Signature

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20356] fix formatting of positional-only parameters in inspect.Signature

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffe1d684b41e by Yury Selivanov in branch 'default': inspect.signature: Use '/' to separate positional-only parameters from http://hg.python.org/cpython/rev/ffe1d684b41e -- nosy: +python-dev ___ Python tra

[issue17481] inspect.getfullargspec should use __signature__

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: > There's a major difference between getfullargspec/getargspec and > inspect.signature: getfullargspec shows you the "self" parameter for bound > methods, and inspect.signature does not. Larry, yes, that's correct. The attached patch simulates this behaviour,

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-01-27 Thread Ethan Furman
Ethan Furman added the comment: IntEnum is not a class in the socket module. How do I make a link into another rst document? -- ___ Python tracker ___ __

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, posixpath can be used on Windows. Here is corrected patch. Please test it on Windows. -- Added file: http://bugs.python.org/file33754/expandvars_nonascii.patch ___ Python tracker

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-01-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file33753/expandvars_nonascii.patch ___ Python tracker ___ ___ Python-bugs-l

[issue20380] __defaults__ changed by *args

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc32459495fc by Yury Selivanov in branch 'default': doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380 http://hg.python.org/cpython/rev/fc32459495fc -- nosy: +python-dev ___ Py

[issue20380] __defaults__ changed by *args

2014-01-27 Thread Ram Rachum
Ram Rachum added the comment: I take your point and I agree. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20380] __defaults__ changed by *args

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Ram, those are internal attributes. I.e. it's not recommended to use them directly, there are better instruments for that, such as 'inspect.signature'. Hence, I don't think that having an example/detailed explanation here is really necessary. --

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-01-27 Thread Georg Brandl
Georg Brandl added the comment: Well, IntEnum is nowhere documented as a class. IOW, .. class:: IntEnum is missing if you want these references to work. -- ___ Python tracker

[issue20380] __defaults__ changed by *args

2014-01-27 Thread Ram Rachum
Ram Rachum added the comment: Looks good. Ideally there would be a more details explanation and an example. -- ___ Python tracker ___

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-01-27 Thread Ethan Furman
Ethan Furman added the comment: Well, so far I have tried: :class:`IntEnum` :class:`.IntEnum` :class:`~IntEnum` :class:`enum.IntEnum` :class:`.enum.IntEnum` :class:`~enum.IntEnum` :class:`~.enum.IntEnum` and probably some others I have forgotten; nothing is giving me a link to en

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch (for 3.3+) which add support for environment variables with non-ASCII values and names in posixpath and ntpath. -- nosy: +serhiy.storchaka stage: test needed -> patch review versions: +Python 3.3, Python 3.4 -Python 3.1 Added file: htt

[issue20380] __defaults__ changed by *args

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: > Though perhaps a note in the documentation would be helpful for future > confused people. I agree. Also, __kwdefaults__ wasn't documented. Please take a look at the attached patch. -- keywords: +patch nosy: +yselivanov Added file: http://bugs.python

[issue20372] inspect.getfile should raise a TypeError if C object does not have __module__

2014-01-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20372] inspect.getfile should raise a TypeError if C object does not have __module__

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50706164c38f by Yury Selivanov in branch 'default': inspect.getfile: Don't crash on classes without '__module__' attribute #20372 http://hg.python.org/cpython/rev/50706164c38f -- nosy: +python-dev ___ Pyt

[issue20410] Argument Clinic: add 'self' return converter

2014-01-27 Thread Zachary Ware
New submission from Zachary Ware: It would be nice to have a 'self' return converter for simple functions like winreg.HKEYType.__enter__ (which is implemented as "Py_XINCREF(self); return self;"). With the typedef and type_object specifications now required for the class directive, 'self' is

[issue20378] Implement `Signature.__repr__`

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Ram, yes, I agree. Something like '' should work. -- assignee: -> yselivanov ___ Python tracker ___ ___

[issue20378] Implement `Signature.__repr__`

2014-01-27 Thread Ram Rachum
Ram Rachum added the comment: If you'd like to expand this issue's scope to all the objects related to Signature, I think that'll be good. All objects need good introspection strings. -- ___ Python tracker ___

[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2014-01-27 Thread Glenn Langford
Glenn Langford added the comment: Updated patch with change to Doc/library/concurrent.futures.rst. -- Added file: http://bugs.python.org/file33751/issue20369.patch ___ Python tracker ___

[issue20409] .readline() returned garble text

2014-01-27 Thread R. David Murray
R. David Murray added the comment: The file use different encodings. In the first case, the first two bytes (which don't appear in the second example) I believe are the BOM. I'm not an expert, but I believe it is a utf-16 file (thus all the \x00 bytes). The second file is presumably utf-8,

[issue20409] .readline() returned garble text

2014-01-27 Thread Xiaoqing Rong
New submission from Xiaoqing Rong: I'm using Windows 8. I created file 'weird1.txt' (attached) from an Excel worksheet using "save as Unicode Text (*.txt)". And this happened when I used Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 bit (AMD64)] on win32: >>> handle

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-27 Thread Tal Einat
Tal Einat added the comment: And at that, I've finished the conversion of this entire Derby group! Woohoo! (except for itertools.repeat which is pending discussion) -- ___ Python tracker __

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-27 Thread Tal Einat
Tal Einat added the comment: Attached is a complete AC conversion of itertools. This is a large conversion, so I was extra careful. I even went over the entire diff manually to check for any errors. Compilation runs without warnings and the entire test suite passes. Notes: * I didn't convert

[issue20399] Comparison of memoryview

2014-01-27 Thread Stefan Krah
Stefan Krah added the comment: For integer sequences I think non-equality comparisons will be somewhat confusing. Are the sequences little or big endian? If we start to view bytes more like latin-1 again (PEP 461), it would make sense for the 'B' and 'c' formats. -- ___

[issue20407] heapq.nsmallest and heapq.nlargest don't accept a "key" parameter

2014-01-27 Thread Georg Brandl
Georg Brandl added the comment: I see, there are two "def nsmallest" in heapq.py. Tricky! -- ___ Python tracker ___ ___ Python-bugs-l

[issue20407] heapq.nsmallest and heapq.nlargest don't accept a "key" parameter

2014-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs are correct as-is. This is a documented and tested behavior. >>> from heapq import nsmallest >>> list(nsmallest(3, ['larry', 'georg', 'raymond', 'guido', 'tim'], key=len)) ['tim', 'larry', 'georg'] The C implementation doesn't have a k

[issue20398] stem crashes python

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note that stem.util.system at least uses ctypes) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue20398] stem crashes python

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try with a standard Windows build? http://python.org/download/releases/3.3.3/ -- ___ Python tracker ___

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-27 Thread Brett Cannon
Brett Cannon added the comment: Just to answer Nick's question: I read the extension import code just last month to see if I could update it for PEP 451 fast enough (obviously the answer was no =). As for zipimport, I read that (and the extension import code yet again) in the 3.3 timeframe (an

[issue20398] stem crashes python

2014-01-27 Thread lothar
lothar added the comment: i have the current cygwin python3 package: http://mirrors.kernel.org/sourceware/cygwin/x86_64/release/python3/ i have no intention to build python myself. -- ___ Python tracker __

[issue20407] heapq.nsmallest and heapq.nlargest don't accept a "key" parameter

2014-01-27 Thread Georg Brandl
Georg Brandl added the comment: Yes. Probably someone wished they would implement it :) -- ___ Python tracker ___ ___ Python-bugs-lis

[issue20348] Argument Clinic HOWTO listed multiple times in HOWTO index

2014-01-27 Thread Brett Cannon
Brett Cannon added the comment: Technically you should only have one title at the very top of the heading hierarchy. That's why the patch changed the title to use top+bottom asterisks. You could have just as easily used equal signs as reST doesn't care, just that you are consistent. -

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-01-27 Thread Larry Hastings
Larry Hastings added the comment: For what it's worth: I figured out how this happened. Maybe it's obvious to you, but this behavior baffled me until I went back and looked at the revision history. In revision e260d6daf784, the argument parsing for itertools.repeat looks like this: Py_s

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-27 Thread Glenn Langford
Glenn Langford added the comment: Revised patch; I don't think there is a need to sort the keys when waiters are being removed since only one lock is acquired at a time. Stress tests on both wait() and as_completed() work with this approach. -- Added file: http://bugs.python.org/file33

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch checks the requested encoding is a valid text encoding in TextIOWrapper.__init__. Two additional test changes were needed: - the one that checks handling of non-text-encodings at runtime now tweaks quopri to lie about being a text encoding when c

[issue18321] Multivolume support in tarfile module

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Lars, would you like to take a look? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20408] memoryview() constructor documentation error

2014-01-27 Thread Larry Hastings
New submission from Larry Hastings: The documentation for the memoryview constructor says it takes memoryview(obj). Oddly, memoryview accepts keyword arguments (for its one required value), and the name of the argument is "object", not "obj". -- messages: 209436 nosy: georg.brandl, la

[issue20407] heapq.nsmallest and heapq.nlargest don't accept a "key" parameter

2014-01-27 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20407] heapq.nsmallest and heapq.nlargest don't accept a "key" parameter

2014-01-27 Thread Larry Hastings
New submission from Larry Hastings: The documentation for heapq.nsmallest and heapq.nlargest: http://docs.python.org/3.3/library/heapq.html#heapq.nlargest claim that they accept three arguments: n, iterable, and key=None. In fact, the implementations of both these functions only accept two pa

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: Note that this is something that could (and should) start life as a module on PyPI, which would also provide cross version support. -- ___ Python tracker ___

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: I only used hex as the example because it was trivial to generate test data for. The stackable streaming IO model is an extremely powerful one - the approach we already use in the io module has some similarities to the one Texas Instruments use in DSP/BIOS (http

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for type module based on Zachary's comment. However, I can not convert this method. {"__subclasshook__", object_subclasshook, METH_CLASS | METH_VARARGS, object_subclasshook_doc}, static PyObject * object_subclasshook(PyObject *cls,

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nobody talks to the console using hex_codec. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 27.01.2014 11:00, STINNER Victor wrote: > > STINNER Victor added the comment: > > I agree with Antoine, I dislike the idea of BinaryTransformWrapper, it > remembers me the evil codecs.EncodedFile thing. > > What are the usecases? Ever used "recode" ?

[issue15189] tkinter.messagebox does not use the application's icon

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mark's recipe works pretty well (requires Tk 8.5+). And you can use special method for this: app.wm_iconphoto(True, icon). What we can made more? We can set Python-related application icon for IDLE (issue20406). But for user applications their authors are r

[issue20406] Use application icon for IDLE

2014-01-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently IDLE use default Tk icon. The proposed patch sets special application icon for IDLE. -- components: IDLE files: idle_appicon.patch keywords: patch messages: 209428 nosy: kbk, roger.serwy, serhiy.storchaka, terry.reedy priority: normal seve

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread STINNER Victor
STINNER Victor added the comment: I agree with Antoine, I dislike the idea of BinaryTransformWrapper, it remembers me the evil codecs.EncodedFile thing. What are the usecases? -- ___ Python tracker __

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: That doesn't sound terribly useful indeed. The "hex" example is a toy example. Real-world examples would involve compression (zlib...) but then it is probably much more efficient to have a dedicated implementation (GzipFile) rather than blindly call zlib.compr

[issue19077] More robust TemporaryDirectory cleanup

2014-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Antoine. And thank you for your excellent idea Richard. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue20395] Extract generated clinic code in Modules/_pickle.c to separate file

2014-01-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2014-01-27 Thread Wim
Wim added the comment: Ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/

[issue20395] Extract generated clinic code in Modules/_pickle.c to separate file

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1aa8ea187560 by Serhiy Storchaka in branch 'default': Issue #20395: Extract generated clinic code in Modules/_pickle.c to separate file. http://hg.python.org/cpython/rev/1aa8ea187560 -- nosy: +python-dev ___

[issue19077] More robust TemporaryDirectory cleanup

2014-01-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50aa9e3ab9a4 by Serhiy Storchaka in branch '3.3': Issue #19077: tempfile.TemporaryDirectory cleanup is now most likely http://hg.python.org/cpython/rev/50aa9e3ab9a4 New changeset d792eb3afa58 by Serhiy Storchaka in branch 'default': Issue #19077: te

[issue20399] Comparison of memoryview

2014-01-27 Thread Mark Lawrence
Mark Lawrence added the comment: Some discussion here https://groups.google.com/forum/#!topic/dev-python/1D_iExlsva8 -- nosy: +BreamoreBoy ___ Python tracker ___ ___

  1   2   >