Terry J. Reedy added the comment: As I understand Guido's message, he reopened this to consider adding a new parameter.
Given an existing csv file like that given, either Tim's solution or try: parse with microseconds except ValueError: parse without should work. ---------- nosy: +terry.reedy title: Inconsistency between datetime's str()/isoformat() and its strptime() method -> Add microsecond flag to datetime isoformat() type: behavior -> enhancement versions: -Python 2.7, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19475> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com