Author takluyver
Recipients takluyver
Date 2017-06-12.13:54:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497275646.73.0.340946386464.issue30639@psf.upfronthosting.co.za>
In-reply-to
Content
This came up in IPython & Jedi: several functions in inspect end up calling getfile(). If the object is something for which it can't find the source file, it throws an error, the message for which contains the object's repr.

This is problematic for us because for some objects the repr may be expensive to calculate (e.g. data tables where the repr forms primary output, not just debugging information). In some cases, it could also throw another error.

I plan to make a PR for this, but I'm opening an issue so I've got a bpo number.

https://github.com/ipython/ipython/issues/10493
https://github.com/davidhalter/jedi/issues/919
History
Date User Action Args
2017-06-12 13:54:06takluyversetrecipients: + takluyver
2017-06-12 13:54:06takluyversetmessageid: <1497275646.73.0.340946386464.issue30639@psf.upfronthosting.co.za>
2017-06-12 13:54:06takluyverlinkissue30639 messages
2017-06-12 13:54:06takluyvercreate