On Aug 13, 2009, at 10:02 AM, Gael Pasgrimaud wrote:
> > Seems that the exec statement add a __builtins__ key to the locs > dictionnary and IPython don't like it. > > Adding locs.pop('__builtins__') before shell initialization fix the > problem: > > In pylons/command.py at line ~=512: > > shell.set_banner(shell.IP.BANNER + '\n\n' + banner) > if '__builtins__' in locs: > del locs['__builtins__'] > try: > shell(local_ns=locs, global_ns={}) > finally: > paste.registry.restorer.restoration_end() > > This don't break the command with IPython 0.9 Could you log a ticket for this, so it doesn't get lost? Thanks -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en -~----------~----~----~----~------~----~------~--~---