Probably I'm just too stupid, but...
Nick Arnett
narnett at mccmedia.com
Wed Apr 24 11:59:33 EDT 2002
What were you expecting?
If you wanted to call the function, you'd use c(). When you entered just
'c', you were asking about the object, not running it.
I'm sure that many of us have made the same mistake sometimes... I have.
Nick
> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of redflag
> Sent: Wednesday, April 24, 2002 8:46 AM
> To: python-list at python.org
> Subject: Probably I'm just too stupid, but...
>
>
> >>> def c():
> for i in range(10):
> print i
More information about the Python-list
mailing list