[issue45347] datetime subject to rounding?

2021-10-03 Thread Joachim Jablon
Joachim Jablon added the comment: It may or it may not be obvious to some, but in year 5328, October 31st is the last Sunday of October, which in Rome, as in the rest of EU, according to the 202X rules, means it’s the day we shift from summer time (in Rome UTC+2) to standard time (in Rome

[issue39550] isinstance accepts subtypes of tuples as second argument

2020-02-04 Thread Joachim Jablon
New submission from Joachim Jablon : (Not really sure it is a bug, but better informed people might find it worthy still) isinstance can accept, as second argument, a type or a potentially nested tuple of types. Only tuples are accepted, as opposed to generic iterables. The reasoning behind

[issue30670] pprint for dict in sorted order or insert order?

2019-02-04 Thread Joachim Jablon
Joachim Jablon added the comment: If you stop sorting keys in pprint, then unittest.TestCase.assertDictEquals() (and pytest and such) won't be able to generate a meaningful diff when 2 dicts aren't equal, and it will be much more complicated to understand why a test fai