Re: [Python-3000] readinto annotation

2008-04-07 Thread Benjamin Peterson
On Mon, Apr 7, 2008 at 10:11 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Mon, Apr 7, 2008 at 6:11 AM, Antoine Pitrou <[EMAIL PROTECTED]> > wrote: > > Gregory P. Smith krypto.org> writes: > > > > > > yes bytearray makes more sense to me given that its hard to read into > an > > immutab

Re: [Python-3000] readinto annotation

2008-04-07 Thread Guido van Rossum
On Mon, Apr 7, 2008 at 6:11 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Gregory P. Smith 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 writeabl

Re: [Python-3000] readinto annotation

2008-04-07 Thread Antoine Pitrou
Gregory P. Smith 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. __

Re: [Python-3000] readinto annotation

2008-04-07 Thread Amaury Forgeot d'Arc
On Mon, Apr 7, 2008 at 2:00 AM, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > yes bytearray makes more sense to me given that its hard to read into an > immutable bytes object ;) Not so hard: http://bugs.python.org/issue2538 Some time ago, bytes were mutable... -- Amaury Forgeot d'Arc __

Re: [Python-3000] readinto annotation

2008-04-06 Thread Gregory P. Smith
yes bytearray makes more sense to me given that its hard to read into an immutable bytes object ;) On Sun, Apr 6, 2008 at 6:46 AM, Benjamin Peterson < [EMAIL PROTECTED]> wrote: > While working on the io module docs, I noticed the annotation for readinto > methods is bytes. This should be bytearra

[Python-3000] readinto annotation

2008-04-06 Thread Benjamin Peterson
While working on the io module docs, I noticed the annotation for readinto methods is bytes. This should be bytearray, right? -- Cheers, Benjamin Peterson ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python