~fdo.perez/ipython/trunk-dev

Viewing all changes in revision 1336.

  • Committer: Fernando Perez
  • Date: 2010-01-16 03:19:17 UTC
  • Revision ID: fernando.perez@berkeley.edu-20100116031917-pbdedfrbqidh6lh6
Ensure that __builtin__ is always available and compute prompts from it.

__builtins__ (note the s) can change from module to dict somewhat at random,
see this for details:

http://mail.python.org/pipermail/python-dev/2001-April/014068.html

If this happened, our prompt computations could go out of whack in bizarre
ways, I saw it happen for continuation prompts after loading pylab, for
example.  This change fixes it.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: