Case sensitivity
Alex Martelli
aleax at aleax.it
Tue Feb 25 03:11:24 EST 2003
Magnus Lie Hetland wrote:
...
> that the following is quite natural:
>
> class Airplane:
> ...
>
> class Hangar:
> def accept(self, airplane):
> pass
Sure -- the class name Airplane and the argument name
airplane are in different scopes, so they wouldn't clash
whatever capitalization sensitivity the language had or
didn't. Now if the body of Hangar.accept wanted to also
refer to class Airplane, THEN we could disagree hotly;-).
Alex
More information about the Python-list
mailing list