This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, twouters, vstinner, xdegaye, yan12125
Date 2017-02-10.11:54:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486727688.91.0.646175854497.issue29176@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy Storchaka: "Check that pickling/unpickling the windows object doesn't cause crash or undefined behaviour. Currently the pickling fails because the name of the class is not true name."

Ah, good idea.

I tested with curses_fix_window_class_name.patch: window objects cannot be pickled. Hopefully! IMHO it doesn't make sense to serialize such "live" object.

haypo@selma$ cat > x.py
import curses
w = curses.initscr()
curses.endwin()
print(type(w))
^D

haypo@selma$ ./python -i x.py
<class '_curses.window'>
>>> import pickle
>>> pickle.dumps(w)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't pickle _curses.window objects
History
Date User Action Args
2017-02-10 11:54:48vstinnersetrecipients: + vstinner, twouters, xdegaye, serhiy.storchaka, yan12125
2017-02-10 11:54:48vstinnersetmessageid: <1486727688.91.0.646175854497.issue29176@psf.upfronthosting.co.za>
2017-02-10 11:54:48vstinnerlinkissue29176 messages
2017-02-10 11:54:48vstinnercreate