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

input() vs __future__ #39812

Closed
mwhudson opened this issue Jan 13, 2004 · 4 comments
Closed

input() vs __future__ #39812

mwhudson opened this issue Jan 13, 2004 · 4 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@mwhudson
Copy link

BPO 876178
Nosy @mwhudson, @hyeshik
Files
  • input-future.diff: mwh's fix Support "bpo-" in Misc/NEWS #1
  • inputfuture-test.diff: perky's unittest Support "bpo-" in Misc/NEWS #1
  • 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/hyeshik'
    closed_at = <Date 2004-02-02.13:43:20.000>
    created_at = <Date 2004-01-13.16:17:35.000>
    labels = ['interpreter-core']
    title = 'input() vs __future__'
    updated_at = <Date 2004-02-02.13:43:20.000>
    user = 'https://github.com/mwhudson'

    bugs.python.org fields:

    activity = <Date 2004-02-02.13:43:20.000>
    actor = 'hyeshik.chang'
    assignee = 'hyeshik.chang'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2004-01-13.16:17:35.000>
    creator = 'mwh'
    dependencies = []
    files = ['5785', '5786']
    hgrepos = []
    issue_num = 876178
    keywords = ['patch']
    message_count = 4.0
    messages = ['45277', '45278', '45279', '45280']
    nosy_count = 2.0
    nosy_names = ['mwh', 'hyeshik.chang']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue876178'
    versions = ['Python 2.4']

    @mwhudson
    Copy link
    Author

    There's a thread on comp.lang.python about input()s
    lack of interaction with __future__ statements:

    >>> from __future__ import division
    >>> input('blah: ')
    blah: 1/2
    0

    This simple patch fixes that. Not sure how to write a
    testcase, though.

    @mwhudson mwhudson added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 13, 2004
    @mwhudson mwhudson added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 13, 2004
    @hyeshik
    Copy link
    Contributor

    hyeshik commented Feb 1, 2004

    Logged In: YES
    user_id=55188

    I wrote a unittest. How's this?

    @mwhudson
    Copy link
    Author

    mwhudson commented Feb 2, 2004

    Logged In: YES
    user_id=6656

    Looks fine to me. Check it in.

    @hyeshik
    Copy link
    Contributor

    hyeshik commented Feb 2, 2004

    Logged In: YES
    user_id=55188

    Ok. Checked in:
    Misc/NEWS 1.926
    Python/bltinmodule.c 2.308
    Lib/test/test_builtin.py 1.28

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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