You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the only simple way to avoid #37 is to modify a global variable (see code below), which could theoretically break another module that uses cbor2 in the same process and expects the encoding of date objects to work.
It could be nice to have a CBOR class that would hold configuration variables and implement the dump, dumps, load and loads functions. That would make it possible to create a custom CBOR encoder/decoder that could be used exactly like the global cbor2.* functions but would encode/decode slightly differently. For example:
Right now the only simple way to avoid #37 is to modify a global variable (see code below), which could theoretically break another module that uses
cbor2
in the same process and expects the encoding ofdate
objects to work.It could be nice to have a
CBOR
class that would hold configuration variables and implement thedump
,dumps
,load
andloads
functions. That would make it possible to create a custom CBOR encoder/decoder that could be used exactly like the globalcbor2.*
functions but would encode/decode slightly differently. For example:The text was updated successfully, but these errors were encountered: