Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

No __enter__ attribute in sys.stdin

Open w33dw0r7d opened this issue 6 years ago • 2 comments
trafficstars

Pythonista version: Pythonista v. 3.2 (320000) Device: iPhone X iOS version: 12.1.4 / 13pb2

No __enter__ attribute in sys.stdin

>>> with stdin as inp:
...     for line in inp:
...         print(line)
...         
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: __enter__

sys.version: '3.6.1 (default, Aug 24 2017, 16:20:00) \n[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]'

dir:

>>> dir(sys.stdin)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'encoding', 'isatty', 'read', 'readline']

w33dw0r7d avatar Jul 11 '19 06:07 w33dw0r7d

Related to #4

cclauss avatar Jul 11 '19 06:07 cclauss

Related to #4

@cclauss Issue from "Jun 17, 2016". OMZ doesn't wont fix this?

w33dw0r7d avatar Jul 11 '19 06:07 w33dw0r7d