[IronPython] __displayhook__

Michael Foord fuzzyman at voidspace.org.uk
Sun Aug 31 12:34:12 CEST 2008


Hello all,

William and I did some Ironclad work on Friday.

sys.__displayhook__ is used by numpy and is missing in IronPython 2.

There is already a Codeplex work item to track this, so I have added a 
comment but wanted to report it here in case the comment wasn't noticed.

In the meantime Ironclad works around this - but __displayhook__ should 
be pretty easy to add... :-)

There is another weirder issue that William has discovered. Ironclad 
works by installing an import hook. In the process of this, the 
following things happen:

* sys.executable gets set to None
* sys.argv[0] gets set to None
* Our patched sys.__displayhook__ disappears

Unfortunately a 'minimal repro' of this is not easy - so I'm reporting 
it here in the meantime.

Michael


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/




More information about the Ironpython-users mailing list