On 10 September 2014 15:48, Barry Warsaw barry@python.org wrote:
That's the nature of wire protocols - they're like quantum particles, exhibiting both bytes-like and string-like behavior. You can't look too closely, and they have spooky action at a distance too. For the email protocols at least, you also have mind-crushing singularities.
Well, it's the nature of *many* wire protocols. Binary protocols are increasing in popularity at the moment, because it turns out that "kinda-text-like" wire protocols are a nightmare to parse correctly. Thus, the Python decision is great for SMTP and HTTP/1.1, and infuriating for things like HTTP/2.