New submission from Srinivas  Reddy T:

Added descriptive message to assert statement in datetime module.
Since _check_date_fields does the job of data integrity, i did not check for 
ValueError, TypeError checks in the function.

However, i am not sure of the adding descriptive messages to the other assert 
statements like, assert seconds == int(seconds). And isn't this too much 
defensive programming?

----------
components: Library (Lib)
files: datetime.patch
keywords: patch
messages: 202708
nosy: thatiparthy
priority: normal
severity: normal
status: open
title: Added description for assert statement
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file32588/datetime.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19562>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to