Calling a constructor by reference
Russell Blau
russblau at hotmail.com
Thu Oct 7 09:59:54 EDT 2004
"Russell Blau" <russblau at hotmail.com> wrote in message
news:2skvurF1mh1b5U1 at uni-berlin.de...
> Hint: what do you see if you run the following function?
>
> >>> def show_args(type, *args):
> print args
>
> >>> show_args()
D'oh! You see an exception, of course! That last line should be
show_args(X), where X is some object you have already created.
--
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.
More information about the Python-list
mailing list