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

Pickling a function returns None as the module #399

Closed
effierz opened this issue Jul 27, 2022 · 1 comment
Closed

Pickling a function returns None as the module #399

effierz opened this issue Jul 27, 2022 · 1 comment

Comments

@effierz
Copy link
Contributor

effierz commented Jul 27, 2022

Pickling the readline function of io.BytesIO returns a None module instead of _io

>>> jsonpickle.encode(BytesIO(b'bytes').readline)
'{"py/function": "None.BytesIO.readline"}'
@Theelx
Copy link
Contributor

Theelx commented Jul 28, 2022

Thank you for the PR! Please link this issue to your PR by editing the PR description to say "Fixes #399".

@Theelx Theelx closed this as completed Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants