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 vajrasky
Recipients Claudiu.Popa, vajrasky
Date 2013-12-17.02:17:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387246639.22.0.299457623722.issue19997@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2013-12-17 02:17:19vajraskysetrecipients: + vajrasky, Claudiu.Popa
2013-12-17 02:17:19vajraskysetmessageid: <1387246639.22.0.299457623722.issue19997@psf.upfronthosting.co.za>
2013-12-17 02:17:19vajraskylinkissue19997 messages
2013-12-17 02:17:18vajraskycreate