New submission from Alexander Belopolsky <belopol...@users.sourceforge.net>:
Attached patch makes python -m pickle <pickle file> unpickle the first object from the pickle file and display it using pprint. Future enhancements may include printing the summary (object number, object type) of the multiobject pickles, option to control display: pprint/repr or type only, lines/columns limits, and selective display from multi-object pickles. I considered adding this functionality to pickletools (see issue 9094), but rejected because pickletools is more oriented towards pickle protocol developers and this functionality may be useful for casual pickle users. ---------- assignee: belopolsky components: Library (Lib) files: pickle-m.diff keywords: easy, patch messages: 111553 nosy: belopolsky priority: normal severity: normal stage: patch review status: open title: Make python -m pickle do something useful type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file18197/pickle-m.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9378> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com