A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-November/130055.html below:

[Python-Dev] A small patch.

[Python-Dev] A small patch. [Python-Dev] A small patch.Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Nov 6 22:30:51 CET 2013
On Wed, Nov 6, 2013 at 3:43 PM, Antoine Pitrou <solipsis at 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(
).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131106/b05ebfe8/attachment-0001.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4