[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-23 Thread David Manowitz
David Manowitz added the comment: I don't see why this should be considered acceptable behavior. Why don't threads have their own ThreadExit exception, rather than overloading the use, and therefore, the meaning, of the SystemExit exception? As indicated by their names, sys.ex

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-26 Thread David Manowitz
David Manowitz added the comment: I have a couple of issues with that argument: 1.) Until fairly recently, the fact that sys.exit() when called from a non-primary thread only causes the thread to die, was not clearly documented (and still isn't in the python2.6 docs). Admittedly, thread

[issue26751] Possible bug in sorting algorithm

2016-04-13 Thread David Manowitz
New submission from David Manowitz: I'm trying to sort a list of tuples. Most of the tuples are pairs of US state names. However, some of the tuples have None instead of the 2nd name. I want the items sorted first by the 1st element, and then by the 2nd element, BUT I want the No