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 Diego Palacios
Recipients Diego Palacios
Date 2020-03-26.11:25:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585221916.12.0.582442173764.issue40074@roundup.psfhosted.org>
In-reply-to
Content
The pickle functions dump and load are often used in the following lines:

```python
import pickle

fname = '/path/to/file.pickle'

with open(fname, 'rb') as f:
    object = pickle.load(f)
```

The load function should also accept a file name (string) as input and automatically open and load the object. The same should happen for the dump function. This would allow a simple use of the functions:

```python
object = pickle.load(fname)
```

This is what many users need when reading and storing and object from/to a file.
History
Date User Action Args
2020-03-26 11:25:16Diego Palaciossetrecipients: + Diego Palacios
2020-03-26 11:25:16Diego Palaciossetmessageid: <1585221916.12.0.582442173764.issue40074@roundup.psfhosted.org>
2020-03-26 11:25:16Diego Palacioslinkissue40074 messages
2020-03-26 11:25:15Diego Palacioscreate