[IPython-dev] [IPython-user] IPython 0.7.0 is out.

Hans Meine hans_meine at gmx.net
Tue Jan 10 07:42:58 EST 2006


Hi!

On Tuesday 10 January 2006 09:48, Fernando Perez wrote:
>     - Major improvements to the pdb mode.  It now has tab-completion,
> syntax highlighting and better stack handling.  Thanks to Vivian De Smedt
> for this work (double-points given that pdb has a well-deserved reputation
> for being very unpleasant to work with).
This is something I was really looking forward to, but I did not run SVN 
until .. half an hour ago (I was just too busy the last days).  
Unfortunately, I read your announcement from today when I was about to post 
the following problem..

>     - Support for pasting multiline input even with autoindent on.  The
> code will look wrong on screen, but it will be stored and executed
> correctly internally.
Is it possible that there is a conflict between this and the %macro feature?
Testcase follows.. oh no, it's the fault of -qthread, without that it works:

hans# ipython -qthread
Python 2.4.2 (#1, Oct 25 2005, 09:51:50)
Type "copyright", "credits" or "license" for more information.

IPython 0.7.0 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]:foo = []

In [2]:for i in range(42):
   ...:         foo.append(i)
   ...:
   ...:

In [3]:macro bar 1:3
Macro `bar` created. To execute, type its name (without quotes).
Macro contents:
foo = []
for i in range(42):
        foo.append(i)


In [4]:bar
Out[4]:Executing Macro...

In [6]:

Here, IPython hangs.  First, I wondered about the [6], but that seems to be 
normal, due to the multi-line macro?  But I cannot revive the prompt; I have 
to kill IPython.

For your convenience, here's code to paste:

foo = []
for i in range(42):
	foo.append(i)

%macro bar 1:3
bar

-- 
Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20060110/69db5ef9/attachment.sig>


More information about the IPython-dev mailing list