Static class methods
Alex Shindich
alex at shindich.com
Sat Mar 10 04:30:26 EST 2001
> [Previous] [Next] [Reply] [Index] [Home] [Find]
>
> * Newsgroups: comp.lang.python
> * From: Greg Ewing <greg at cosc.canterbury.ac.nz>
> * Subject: Re: Static class methods
> * Date: Thu, 08 Mar 2001 14:50:12 +1300
> * Organization: Computer Science Dept, University of Canterbury
>
> ------------------------------------------------------------------------
> The class scope is already special with respect to
> nested scopes anyway, since it doesn't count as a
> scope when you're looking out from inside a method.
> So even if there were class methods, you wouldn't
> be able to call them from within a method without
> qualification of some sort.
>
> However, class scopes *do* behave like other scopes
> in that the code in the body of the following function:
I would argue that this is inconsistent. Since nested scopes are supported now, classes should be subjected to the same rules functions are.
--
Alex Shindich
mailto:alex at shindich.com
Visit http://www.shindich.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010310/a618c1fe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alex.vcf
Type: text/x-vcard
Size: 194 bytes
Desc: Card for Alex Shindich
URL: <http://mail.python.org/pipermail/python-list/attachments/20010310/a618c1fe/attachment.vcf>
More information about the Python-list
mailing list