Skip to content

datetimes cannot be pickled: attribute lookup FixedOffset_type on rfc3339 failed #29

@federicoemartinez

Description

@federicoemartinez

When you try to pickle a datetime object, you get this error:

>>> import udatetime
>>> import pickle
>>> d = udatetime.now()
>>> pickle.dumps(d)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'rfc3339.FixedOffset_type'>: attribute lookup FixedOffset_type on rfc3339 failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions