Message365061
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. |
|
Date |
User |
Action |
Args |
2020-03-26 11:25:16 | Diego Palacios | set | recipients:
+ Diego Palacios |
2020-03-26 11:25:16 | Diego Palacios | set | messageid: <1585221916.12.0.582442173764.issue40074@roundup.psfhosted.org> |
2020-03-26 11:25:16 | Diego Palacios | link | issue40074 messages |
2020-03-26 11:25:15 | Diego Palacios | create | |
|