irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
305 stars 36 forks source link

serialization problem with datetime #12

Closed irmen closed 5 years ago

irmen commented 5 years ago

Pyro5.errors.SerializeError: don't know how to serialize class <class 'datetime.datetime'> using serializer MarshalSerializer. Give it vars() or an appropriate getstate

(occurs in the timezones example)

irmen commented 5 years ago

right, this is because marshall doesn't support per-type hooks