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">&lt;<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>&gt;</span> yazdı:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/10/1 &quot;Martin v. Löwis&quot; &lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt;:<br>
<div class="im">&gt;&gt; First of all, I am sincerely sorry if this is wrong mailing list to ask<br>
&gt;&gt; this question. I checked out definitions of couple other mailing list,<br>
&gt;&gt; and this one seemed most suitable. Here is my question:<br>
&gt;<br>
&gt; In principle, python-list would be more appropriate, but this really<br>
&gt; is a border case. So welcome!<br>
&gt;<br>
&gt;&gt; Let&#39;s say I want to change a single keyword, let&#39;s say import keyword,<br>
&gt;&gt; to be spelled as something else, like it&#39;s translation to my language. I<br>
&gt;&gt; guess it would be more complicated than modifiying Grammar/Grammar, but<br>
&gt;&gt; I can&#39;t be sure which files should get edited.<br>
&gt;<br>
&gt; Hmm. I also think editing Grammar/Grammar should be sufficient. Try<br>
&gt; restricting yourself to ASCII keywords first; this just worked fine for<br>
&gt; me.<br>
<br>
</div>For any changes where that isn&#39;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>