Skip to content

Can't serialize some kinds of bound methods #107

@braxtonmckee

Description

@braxtonmckee

Our methodology for serializing core python objects works for lots of things, but not certain kinds of types and methods. For instance

import numpy
import typed_python.Codebase as Codebase
sc = Codebase.Codebase.coreSerializationContext()

sc.serialize(numpy.array) # throws
sc.serialize(numpy.array([1,2,3])) # OK
sc.serialize(numpy.array([1,2,3]).max) # throws
sc.serialize(numpy.max) # throws

throw errors where named. We should be able to serialize any of these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions