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

[Feature request] Pickle-ability of XML objects #5

Open
devxpy opened this issue Oct 20, 2018 · 0 comments
Open

[Feature request] Pickle-ability of XML objects #5

devxpy opened this issue Oct 20, 2018 · 0 comments

Comments

@devxpy
Copy link

devxpy commented Oct 20, 2018

In [2]: session = XMLSession()

In [3]: r = session.get('https://www.nasa.gov/rss/dyn/lg_image_of_the_day.rss')

In [15]: pickle.dumps(r.xml)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-15-27c48ce133a2> in <module>()
----> 1 pickle.dumps(r.xml)

TypeError: can't pickle HtmlElement objects

This is great for use in multiprocessing tasks.

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

1 participant