Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pickling of extension classes #7481

Merged
merged 3 commits into from Sep 9, 2019
Merged

Support pickling of extension classes #7481

merged 3 commits into from Sep 9, 2019

Commits on Sep 9, 2019

  1. Support pickling of extension classes

    This operates by providing default implementations of `__getstate__`
    and `__setstate__` for extension classes. Our implementations work by
    storing a `__mypyc_attrs__` tuple in each class that we generate and
    collecting all of the attributes in it into a dict.
    
    Fixes #697.
    msullivan committed Sep 9, 2019
    Copy the full SHA
    1a55e31 View commit details
    Browse the repository at this point in the history
  2. Some code review tweaks

    msullivan committed Sep 9, 2019
    Copy the full SHA
    dcf765c View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    e8aa2ae View commit details
    Browse the repository at this point in the history