<br><br><div class="gmail_quote">On Nov 24, 2007 2:26 PM, Fernando Perez <<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Nov 24, 2007 11:29 AM, Noah Gift <<a href="mailto:noah.gift@gmail.com">noah.gift@gmail.com</a>> wrote:<br>> So far I like %doctest_mode<br>><br>> It is a good start, nice work!! No other weirdness I have noticed,
<br>> other than a simple user error problem, of not knowing how to get a<br>> four space tab to work when I define a function:<br>><br>> def function:<br>><br>> I am sure this is user error, but I am stuck with doing four spaces,
<br>> as a tab will automatically try to autocomplete.<br><br></div>Two things:<br><br>1. why do you need the explicit tab in the above case? Is the<br>auto-indenting not working for you? That would certainly qualify as a
<br>bug.</blockquote><div><br class="webkit-block-placeholder"></div><div>It appears auto-indention is not working for me. Here is a default session:</div><div><br class="webkit-block-placeholder"></div><div><div>[ngift@Macintosh-6
][H:10426][J:0]> ipython</div><div>Leopard libedit detected.</div><div>Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) </div><div>Type "copyright", "credits" or "license" for more information.
</div><div><br class="webkit-block-placeholder"></div><div>IPython 0.8.2.svn.r2848 -- An enhanced Interactive Python.</div><div>? -> Introduction and overview of IPython's features.</div><div>%quickref -> Quick reference.
</div><div>help -> Python's own help system.</div><div>object? -> Details about 'object'. ?object also works, ?? prints more.</div><div><br class="webkit-block-placeholder"></div><div>In [1]: def func():
</div><div> ...: </div><div><br class="webkit-block-placeholder"></div></div><div>when I define a function it does not auto-indent. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br>2. By default, we bind ctrl-i to inserting an explicit tab for<br>indentation purposes. That can be changed to any other key in the<br>configuration.<br><br>Cheers,<br><font color="#888888"><br>f<br></font></blockquote>
</div><br>