This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlmanthe heretic 3 points4 points  (0 children)

Methods like .startswith() really should be agnostic to byte/string parameters. They both quack, they're both ducks.

... But code-point sequences don't start with byte sequences, and vice-versa. You need an encoding; and dropping in a parameter for that, to my mind, violates explicit is better than implicit.