RE: Changing the names of python keywords

2007-06-23 Thread vedrandekovic
Hello, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! -- http://mail.python.org/mailman/listinfo/python-lis

RE: Changing the names of python keywords

2007-06-23 Thread ...:::JA:::...
Hello, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! __

Re: Changing the names of python keywords

2007-06-22 Thread Ognjen Bezanov
[EMAIL PROTECTED] escribió: > Hello again, > > Thanks for everything previously, I was change the grammar and Lib/ > keyword.py, now > Python recognize "koristiti" as a keyword, but that is not enough: > > when I write in my python shell: > koristiti os # "koristiti" get

Re: Changing the names of python keywords and functions

2007-06-22 Thread Stargaming
[EMAIL PROTECTED] schrieb: > 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: > > "<> OS"- (THIS IS MY IMAGINARY EXAMPLE OF KEYWORD), > > my program must write this code in

RE: Changing the names of python keywords

2007-06-22 Thread vedrandekovic
Hello again, Thanks for everything previously, I was change the grammar and Lib/ keyword.py, now Python recognize "koristiti" as a keyword, but that is not enough: when I write in my python shell: >>> koristiti os # "koristiti" get keyword "color", but I get >>> error: File

Re: Changing the names of python keywords and functions

2007-06-21 Thread Martin v. Löwis
>>> "<> 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?? >> The keywords are listed in Grammar/Grammar. You need to edit >> this file, then recomp

Re: Changing the names of python keywords and functions

2007-06-21 Thread Ben Finney
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > (unattributed author) wrote: > > "<> 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?? > > The key

Re: Changing the names of python keywords and functions

2007-06-21 Thread Martin v. Löwis
> "<> 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?? The keywords are listed in Grammar/Grammar. You need to edit this file, then recompile

Re: Changing the names of python keywords and functions

2007-06-21 Thread vedrandekovic
[EMAIL PROTECTED] je napisao/la: > I'm not quite clear on what you are asking, but > you can use the __import__() function to import modules by name. > I want to invent something like my "programming language" like Python with the same keywords just changed, for example if user type in my "progr

Re: Changing the names of python keywords and functions

2007-06-21 Thread moegoldberg
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, [EMAIL PROTECTED] wrote: > Hello, > > I am trying to make a program for 3D modelling with "programming".And > I want make my own program commands, > > for example wh