-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base_connection.buffer is a list of bytes, rather than a bytes #117
Comments
Ok, looks like I have some reading to do on bytes. Do you mean replace it with a |
That could also work. The only real difference is that `bytearray` is mutable, if I remember right. There may be some more subtle differences that I don't remember, though.
Assuming it doesn't cause bugs I wouldn't expect, `bytearray` looks safer to me. I'm much more comfortable directly modifying an object than reassigning it. And while that's not terribly rational in Python, it's a habit that's stuck with me. `bytearray.append` will probably be your friend.
…On December 1, 2016 1:57:54 AM EST, the-zebulan ***@***.***> wrote:
Ok, looks like I have some reading to do on bytes. Do you mean replace
it with a `bytearray`?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#117 (comment)
|
Ok, thanks for the tip. Ya, it looks like I'm just about to head to bed but I will mess around with it in the morning and try to get it working! |
Just tinkered around a little. There are going to be two things of note, it looks like.
|
Interesting. Ok, thanks for the tips! |
For context, see end of #116
The text was updated successfully, but these errors were encountered: