Changing the names of python keywords and functions

moegoldberg at gmail.com moegoldberg at gmail.com
Thu Jun 21 15:18:24 EDT 2007


I'm not quite clear on what you are asking, but
you can use the __import__() function to import modules by name.

On Jun 21, 3:07 pm, vedrandeko... at v-programs.com wrote:
> Hello,
>
> I am trying to make a program for 3D modelling with "programming".And
> I want make my own program commands,
>
> for example when user type code in my program:
>
> "<<koristiti>> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD),
>
> my program must write this code in some user file, but my
>
> program must read this command like: "import os".How
>
> can I do something like that??
>
>                            Please, HELP ME somebody!!!





More information about the Python-list mailing list