Explicit Frustration of the Self
Terry Reedy
tjreedy at udel.edu
Thu Jan 2 20:22:15 EST 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
some
> > 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
like
> 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.
TJR
More information about the Python-list
mailing list