[Patches] [ python-Patches-870807 ] optparse int, long types support binary, octal and hex forma

SourceForge.net noreply at sourceforge.net
Mon Jan 5 05:18:19 EST 2004


Patches item #870807, was opened at 2004-01-05 12:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=870807&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Nobody/Anonymous (nobody)
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.

----------------------------------------------------------------------

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