That's excellent!! Thank you! :-) Tim ^,^
On Thu, Oct 9, 2008 at 1:55 PM, Vishal Vatsa <[EMAIL PROTECTED]> wrote: > > The IPython stuff I was going on about: > > when using pdb you can drop into an > ipython shell and get all its goodness, yumm! > > say if you have foo.py: > a="oops" > import pdb; pdb.set_trace() > print a > > > > and you do python foo.py: >> /home/vva/foo.py(3)<module>() > -> print a > (Pdb) from IPython.Shell import IPShellEmbed > (Pdb) IPShellEmbed([])(local_ns=locals()) > > > In [1]: a > Out[1]: 'oops' > > In [2]: a.upper() > Out[2]: 'OOPS' > > > > > > The magic bits are the import of the embedded shell > and the local_ns=locals() > > This is are really handy bit of kit. > Hope it helps. > -vishal > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
