[Python-Dev] Include ctypes into core Python? (original) (raw)
Ronald Oussoren ronaldoussoren at mac.com
Wed Jan 11 19:04:51 CET 2006
- Previous message: [Python-Dev] Include ctypes into core Python?
- Next message: [Python-Dev] Include ctypes into core Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ ronaldoussoren%40mac.com
- Previous message: [Python-Dev] Include ctypes into core Python?
- Next message: [Python-Dev] Include ctypes into core Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]