Explicit Frustration of the Self

Terry Reedy tjreedy at udel.edu
Fri Jan 3 02:22:15 CET 2003

"Robin Munn" <rmunn at pobox.com> wrote in message
news:slrnb19im6.7kd.rmunn at rmunnlfs.dyndns.org...
> Cliff Wells <LogiplexSoftware at earthlink.net> wrote:
> > I (sheepishly) admit that I'm kind of fond of the "with" statement
> > languages have:
> >
> > somelongname.x = 1
> >
> > with somelongname:
> >     .x += 1
> >     print .x
> Hmmm, a quick search of http://www.python.org/peps/ doesn't turn up
> anything that looks like a PEP suggesting a "with" keyword. If you
> it enough, why not write the PEP and try to get it included?

It has been discussed in previous threads and described as *extremely*
unlikely to be accepted.  However, a PEP summarizing such discussions
would be useful.


More information about the Python-list mailing list