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 apalala
Recipients apalala
Date 2012-07-04.02:55:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341370509.01.0.335541688705.issue15247@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import io
>>> d = io.open('.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IsADirectoryError: [Errno 21] Is a directory: '.'
>>> 

>>> import os
>>> d = io.open(os.open('.',0))
>>> d
<_io.TextIOWrapper name=3 mode='r' encoding='UTF-8'>
>>>
History
Date User Action Args
2012-07-04 02:55:09apalalasetrecipients: + apalala
2012-07-04 02:55:09apalalasetmessageid: <1341370509.01.0.335541688705.issue15247@psf.upfronthosting.co.za>
2012-07-04 02:55:08apalalalinkissue15247 messages
2012-07-04 02:55:07apalalacreate