[issue15060] docs: socket typo

2012-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 412c7daed0db by Sandro Tosi in branch '2.7': Issue #15060: better fix, thanks to review on #python-dev http://hg.python.org/cpython/rev/412c7daed0db New changeset e616985284cd by Sandro Tosi in branch '3.2': Issue #15060: better fix, thanks to revi

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-06-13 Thread Christian Heimes
Christian Heimes added the comment: The second patch looks fine. -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-li

[issue8668] Packaging: add a 'develop' command

2012-06-13 Thread Alex Grönholm
Alex Grönholm added the comment: Python 3.3 is entering beta soon. The develop command is a must have, especially now that virtualenv is part of the official Python distribution. Can someone summarize what still needs to be done to get this feature merged? -- nosy: +agronholm ___

[issue15061] hmac.secure_compare() leaks information of length of strings

2012-06-13 Thread Christian Heimes
New submission from Christian Heimes : The secure_compare() function immediately returns False when both strings don't have equal length. With the patch the run time of secure_compare() always depends on the length of the right side. It no longer gives away information about the length of the

[issue1667546] Time zone-capable variant of time.localtime

2012-06-13 Thread Paul Boddie
Paul Boddie added the comment: On Wednesday 13 June 2012 23:51:25 Alexander Belopolsky wrote: > Alexander Belopolsky added the comment: > > I've simplified Paul's patch by removing timegm and mktimetz functions. > Also, platforms that don't support tm_zone are unaffected. I think you may have

[issue15062] argparse: option for a positional argument

2012-06-13 Thread wrobell
New submission from wrobell : it would be great if argparse allowed to specify options for multiple positional arguments, i.e. usage: ascript [-h] [-k value] input [[-k value] input ...] output then $ ascript pos1 pos2 -k 1 pos3 -k 2 pos4 pos5 pos6 out would give Namespace(input=[(N

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-06-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch "issue13241-configure-version1.txt" implements a number of changes to configure (although only configure.ac is present in the patch) 1) Autodetect the compiler on OSX, in particular - detect llvm-gcc and use clang instead - use clang

[issue15062] argparse: option for a positional argument

2012-06-13 Thread R. David Murray
R. David Murray added the comment: It took me a while to make any sense out of your example, but having done so I don't think it makes any sense in the argparse context. It is certainly not the way argparse handles options or arguments. In argparse, if you have an option 'k', you get 'k' map

[issue1667546] Time zone-capable variant of time.localtime

2012-06-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jun 13, 2012 at 7:08 PM, Paul Boddie wrote: > I think you may have forgotten to remove docstring references to those > functions. Good catch. BTW, did you write the additional tests for strptime? This is the only thing that I want to add before

[issue15062] argparse: option for a positional argument

2012-06-13 Thread wrobell
wrobell added the comment: an example would be a pdf merger accepting multiple files and allowing to specify list of pages for each input. at the moment, you can do the following with argparse pdfmerge [pages] input [[pages] input ...] output of course, above is not perfect as you need a

[issue15062] argparse: option for a positional argument

2012-06-13 Thread R. David Murray
R. David Murray added the comment: Well, if you can figure out how to add it, please do suggest a patch :) It occurs to me that 'find' is a sort-of similar example, where options can be repeated but the order in which they appear relative to other options matters. So I can see that there cou

[issue1667546] Time zone-capable variant of time.localtime

2012-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b5545ba6432 by Alexander Belopolsky in branch 'default': Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fields http://hg.python.org/cpython/rev/3b5545ba6432 -- nosy: +python-dev ___ Pytho

[issue1667546] Time zone-capable variant of time.localtime

2012-06-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15008] PEP 362 "Signature Objects" reference implementation

2012-06-13 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a patch that implements the latest version of the PEP. Quick summary: 1. Ditched Signature.name & Signature.qualname 2. Added Signature.__eq__ and __ne__ 3. signature() supports classes, metaclasses, decorated stuff, partials, methods, classmethods,

[issue12982] Document that importing .pyo files needs python -O

2012-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The response from pydev is that running .pyc with -O or running .pyo without is not officially supported. Even if mixing usually works now, it does not always work properly for code with __debug__, assert, or __doc__. The scope of possible malfunctions may in

[issue15063] Source code links for JSON documentation

2012-06-13 Thread Bryce Verdier
New submission from Bryce Verdier : In some parts of the documentation there are links to the source code. While looking in the JSON documentation that link isn't there. Not sure if this is wanted or if it's complete. But I'm submitting it anyway in the hopes of feedback. -- assignee:

[issue14848] Use shutil.move instead of os.rename in packaging

2012-06-13 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Sorry, no traceback by default, had to augment with "raise" :) Now output looks like this: nekto0n@ya-darkstar /var/tmp/mypackage $ pysetup remove pygraphviz u'workflow': u'1.01' is not a valid version (field 'Version') u'zc-zookeeper-static': u'3.4.3-3' is

[issue9679] unicode DNS names in urllib, urlopen

2012-06-13 Thread John Nagle
John Nagle added the comment: The current convention is that domains go into DNS lookup as punycode, and the port, query, and fragment fields of the URL are encoded with percent-escapes. See http://lists.w3.org/Archives/Public/ietf-http-wg/2011OctDec/0155.html Python needs to get with the p

[issue14848] Use shutil.move instead of os.rename in packaging

2012-06-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks! As your message shows the problem is in the install module, I propose to close this bug as a duplicate of Alexis’ bug about improving d2.install. The new FileMover class should use shutil.move, and we’ll make sure to test install+remove as you did to s

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-13 Thread mattip
mattip added the comment: What is the next stage in moving this forward? I am new here... -- ___ Python tracker ___ ___ Python-bugs-l

[issue14848] Use shutil.move instead of os.rename in packaging

2012-06-13 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: glad to help -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

<    1   2