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

IDLE - str(integer) - TypeError: 'str' object is not callable #53124

Closed
Stranger381 mannequin opened this issue Jun 2, 2010 · 3 comments
Closed

IDLE - str(integer) - TypeError: 'str' object is not callable #53124

Stranger381 mannequin opened this issue Jun 2, 2010 · 3 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@Stranger381
Copy link
Mannequin

Stranger381 mannequin commented Jun 2, 2010

BPO 8878
Nosy @mdickinson, @ezio-melotti
Files
  • IDLE_err.txt: IDLE - output
  • 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 = None
    closed_at = <Date 2010-06-02.14:49:30.740>
    created_at = <Date 2010-06-02.14:47:40.731>
    labels = ['expert-IDLE', 'type-bug', 'invalid']
    title = "IDLE - str(integer) - TypeError: 'str' object is not callable"
    updated_at = <Date 2010-06-02.14:52:39.207>
    user = 'https://bugs.python.org/Stranger381'

    bugs.python.org fields:

    activity = <Date 2010-06-02.14:52:39.207>
    actor = 'mark.dickinson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-06-02.14:49:30.740>
    closer = 'ezio.melotti'
    components = ['IDLE']
    creation = <Date 2010-06-02.14:47:40.731>
    creator = 'Stranger381'
    dependencies = []
    files = ['17523']
    hgrepos = []
    issue_num = 8878
    keywords = []
    message_count = 3.0
    messages = ['106887', '106888', '106889']
    nosy_count = 3.0
    nosy_names = ['mark.dickinson', 'ezio.melotti', 'Stranger381']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8878'
    versions = ['Python 2.6']

    @Stranger381
    Copy link
    Mannequin Author

    Stranger381 mannequin commented Jun 2, 2010

    Unable to convert int to str in idle but from the cmd python prompt it work sfine.

    @Stranger381 Stranger381 mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Jun 2, 2010
    @ezio-melotti
    Copy link
    Member

    You probably did str = '4bf3e914' at some point and overridden str.

    @mdickinson
    Copy link
    Member

    The code you show works fine for me.

    The error you're seeing is almost certainly the result of inadvertently using 'str' as a variable name earlier in the IDLE session:

    Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> str = '4bf3e914'
    >>> hell = str(123)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'str' object is not callable
    >>> help(str)
    no Python documentation found for '4bf3e914'

    @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
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants