[Python-ideas] PEP: Shorthand Symbol for "self"

Russ Paielli russ.paielli at gmail.com
Mon Aug 25 08:29:57 CEST 2008

On Sun, Aug 24, 2008 at 11:10 PM, Andrew Akira Toulouse
<andrew at atoulou.se>wrote:

> I agree with Brett.
> While it's true that $ is four character shorter than 'self.', it also
> loses expressiveness by doing so. The point here seems to be that it
> distinguishes local variables with instance variables. Whereas 'self.'
> conveys the idea that this is an instance variable clearly, a symbol such as
> '$' or '@' does not.

Yes it does. Or, rather, it could if allowed to do so.

The notion that Python programmers are too simple minded to adapt to a
simple notational convention seems a bit bizarre to me. Of course it does
not seem "natural" to you yet, because it is a new idea and you have not had
a chance to grow accustomed to it. But I think that anyone with half or more
of a brain could become completely comfortable with the idea within an hour
or two if they would just give a chance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20080824/e8bd49f2/attachment.html>

More information about the Python-ideas mailing list