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

Remove serde dump_code/load_code. #2482

Merged
merged 4 commits into from
Dec 11, 2022
Merged

Remove serde dump_code/load_code. #2482

merged 4 commits into from
Dec 11, 2022

Conversation

jaheba
Copy link
Contributor

@jaheba jaheba commented Dec 9, 2022

In addition to serde.encode which encodes an object into a json-serializable form, serde.dump_code returns a string which is something like the repr of the object.

I don't think there is much value in this, since it's error prone and basically never used. Thus, this PR removes dump_code.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

@jaheba jaheba added the BREAKING This is a breaking change (one of pr required labels) label Dec 9, 2022
@jaheba jaheba marked this pull request as ready for review December 9, 2022 20:10
Comment on lines 1052 to -1055
), f"Code serialization for transformer {t} does not work"
assert dump_code(x) == dump_code(
z
), f"JSON serialization for transformer {t} does not work"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assertion messages here appeared to be swapped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand

@jaheba jaheba merged commit f11f563 into awslabs:dev Dec 11, 2022
@jaheba jaheba deleted the no-serde-repr branch December 11, 2022 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING This is a breaking change (one of pr required labels)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants