Hirokazu Yamamoto <[email protected]> added the comment:
Yes, you can do
m.write_byte(b"a")
but on the other hand you cannot do
a = b"abc"
m.write_byte(a[1])
instead you should do
a = b"abc"
m.write_byte(a[1:2])
This is trade off, though.
I'll update "with getarg('b') version" to compare.
----------
Added file:
http://bugs.python.org/file13580/py3k_mmap_bytes_cleanup_with_getarg_b.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5391>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com