<br><br><div><span class="gmail_quote">On 3/6/06, <b class="gmail_sendername">Thomas Lee</b> &lt;<a href="mailto:krumms@gmail.com">krumms@gmail.com</a>&gt; wrote:</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just a quick question: how can I add new future keywords to Python? I<br>need to add a new (Python) keyword to the language, but there seems to<br>be a few different source files that I need to modify.<br><br>Just want to make sure I'm doing it the right way before I go unleashing
<br>a nasty broken patch into the world :)</blockquote><div><br>I wouldn't bother with a future statement until your patch has a chance of being included in Python. Adding one later is just as easy as adding one now, and you have a good chance of getting someone else to do it for you. That's what Guido did with the with-statement patch; he got Neal to do it for him ;) But if you really want to do it yourself, I would suggest grokking the with-statement future-import patch I checked in last week (written mostly by Neal Norwitz, with inspiration stolen from Michael Hudson's patch):
<br><br>svn diff -r42666:42667 <a href="http://svn.python.org/projects/python/trunk">http://svn.python.org/projects/python/trunk</a><br></div></div><br>-- <br>Thomas Wouters &lt;<a href="mailto:thomas@python.org">thomas@python.org
</a>&gt;<br><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!