[issue20263] Function print definable as variables?

Ozy report at bugs.python.org
Wed Jan 15 01:40:07 CET 2014


New submission from Ozy:

Not sure if this is a bug. We're experiencing it in v3.3.2 and was discovered by accident.

It seems to be possible to define python functions (like print or input) as variables, as if they're not reserved. If you do that, the command functionality is lost until Python is reseted.

For example try this in IDLE:

>>> print = 10
>>> print
10
>>> print(print)
TypeError: int object is not callable
>>> print(10)
TypeError: int object is not callable

Here is a screenshot >

http://imgur.com/IpjELhp

We tested it, and this doesn't happen in v2.

Sorry if this has been reported previously.

Best regards.

----------
messages: 208125
nosy: ozy
priority: normal
severity: normal
status: open
title: Function print definable as variables?
type: behavior
versions: Python 3.3

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


More information about the Python-bugs-list mailing list