[Patches] [ python-Patches-870807 ] optparse int,
long types support binary, octal and hex forma
SourceForge.net
noreply at sourceforge.net
Sat Mar 19 18:07:59 CET 2005
Patches item #870807, was opened at 2004-01-05 05:18
Message generated for change (Comment added) made by gward
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=870807&group_id=5470
Category: Library (Lib)
>Group: Python 2.5
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Greg Ward (gward)
Summary: optparse int, long types support binary, octal and hex forma
Initial Comment:
Hello,
I've added support for binary, octal and hexa number
with the "int" and "long" types.
binary : 0b10 (= 2)
octal : 010 (= 8)
hexa: 0x10 (= 16)
Diff for optparse.py and test_optparse.py attached.
Miki.
----------------------------------------------------------------------
>Comment By: Greg Ward (gward)
Date: 2005-03-19 12:07
Message:
Logged In: YES
user_id=14422
Argh, I didn't get around to this in time for Python 2.4.
It's already in Optik 1.5, but that was too late for Python
2.4, and it's a new feature so I can't port it to the Python
CVS tree before Python 2.5. Oh well, it'll get there
eventually.
----------------------------------------------------------------------
Comment By: Greg Ward (gward)
Date: 2004-11-05 21:07
Message:
Logged In: YES
user_id=14422
Cool, I like the idea. Couldn't use the patch directly,
since optparse.py and liboptparse.tex are generated from the
Optik source. So I did it my own way.
BTW, a big *thank you* for providing test and doc patches
too. Without those, I would have been much less likely to
accept this patch.
Checked in to Optik svn repository, r449. Leaving this
patch until this is merged into Python CVS.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-08-22 02:50
Message:
Logged In: YES
user_id=21627
Ok, assigning this to Greg for consideration.
----------------------------------------------------------------------
Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2004-08-21 07:53
Message:
Logged In: YES
user_id=469548
optparse.py is automatically generated from the Optik source
code, so you should file this against the Optik project
(http://sf.net/projects/optik/) instead of here.
Still, liboptparse.tex isn't in the Optik project, so this
should be kept open as well.
----------------------------------------------------------------------
Comment By: Miki Tebeka (tebeka)
Date: 2004-02-01 06:31
Message:
Logged In: YES
user_id=358087
Attached.
Please check it, English is *not* my native language.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-01-31 07:39
Message:
Logged In: YES
user_id=21627
Can you please provide a patch for Doc/lib/liboptparse.tex
as well?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=870807&group_id=5470
More information about the Patches
mailing list