other python ideas
Peter Schneider-Kamp
petersc at stud.ntnu.no
Wed May 31 02:06:24 EDT 2000
Peter Gavin wrote:
>
> Laurent POINTAL wrote:
> >
> > import string
> > _string = string
> > del string
>
> This looks like a good idea. Wouldn't it be useful to be able to do it
> in one step?
> It shouldn't be too hard to add a syntax similar to:
>
> import string as _string
Why not use this:
_string = __import__("string",globals,locals,None)
is-syntactic-sugar-sweet-or-bitter-ly y'rs
Peter
--
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:peter at schneider-kamp.de
N-7050 Trondheim http://schneider-kamp.de
More information about the Python-list
mailing list