Re: My stupid newbie mistake

2005-04-11 Thread Fredrik Lundh
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

Re: My stupid newbie mistake

2005-04-11 Thread Peter Hansen
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

Re: My stupid newbie mistake

2005-04-11 Thread Larry Bates
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

My stupid newbie mistake

2005-04-11 Thread Matt Feinstein
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