[issue22556] datetime comparison with 'None' returning a TypeError

2014-10-05 Thread Ankit Dhebar
New submission from Ankit Dhebar: code snippet student_tuple = [ ('ykjsdf', 'A', 17, datetime.date(2014,10,15)), ('accjr', 'C', 11, datetime.date(2013,05,05)), ('dgekw', 'B', 5, datetime.date(1987,03,03)) ] Output for the above code works as expected. o/p : [('dgekw', 'B', 5,

[issue22556] datetime comparison with 'None' returning a TypeError

2014-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You've identified the main problem: would None go first or last? Modify your key function to make the decision appropriate for you, returning either a very small or very large value for None, as appropriate. If you really want to see this behavior changed, you