Patches item #1731049, was opened at 2007-06-05 00:17 Message generated for change (Comment added) made by sonderblade You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1731049&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Bj�rn Lindqvist (sonderblade) Assigned to: Nobody/Anonymous (nobody) Summary: Pruning threading.py from asserts Initial Comment: threading.py heavily uses asserts to protect against undefined behavior. That's no good, because asserts are removed when Python is run with the -O option. The suggested fix is to replace all, or almost all, assertions with more robust RuntimeErrors. The whole change is split in two parts. First a patch which adds tests for the new behavior. Then a patch which fixes threading.py and adds the necessary documentation. ---------------------------------------------------------------------- >Comment By: Bj�rn Lindqvist (sonderblade) Date: 2007-06-05 01:05 Message: Logged In: YES user_id=51702 Originator: YES File Added: threading.py-use-real-exceptions.py ---------------------------------------------------------------------- Comment By: Bj�rn Lindqvist (sonderblade) Date: 2007-06-05 00:56 Message: Logged In: YES user_id=51702 Originator: YES File Added: test_threading-check-for-runtimeerrors2.patch ---------------------------------------------------------------------- Comment By: Bj�rn Lindqvist (sonderblade) Date: 2007-06-05 00:19 Message: Logged In: YES user_id=51702 Originator: YES File Added: test_threading-check-for-runtimeerrors.patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1731049&group_id=5470
_______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches