[New-bugs-announce] [issue19562] Added description for assert statement

Srinivas Reddy T report at bugs.python.org
Tue Nov 12 18:40:59 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19562>
_______________________________________


More information about the New-bugs-announce mailing list