[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-06-26 Thread paul j3
paul j3 added the comment: I've added 2 more tests, one with default='c', which worked before. one with default=['a','b'], which only works with this change. http://bugs.python.org/issue16878 is useful reference, since it documents the differences between nargs="?" and nargs="*", and their ha

[issue16113] Add SHA-3 (Keccak) support

2013-06-26 Thread Aaron Gallagher
Aaron Gallagher added the comment: As long as the reference Keccak code is going to live in the python stdlib anyway, I would /greatly/ appreciate it if the Keccak sponge function was directly exposed instead of just the fixed parameters used for SHA-3. A Keccak sponge can have a much wider r

[issue18093] Move main functions to a separate Programs directory

2013-06-26 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-06-26 Thread py.user
New submission from py.user: http://docs.python.org/3/library/itertools.html#itertools-recipes "def repeatfunc(func, times=None, *args):" >>> repeatfunc(lambda x: x, times=None, 1) File "", line 1 SyntaxError: non-keyword arg after keyword arg >>> >>> repeatfunc(lambda x: x, 1, times=None) Tra

[issue18309] Make python slightly more relocatable

2013-06-26 Thread Eric Snow
Eric Snow added the comment: Hi Mathias. There is a current proposal (http://www.python.org/dev/peps/pep-0432/) for improving interpreter startup. So changes in this area are subject to extra caution. The changes you are talking about are at least indirectly impacted by the proposal, though

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue18310] itertools.tee() can't accept keyword arguments

2013-06-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18312] "make distclean" deletes files under .hg directory

2013-06-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18312] "make distclean" deletes files under .hg directory

2013-06-26 Thread Eric V. Smith
New submission from Eric V. Smith: See: http://mail.python.org/pipermail/python-dev/2013-June/127068.html The find command: find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ -o -name '[@,#]*' -o -name '*.old' \ -o -name '*.orig' -o -na

[issue18310] itertools.tee() can't accept keyword arguments

2013-06-26 Thread py.user
py.user added the comment: tee() docs describe n as a keyword -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18242] IDLE should not be replacing warnings.formatwarning

2013-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #18103 for patch that will fix this also. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18081] test_logging failure in WarningsTest on buildbots

2013-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is a patch that looks much bigger than it really is. Idle was written before the warnings module, so the warnings system was conditioned on a successful warnings import. The test is no longer needed, and neither Vinay nor Victor repeated the test at the n

[issue18173] Add MixedTypeKey to reprlib

2013-06-26 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: PS: I like to have DER cert support for #17134. I'd rather not convert DER to PEM. -- ___ Python tracker ___

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: Thx Kristján! My patch maps PyUnicode to PEM encoded cert data and objects with Py_Buffer support to DER encoded cert data. Perhaps you like to you the same concept in your patch to support TextIO and BytesIO read() methods. Feel free to reuse as much of my

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is an updated patch. We now support file-like objects. New helper functions try to turn file arguments into either Py_buffer objects containing the read data, or PyBytesObject argument with the file system encoding of the path. A file-like object i

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-26 Thread Guido van Rossum
Guido van Rossum added the comment: Wow. This is heady stuff. I can't say I totally get every detail, so I'll just pick on some things you wrote. In particular, I'm not sure I agree that there should be a conflict when there are two applicable base classes with a different dispatch if one of t

[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-06-26 Thread David Edelsohn
David Edelsohn added the comment: The current arguments to checkRecvmsgAddress() are the sockaddrs, so it does not know the protocol family. One potential patch to infer the family and apply the correct test is: diff -r 035d8fed07ad Lib/test/test_socket.py --- a/Lib/test/test_socket.py Tue J

[issue17206] Py_XDECREF() expands its argument multiple times

2013-06-26 Thread Jeremy Kloth
Jeremy Kloth added the comment: Here is some additional analysis of recursive functions in the 'pythoncore' MSVC project: Ratio Release Debug Filename:Function Name StackStack --- 1.000 32 32_sre.asm:_validate_inner 1.159

[issue18305] [patch] Fast sum() for non-numbers

2013-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Windows nosy: +haypo, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-06-26 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue18081] test_logging failure in WarningsTest on buildbots

2013-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have changed the Versions sooner, as soon as it became obvious that this was not just a 3.4 issue. The 'temporary' 3.4-only patch breaks forward merging of a better patch. I will back it out just before I commit a 3.3 patch to both eliminate the .form

[issue7936] sys.argv contains only scriptname

2013-06-26 Thread TonyP
TonyP added the comment: I have v2.7, v3.2, and v3.3 installed on a Win7 64-bit machine and the exact same setup on a Win7 32-bit machine. The 32-bit works OK. The 64-bit machine had this argv problem, too! (I tried installing either Win32/Win64 version, no difference!) Adding %* fixed the

[issue18310] itertools.tee() can't accept keyword arguments

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: A bunch builtin types and functions don't accept keyword args. kwargs make code slightly more complexity and a tiny bit slower. -- assignee: -> rhettinger nosy: +christian.heimes, rhettinger priority: normal -> low __

[issue18311] Typo in SSL documentation

2013-06-26 Thread R. David Murray
R. David Murray added the comment: Fixed, thanks. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker __

[issue18311] Typo in SSL documentation

2013-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ae8a84f443 by R David Murray in branch '3.3': #18311: fix typo. http://hg.python.org/cpython/rev/d7ae8a84f443 New changeset 16fe29689f3f by R David Murray in branch 'default': Merge #18311: fix typo. http://hg.python.org/cpython/rev/16fe29689f3f

[issue18242] IDLE should not be replacing warnings.formatwarning

2013-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue18311] Typo in SSL documentation

2013-06-26 Thread mp
New submission from mp: Under http://docs.python.org/3.4/library/ssl.html#ssl.SSLContext.set_npn_protocols "avertise" should be "advertise". This is in documentation for both 3.4 and 3.3 -- assignee: docs@python components: Documentation messages: 191913 nosy: docs@python, pfista prio

[issue18310] itertools.tee() can't accept keyword arguments

2013-06-26 Thread py.user
New submission from py.user: >>> import itertools >>> itertools.tee('x', n=2) Traceback (most recent call last): File "", line 1, in TypeError: tee() takes no keyword arguments >>> -- components: Library (Lib) messages: 191912 nosy: py.user priority: normal severity: normal status: op

[issue18307] Relative path in co_filename for zipped modules

2013-06-26 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +brett.cannon, christian.heimes stage: -> test needed versions: +Python 3.4 ___ Python tracker ___ ___

[issue11454] email.message import time

2013-06-26 Thread R. David Murray
R. David Murray added the comment: I've checked in the encode version of the method. I'm going to pass on doing the other inlines, given that the improvement isn't that large. I will, however, keep the issue in mind as I make other changes to the code, and there will be a general performance

[issue11454] email.message import time

2013-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 520490c4c388 by R David Murray in branch 'default': #11454: Reduce email module load time, improve surrogate check efficiency. http://hg.python.org/cpython/rev/520490c4c388 -- nosy: +python-dev ___ Python

[issue18309] Make python slightly more relocatable

2013-06-26 Thread Mathias Fröhlich
New submission from Mathias Fröhlich: Hi all, I want to move python a bit closer to be relocatable. One problem to solve is where python finds its modules. The usual lookup mechanism is to compile in a configure time determined prefix that is used as a last resort path if the paths are not set o

[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-06-26 Thread David Edelsohn
New submission from David Edelsohn: The recvmsg tests in test_socket.py check that the address returned by recvmsg matches the original address to which the socket was bound. For IPv6, sockaddr includes sin6_scope_id, in addition to the address and port. The test connects to host "::1", which

[issue18307] Relative path in co_filename for zipped modules

2013-06-26 Thread Vitaly Murashev
New submission from Vitaly Murashev: Recently I found out that it not possible to debug python code if it is a part of zip-module. Python version being used is 3.3.0 Well known GUI debuggers like Eclipse+PyDev or PyCharm are unable to start debugging and give the following warning: --- pydev d

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread John Jefferies
John Jefferies added the comment: On 26/06/2013 13:38, Christian Heimes wrote: > Christian Heimes added the comment: > > On my Windows box (Win 7) I'm getting an error with Python 3.2 and 3.3. It > looks like I'm not allowed to enter the parent directory (Zugriff verweigert > == Permission Deni

[issue18289] python.org Interactive interpreter linked with libedit can segfault on future OS X

2013-06-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: There is much confusing about junction point on the internet. Some sites like Wikipedia claim that a junction point is a kind of soft link. Other sites refer to junction points as "directory hard links". IMO "directory hard links" is wrong. Contrary to file

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: On my Windows box (Win 7) I'm getting an error with Python 3.2 and 3.3. It looks like I'm not allowed to enter the parent directory (Zugriff verweigert == Permission Denied): >>> os.stat(r'C:\Windows\System32\config') Traceback (most recent call last): Fil

[issue18305] [patch] Fast sum() for non-numbers

2013-06-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: Let's have a look -- assignee: -> christian.heimes keywords: +3.3regression nosy: +christian.heimes stage: -> test needed versions: +Python 3.4 ___ Python tracker _

[issue706263] print in pythonw raises silent exception when no console available

2013-06-26 Thread Christian Heimes
Christian Heimes added the comment: I recommend against changing the code so late in the Python 2.7 release cycle. A change in behavior is too confusing. And it's not a bug but a design decision, too. Over five years ago I implement parts of the IO interaction with the operating system for Pyth

[issue5845] rlcompleter should be enabled automatically

2013-06-26 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue706263] print in pythonw raises silent exception when no console available

2013-06-26 Thread anatoly techtonik
anatoly techtonik added the comment: This is still an issue for Python 2 users. Most important that pythonw.exe has a magic ability to fail silently leaving users with no means to create valid bug reports (the reason why StackOverflow questions are downvoted and erased). http://bugs.ascend4.or

[issue18295] Possible integer overflow in PyCode_New()

2013-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think they are actually the *same* issue. For the limitations wrt. code objects (maximum size of byte code, maximum number of local variables, maximum number of parameters, etc.), I recommend the following thorough procedure: 1. document in a single

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-06-26 Thread John Jefferies
New submission from John Jefferies: If os.stat is executed on a Windows junction with Python 3.3 I see an exception: >>> import os >>> os.stat('C:\Windows\System32\config\systemprofile\SendTo') Traceback (most recent call last): File "", line 1, in FileNotFoundError: [WinError 2]

[issue18298] pythonw.exe fails with redirected stderr

2013-06-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: RPython... let's be serious. The code of pythonw.exe is very simple, see PC/WinMain.c. No, pythonw.exe is not "meant to suppresses the terminal window on startup". This is only a consequence of being a "windows application". There is a lot of documentat

[issue18298] pythonw.exe fails with redirected stderr

2013-06-26 Thread anatoly techtonik
anatoly techtonik added the comment: I am not using pythonw.exe, it is the option users prefer to run the program. pythonw.exe is a binary, how do you propose to patch that? Or is it translated to .exe with RPython? Can you be more specific what shell does not work correctly, what exactly