On Wed, Nov 6, 2013 at 3:43 PM, Antoine Pitrou <solip...@pitrou.net> wrote:

> Besides, if it's an assertion it's only an internal helper to check
> implementation correctness. If it's an error that can be caused by
> erroneous user data, it should be replaced with the proper exception class
> (perhaps ValueError).


As far as I can tell, the only way to trigger this assertion is to call
internal _days_in_month() function directly - something that users should
not do.  For a public function with similar functionality look at
calendar.monthrange(
).
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to