[wingide-users] Save yourself some headaches

Tony Cappellini cappy2112 at gmail.com
Thu Nov 2 19:18:03 MST 2006

For those of you who are somewhat new to using Wing, here's a little tip
that may save you problems.

If you add the this import statement to code which will be used by other
people who don't use WingIDE

import wingdbstub

do it this way instead

   import wingdbstub
except ImportError:
   pass # or print something if you need to

Using this exception handling you can safely check your code in or
distribute it, and it won't crash because of the bad import.

I had checked in some code which had the first type of import, and it was
causing some very unpredictable results which masked the import error
from ending up inthe logfile.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20061102/45a3ae48/attachment.html

More information about the wingide-users mailing list