Larry Bates wrote:
> Because Python allows you to replace built-in methods with
> your own. Later you will find that this can be extremely
> powerful. You will stumble on this if you name a list 'list'
> a string 'str', integer 'int', float 'float', dictionary
> 'dict', ... (at least I did ).
t
Larry Bates wrote:
Matt Feinstein wrote:
import try
gave a syntax error... So, how about a
'YouAreUsingAReservedWordStupid' exception ?
Because Python allows you to replace built-in methods with
your own. Later you will find that this can be extremely
powerful.
Powerful, but not involved in this
Because Python allows you to replace built-in methods with
your own. Later you will find that this can be extremely
powerful. You will stumble on this if you name a list 'list'
a string 'str', integer 'int', float 'float', dictionary
'dict', ... (at least I did ).
-Larry Bates
Matt Feinstein wr
I named a file 'try.py' and then was stumped, for a while, when
>>> import try
gave a syntax error... So, how about a
'YouAreUsingAReservedWordStupid' exception ?
Matt Feinstein
--
There is no virtue in believing something that can be proved to be true.
--
http://mail.python.org/mailman/listin