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

Reimer Behrends behrends at
Wed Jun 30 09:14:09 EDT 1999

Bernhard Herzog (herzog at 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