Two minor syntactic proposals

John J. Lee phrxy at csv.warwick.ac.uk
Thu Jun 21 21:07:08 EDT 2001


On Thu, 21 Jun 2001, John Roth wrote:
[...]
> > >How about just the dot? I.e., ".x" means "self.x"
> >
> > That sounds a good idea.
>
> I like it! I don't think it will break anything.
[...]

It's been said before, but 's.x' is pretty short, and if you use it
consistently in some reasonable chunk of code, nobody's going to
misunderstand it.


John




More information about the Python-list mailing list