Message308517
```
>>> import json
>>> f = open('/tmp/t.json', 'wb')
>>> json.dump(123, f)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/json/__init__.py", line 180, in dump
fp.write(chunk)
TypeError: a bytes-like object is required, not 'str'
```
This may not a bug. But it should mention at docs https://docs.python.org/3/library/json.html#json.dump |
|
Date |
User |
Action |
Args |
2017-12-18 06:24:46 | qingyunha | set | recipients:
+ qingyunha |
2017-12-18 06:24:46 | qingyunha | set | messageid: <1513578286.44.0.213398074469.issue32358@psf.upfronthosting.co.za> |
2017-12-18 06:24:46 | qingyunha | link | issue32358 messages |
2017-12-18 06:24:45 | qingyunha | create | |
|