total idiot question: +=, .=, etc...

Reimer Behrends behrends at cse.msu.edu
Wed Jun 30 15:14:09 CEST 1999


Bernhard Herzog (herzog at online.de) wrote:
[...]
> I think a better solution that better fits the python syntax is to
> simply omit the self but not the dot:
> 
> 	.last = .lines[-1]
>  	.lines = .lines[:-1]

Such a syntax was proposed a few years ago for private variables,
IIRC, but was discarded because it had various problems.

And personally, I'd rather live with the inconvenience of the explicit
self rather than having Python's design obfuscated by some strange
syntax; syntax highlighting can go a long way towards making the current
state of affairs more manageable.

			Reimer Behrends




More information about the Python-list mailing list