Re: Why don't stringobjects have methods?

Tim Peters (tim@ksr.com)
Sat, 02 Apr 94 22:06:15 EST

> for x in sequence.sort() or sequence :
> print x

Steve! This is a tragedy! Since Guido turned exec into a _statement_,
we can no longer get away with

for x in exec('k=dict.keys()') or k.sort() or k:
print x

! Time to push for an exec string method?

for x in 'k=dict.keys()'.exec() or ...

> ...
> ( I won't get into defining who "we" might be - I can
> hear everyone heading for the exits RIGHT NOW!! :-)

heading-there-myself-right-now-ly y'rs - tim