• Guido van Rossum's avatar
    Changes to io.py and socket.py by Christian Heimes. · 5abbf750
    Guido van Rossum yazdı
    - Replace all asserts by ValuleErrors or TypeErrors as appropriate.
    - Add _checkReadable, _checkWritable methods; these check self.closed too.
    - Add a test that everything exported by io.py exists, and is either
      an exception or an IOBase instance (except for the open function).
    - Default buffering to 1 if isatty() (I had to tweak this to enforce
      the *default* bit -- GvR).
    5abbf750
socket.py 10.7 KB