Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary and new-style octal literals #44717

Closed
Yhg1s opened this issue Mar 14, 2007 · 4 comments
Closed

binary and new-style octal literals #44717

Yhg1s opened this issue Mar 14, 2007 · 4 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@Yhg1s
Copy link
Member

Yhg1s commented Mar 14, 2007

BPO 1681002
Nosy @gvanrossum, @Yhg1s
Files
  • binliterals.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/gvanrossum'
    closed_at = <Date 2007-07-12.07:57:51.000>
    created_at = <Date 2007-03-14.20:55:15.000>
    labels = ['interpreter-core']
    title = 'binary and new-style octal literals'
    updated_at = <Date 2007-07-12.07:57:51.000>
    user = 'https://github.com/Yhg1s'

    bugs.python.org fields:

    activity = <Date 2007-07-12.07:57:51.000>
    actor = 'twouters'
    assignee = 'gvanrossum'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2007-03-14.20:55:15.000>
    creator = 'twouters'
    dependencies = []
    files = ['7872']
    hgrepos = []
    issue_num = 1681002
    keywords = ['patch']
    message_count = 4.0
    messages = ['52220', '52221', '52222', '52223']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'twouters', 'collinwinter']
    pr_nums = []
    priority = 'low'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1681002'
    versions = ['Python 2.6']

    @Yhg1s
    Copy link
    Member Author

    Yhg1s commented Mar 14, 2007

    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.

    @Yhg1s Yhg1s closed this as completed Mar 14, 2007
    @Yhg1s Yhg1s added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 14, 2007
    @Yhg1s Yhg1s closed this as completed Mar 14, 2007
    @Yhg1s Yhg1s added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 14, 2007
    @Yhg1s
    Copy link
    Member Author

    Yhg1s commented Mar 14, 2007

    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.)

    @collinwinter
    Copy link
    Mannequin

    collinwinter mannequin commented Mar 21, 2007

    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.

    @Yhg1s
    Copy link
    Member Author

    Yhg1s commented Jul 12, 2007

    Out of date and fixed already by another patch.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants