[docs] Issue with python function names
david becker
ardavidbecker at gmail.com
Sat Feb 6 00:41:47 EST 2016
Hi,
I have a query in using function names. Python allows users to write their
own functions with built-in function names.
Example:
def print():
return "strange"
print() -- Returns strange
++++++++++++++++++++++++++++
But the built in "print" function doesn't work any more till i restart the
shell.
I personally feel users should not be allowed to use built in function
names. Is there any special reason why python allows them?
Thanks,
David Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20160206/3d825e0e/attachment-0001.html>
More information about the docs
mailing list