[issue22713] print()

Garry Smith report at bugs.python.org
Thu Oct 23 21:03:16 CEST 2014


New submission from Garry Smith:

Problem with print()
I did the following by accident while in the python console, print = 10, which it let me do, to horror.after that I could not use the print() command without getting the following error:-

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable

This is what I type in the console.

print = 33
a = 34
print(a)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable.

The only way to get the print command back was close and reopen the console.

----------
messages: 229890
nosy: gazza7364
priority: normal
severity: normal
status: open
title: print()
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22713>
_______________________________________


More information about the Python-bugs-list mailing list