Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-93096: Update and documentpickle CLI#131097
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from2 commits
f572b59923af7b5909db4291f6bf215afa93b8efae40a3265c93b70fcefd8a44bc325329d13603dd66f2ff22e97dbedc68756ff98593fd7b8f1af6eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -511,6 +511,30 @@ The :mod:`pickle` module exports three classes, :class:`Pickler`, | ||
| Release the underlying buffer exposed by the PickleBuffer object. | ||
| .. _pickle-cli: | ||
| Command-line interface | ||
| ---------------------------------- | ||
donbarbos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| The :mod:`pickle` module can be invoked as a script from the command line, | ||
| it will display contents of the pickle files. However, when the pickle file | ||
| that you want to examine comes from an untrusted source, ``-m pickletools`` | ||
| is a safer option because it does not execute pickle bytecode, see | ||
| :ref:`pickletools CLI usage <pickletools-cli>`. | ||
| .. code-block:: bash | ||
| python -m pickle [pickle_file ...] | ||
donbarbos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| The following options are accepted: | ||
donbarbos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| .. program:: pickle | ||
| .. option:: pickle_file | ||
| The pickle file(s). | ||
donbarbos marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| .. _pickle-picklable: | ||
| What can be pickled and unpickled? | ||
Uh oh!
There was an error while loading.Please reload this page.