Serhiy Storchaka added the comment:

Please don't change the code of base64. It is correct.

1. Python is a dynamically-typed language. Arbitrary exceptions can be raised 
in unexpected places. For example TypeError can be raised if `b[i:i + 5]` 
return non-iterable object.

2. `read(n)` of unbuffered object (like sys.stdin.buffer.raw or socket) can 
return less than n bytes.

nosy: +serhiy.storchaka

Python tracker <>
Python-bugs-list mailing list

Reply via email to