"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| Brett Cannon wrote:
| > +1 from me.
|
| Looks good to me too: +1
|
| I wouldn't mind seeing some iteration-in-C bit-bashing operations in
| there eventually, but they aren't needed on the first pass, and even
| being able to do things like the following will be a decent improvement
| over the status quo for low-level bitstream manipulation:
|
|   data = bytes([x & 0x1F for x in orig_data])

If orig_data were mutable (the new buffer, as proposed in the PEP), would 
not

for i in range(len(orig_data)):
  orig_data[i] &= 0x1F

do it in place? (I don't have .0a1 to try on the current bytes.)

tjr



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to