Message206394
Why limit to str and bytes. Open can accept integer as well. I am asking not suggesting.
>>> with open('/tmp/cutecat.txt', 'wb') as f:
... f.write(b'cutecat')
...
7
>>> a = open('/tmp/cutecat.txt')
>>> a.fileno()
3
>>> b = open(3)
>>> b.read()
'cutecat' |
|
Date |
User |
Action |
Args |
2013-12-17 02:17:19 | vajrasky | set | recipients:
+ vajrasky, Claudiu.Popa |
2013-12-17 02:17:19 | vajrasky | set | messageid: <1387246639.22.0.299457623722.issue19997@psf.upfronthosting.co.za> |
2013-12-17 02:17:19 | vajrasky | link | issue19997 messages |
2013-12-17 02:17:18 | vajrasky | create | |
|