<div dir="ltr"><div class="gmail_quote">On Mon, Mar 28, 2011 at 4:28 PM, phelix <span dir="ltr"><<a href="mailto:nabble@traction.de">nabble@traction.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hello!<br></blockquote><div><br>Hi,<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am trying to write an extension to add autocompletion for "self".</blockquote><div><br>Have you tried adding this functionality to the existing AutoComplete extension? That could save you a lot of work and would be the best way to do it.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">It works<br>
fine but there is one problem I just can't figure out. Whenever I hit enter<br>
at the shell a couple of times the interpreter seems to be crashing. The<br>
extension still runs fine but the prompt is not comming back. I tried it in<br>
both python 2.62 and 3.2. Here is some example code, any suggestion welcome.<br><br></blockquote><div>[snip]<br><br>Well, your code is doing a lot of things for which I don't understand the reasons.<br><br>The best tip I can give you is to run IDLE from the command line (on Windows, C:\Python32\python.exe C:\Python32\Lib\idlelib\idle.py). Then you can see output and exceptions printed to the command console. You could also print your own debugging info using "print" instead of using that s_print function, and it won't show up in IDLE's shell, just in the command console.<br>
<br>Finally, if you're going for completions in the editor, check out the Rope package which supplies some awesome code-analysis tools.<br><br>- Tal<br></div></div></div>