[Python-Dev] Re: method decorators (PEP 318) (original) (raw)

Casey Duncan casey at zope.com
Fri Mar 26 14:35:36 EST 2004


On Fri, 26 Mar 2004 11:19:14 -0800 Guido van Rossum <guido at python.org> wrote:

> > No, I want to reserve the leading dot for attribute assignment to > > a special object specified by a 'with' statement, e.g. > > > > with self: > > .foo = [1, 2, 3] > > .bar(4, .foo) > > Have you been reading the Prothon docs? ;^)

No, I've expressed this idea before, and they probably saw it. Plus, this is in VB so neither of us can claim to have invented it. :-) http://freespace.virgin.net/s.cowan/vbhowto/howto/vbcontrols/withstatement.htm (And "with" was in Pascal 30+ years ago, without the leading dot.)

Pascal being my first compiled language I am well aware. As for VB, well if it's good enough for VB, then hell.. ;^)

For some reason I thought there was a philosophical objection to 'with' in Python. Must have been an urban myth I guess.

-Casey



More information about the Python-Dev mailing list