Thanks to you both, I have made some progress on introducing my own keywords to python interpreter. I think it is very kind of you to answer my question. I think I can take it from here. Thanks again :)<br><br><div class="gmail_quote">
02 Ekim 2011 05:42 tarihinde Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>></span> yazdı:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/10/1 "Martin v. Löwis" <<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>>:<br>
<div class="im">>> First of all, I am sincerely sorry if this is wrong mailing list to ask<br>
>> this question. I checked out definitions of couple other mailing list,<br>
>> and this one seemed most suitable. Here is my question:<br>
><br>
> In principle, python-list would be more appropriate, but this really<br>
> is a border case. So welcome!<br>
><br>
>> Let's say I want to change a single keyword, let's say import keyword,<br>
>> to be spelled as something else, like it's translation to my language. I<br>
>> guess it would be more complicated than modifiying Grammar/Grammar, but<br>
>> I can't be sure which files should get edited.<br>
><br>
> Hmm. I also think editing Grammar/Grammar should be sufficient. Try<br>
> restricting yourself to ASCII keywords first; this just worked fine for<br>
> me.<br>
<br>
</div>For any changes where that isn't sufficient, then<br>
<a href="http://docs.python.org/devguide/grammar.html" target="_blank">http://docs.python.org/devguide/grammar.html</a> provides a helpful list<br>
of additional places to check (and<br>
<a href="http://docs.python.org/devguide/compiler.html" target="_blank">http://docs.python.org/devguide/compiler.html</a> provides info on how it<br>
all hangs together).<br>
<br>
However, rather than *changing* the keywords, it would likely be<br>
better to allow *alternate* keywords to avoid the problem Martin<br>
mentioned with existing Python code failing to run (including the<br>
entire standard library).<br>
<br>
Cheers,<br>
Nick.<br>
<font color="#888888"><br>
--<br>
Nick Coghlan | <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a> | Brisbane, Australia<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://yasar.serveblog.net/" target="_blank">http://yasar.serveblog.net/</a><br><br>