New submission from Jason R. Coombs:

On Python 3.5, the datetime would reduce and restore cleanly.

$ python3.5 -c "import datetime; func, params = 
datetime.datetime.now().__reduce__(); func(*params)"

With Python 3.6.0b3, it now fails with a TypeError.

$ python3.6 -c "import datetime; func, params = 
datetime.datetime.now().__reduce__(); func(*params)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: an integer is required (got type bytes)

----------
messages: 281278
nosy: jason.coombs
priority: normal
severity: normal
status: open
title: datetime object fails to restore from reduction
versions: Python 3.6, Python 3.7

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

Reply via email to