On 11-jan-2006, at 7:59, Thomas Heller wrote: >> >>> I'm of the opinion that having a big red >>> warning at the top of the module documentation that this is a >>> contributed module, and incorrect use could cause segmentation >>> faults/crashes, etc would be sufficient. >> >> Works for me. > > Another possibility would be to emit a warning when the module (dl or > ctypes, if included) is imported. > > warnings.warn("Incorrect usage of this module may crash Python", > RuntimeWarning, stacklevel=2)
Yuck. Just adding a warning to the documentation should be good enough. Other modules allow you to make your machine unuseable (such a fork bomb using os.fork) and those don't warn either. Ronald > > Thomas > > _______________________________________________ > 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/ > ronaldoussoren%40mac.com _______________________________________________ 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