Dwight Guth added the comment:

I was programming something today and thought I should let you know I came 
across a situation where the current behavior of this function is able to 
expose what seems to be raw memory to the user.

import io
class A(io.RawIOBase):
  def readinto(self, b):
    return len(b)

A().read(100)

----------
nosy: +dwight.guth

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15903>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to