From anonymous, 3 Weeks ago, written in Python.
Embed
  1. >>> f = open('/usr/share/dict/words')
  2. >>> import collections.abc
  3. >>> isinstance(f, collections.abc.Container)
  4. False
  5. >>> 'word\n' in f
  6. True