Re: Reducing import try/except boilerplate

2005-12-21 Thread Bengt Richter
On Thu, 22 Dec 2005 00:44:52 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: >Several standard library modules (e.g., cPickle/pickle, cStringIO/StringIO, >threading/dummy_threading) have versions which may not be available on all >platforms, and pure Python fallbacks that work on any platform Pyt

Reducing import try/except boilerplate

2005-12-21 Thread Nick Coghlan
Several standard library modules (e.g., cPickle/pickle, cStringIO/StringIO, threading/dummy_threading) have versions which may not be available on all platforms, and pure Python fallbacks that work on any platform Python supports. Flicking through the latest version of the Python Cookbook, I no