Language question

Gordon McMillan gmcm at hypernet.com
Tue Oct 19 22:23:33 EDT 1999


[Tim Peters]
> [Brian Kelley]
> > class foo:
> >       """insert foo here"""
> >
> > def bar(foo):
> >       """this should really be class bar(foo):  Insert bar
> >       here"""

> [Gordon McMillan]
> > What's to disallow? ...
> 
> After several readings, I believe Brian objects to Python
> allowing him to reuse the name of a class as a formal argument
> name, in a context where "class" in place of "def" would have
> been legal.  That is, he would like Python to ignore what he
> typed and infer his intent <wink>.

Oh! And I just did that this morning! But I blamed it on not-
enough-coffee.

tOo-mUcH-bzz-iS-sTiLl-nOt-bzz-eNoUgH-lY-y'Rs

-gOrdOn


- Gordon




More information about the Python-list mailing list