Oleg Broytmann wrote: > 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(): > ...
Personally, I don't like standard modules to behave different if I install other stuff, so please change 'could' to 'should' in this sentence: >> not sure if it could be used in the Python library itself. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com