Guido -<br><br>One tiny question has come up while working on this one:<br><br>Should the PyBytes buffer (mutable bytes) object's .append(val) and .remove(val) methods accept anything other than an int in the 0..255 range?
<br><br>I believe the answer to be no based on the previous long thread on this but these two weren't mentioned at the time so i figure I'll ask. Should a pep3118 buffer api supporting object that produces a length 1 buffer also work for append and remove? That would allow .append(b'!') or .remove(b'!').
<br><br>amusingly right now in 3.0a1 there is a bug where .append('33') will happily append a b'!' by converting it into an int then into a byte. regardless of the answer that misbehavior will be zapped in the patch i'm about to submit. ;)
<br><br>-gps<br><br><div><span class="gmail_quote">On 10/8/07, <b class="gmail_sendername">Gregory P. Smith</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">- add missing methods to PyBytes (for list, see the PEP and compare to
<br>what's already there)