it fails on py 2.7 (with a bug), fails correctly in py 3.3 and succeeds in pypy 2.2:
>>>> import os >>>> os.open("/", os.O_RDONLY) 3 >>>> os.fdopen(3, "r") <open file '<fdopen>', mode 'r' at 0x0000000105b71830> >>>> f = _ >>>> f.read(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 21] Is a directory: '<fdopen>' >>>> _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev