am I misreading this? quick check in the interpreter shows bytes.encode doesn't exist:
>>> bytes.encode
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'bytes' has no attribute 'encode'
>>> str.encode
<method 'encode' of 'str' objects>
and it wouldn't make sense to encode bytes prior to writing anyway right?
am I misreading this? quick check in the interpreter shows bytes.encode doesn't exist:
and it wouldn't make sense to encode bytes prior to writing anyway right?