[issue27710] Disallow fold not in [0, 1] in time and datetime constructors
Alexander Belopolsky
report at bugs.python.org
Mon Aug 8 11:43:13 EDT 2016
New submission from Alexander Belopolsky:
The current implementation does not restrict values accepted by the fold argument:
>>> from datetime import *
>>> time(fold=2)
datetime.time(0, 0, fold=2)
>>> datetime(1, 1, 1, fold=2)
datetime.datetime(1, 1, 1, 0, 0, fold=2)
----------
assignee: belopolsky
messages: 272174
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Disallow fold not in [0, 1] in time and datetime constructors
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27710>
_______________________________________
More information about the Python-bugs-list
mailing list