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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to