#17572: Avoid chained exceptions while passing bad directives to time.strptime().  Initial patch by Claudiu Popa.
close search and replace dialog after it is used (closes #17625)
#8913: add examples and docs for date/time/datetime.__format__.  Patch by Heikki Partanen.