Commits

Brian Kearns committed e28616a

comment funcs

  • Participants
  • Parent commits a0c9719
  • Branches refactor-buffer-api

Comments (0)

Files changed (1)

File pypy/interpreter/baseobjspace.py

     BUF_CONTIG_RO = 3
 
     def buffer_w(self, w_obj, flags):
-        # New buffer interface, returns a buffer based on flags
+        # New buffer interface, returns a buffer based on flags (PyObject_GetBuffer)
         try:
             return w_obj.buffer_w(self, flags)
         except TypeError:
                         "'%T' does not have the buffer interface", w_obj)
 
     def readbuf_w(self, w_obj):
-        # Old buffer interface, returns a readonly buffer
+        # Old buffer interface, returns a readonly buffer (PyObject_AsReadBuffer)
         try:
             return w_obj.readbuf_w(self)
         except TypeError:
                         "expected a readable buffer object")
 
     def writebuf_w(self, w_obj):
-        # Old buffer interface, returns a writeable buffer
+        # Old buffer interface, returns a writeable buffer (PyObject_AsWriteBuffer)
         try:
             return w_obj.writebuf_w(self)
         except TypeError:
                         "expected a writeable buffer object")
 
     def charbuf_w(self, w_obj):
-        # Old buffer interface, returns a character buffer
+        # Old buffer interface, returns a character buffer (PyObject_AsCharBuffer)
         try:
             return w_obj.charbuf_w(self)
         except TypeError: