[issue8878] IDLE - str(integer) - TypeError: 'str' object is not callable

2010-06-02 Thread Neil Crouch

New submission from Neil Crouch neil.cro...@tradingtechnologies.com:

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

--
components: IDLE
files: IDLE_err.txt
messages: 106887
nosy: Stranger381
priority: normal
severity: normal
status: open
title: IDLE - str(integer) - TypeError: 'str' object is not callable
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file17523/IDLE_err.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8878
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8878] IDLE - str(integer) - TypeError: 'str' object is not callable

2010-06-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

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

--
nosy: +ezio.melotti
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8878
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8878] IDLE - str(integer) - TypeError: 'str' object is not callable

2010-06-02 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

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'

--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8878
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com