total idiot question: +=, .=, etc...
Reimer.Behrends at p98.f112.n480.z2.fidonet.org
Wed Jun 30 09:14:09 EDT 1999
From: behrends at cse.msu.edu (Reimer Behrends)
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.
More information about the Python-list