[Python-Dev] how about adding ping's uuid module to the standard lib ?

Oleg Broytmann phd at mail2.phd.pp.ru
Tue Mar 7 22:23:29 CET 2006


On Tue, Mar 07, 2006 at 10:19:03PM +0100, Thomas Heller wrote:
> Too bad that ctypes whill be an optional module, so I'm
> not sure if it could be used in the Python library itself.

try:
   import ctypes
except ImportError:
   def fallback():
      ...
else:
   def real_thing():
      ...

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list