]> granicus.if.org Git - python/commitdiff
Add some XXX comments for Guido to look at.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 27 Feb 2007 06:26:14 +0000 (06:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 27 Feb 2007 06:26:14 +0000 (06:26 +0000)
Lib/io.py

index c714c6b31e1a1ebd4d75f874bb4575878203c750..b9ec50dfbb04d9ed3c39addc6893c78246b027ac 100644 (file)
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -166,6 +166,8 @@ class FileIO(RawIOBase):
                 self._seekable = True
         return self._seekable
 
+    # XXX(nnorwitz): is there any reason to redefine __enter__ & __exit__?
+    #  Both already have the same impl in the base class.
     def __enter__(self):
         return self
 
@@ -203,6 +205,8 @@ class SocketIO(RawIOBase):
     def writable(self):
         return "w" in self._mode
 
+    # XXX(nnorwitz)???  def fileno(self): return self._sock.fileno()
+
 
 class BytesIO(RawIOBase):