[wingide-users] redefinition of _

David Hughes dfh at forestfield.co.uk
Thu Oct 27 10:06:47 MDT 2011


I keep tripping over this one :

When Wing stops at a breakpoint the name _ (single underscore) gets 
(re)defined to hold the result of the last executed expression in the 
debug probe like in any Python interactive session. Unfortunately the 
internationalisation (i18n) module lib/gettext.py installs a *function* 
_() in the Python builtins namespace to hold the 
candidate-for-translation strings. So, on resuming from a breakpoint an 
exception gets raised the next time a call to _() is encountered.

Is there a user workaround for this? If not, would it be possible for 
you to save and restore the original definition on breakpoint entry and 
exit?

  -- 
Regards

David Hughes
Forestfield Software



-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20111027/7f958d72/attachment.html


More information about the wingide-users mailing list