[Patches] [ python-Patches-1681002 ] binary and new-style octal literals

SourceForge.net noreply at sourceforge.net
Thu Jul 12 09:57:51 CEST 2007


Patches item #1681002, was opened at 2007-03-14 21:55
Message generated for change (Comment added) made by twouters
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681002&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.6
>Status: Closed
>Resolution: Out of Date
Priority: 3
Private: No
Submitted By: Thomas Wouters (twouters)
Assigned to: Guido van Rossum (gvanrossum)
Summary: binary and new-style octal literals

Initial Comment:
Incomplete patch that adds '0t777' and '0b101010' style literals. It lacks a NEWS item, documentation and compiler-package changes (although it may not need any.) 2to3 recipe also not included.


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

>Comment By: Thomas Wouters (twouters)
Date: 2007-07-12 09:57

Message:
Logged In: YES 
user_id=34209
Originator: YES

Out of date and fixed already by another patch.


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

Comment By: Collin Winter (collinwinter)
Date: 2007-03-21 23:34

Message:
Logged In: YES 
user_id=1344176
Originator: NO

Georg has worked up a 2to3 fixer that implements the 0777 -> 0o777 and
assorted other numeric literal fix-ups, called fix_numliterals. 2to3 will
support 0b101010 literals just as soon as I type up a commit message.

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

Comment By: Thomas Wouters (twouters)
Date: 2007-03-14 22:06

Message:
Logged In: YES 
user_id=34209
Originator: YES

The compiler package does indeed not need any changes, as it still uses
Python's own tokenizer. And in case there's any doubt, I'm still -1 on this
change :) (But unfortunately the easy implementation of it didn't exactly
give me new ammo.)

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681002&group_id=5470


More information about the Patches mailing list