[Python-3000] readinto annotation

Benjamin Peterson musiccomposition at gmail.com
Tue Apr 8 00:28:11 CEST 2008


On Mon, Apr 7, 2008 at 10:11 AM, Guido van Rossum <guido at python.org> wrote:

> On Mon, Apr 7, 2008 at 6:11 AM, Antoine Pitrou <solipsis at pitrou.net>
> wrote:
> > Gregory P. Smith <greg <at> krypto.org> writes:
> >  >
> >  > yes bytearray makes more sense to me given that its hard to read into
> an
> >  immutable bytes object ;)
> >
> >  It seems to me that readinto accepts any object providing a writeable
> buffer
> >  interface. I don't know how to express that as an annotation, though.
>
> Don't worry too much about it. The annotation is just documentation
> anyway. I'd be fine with using bytearray as the annotation, and
> explaining in the docstring that other mutable bytes buffers are okay
> too.

Ok. I changed it in r62218.

>
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/<http://www.python.org/%7Eguido/>
> )
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/musiccomposition%40gmail.com
>



-- 
Cheers,
Benjamin Peterson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080407/0678d57e/attachment.htm 


More information about the Python-3000 mailing list