Ethan Furman wrote:
Your asciistr, which sometimes returns bytes and sometimes returns text, is absolutely *not* what we want.

The kind of third-party thing that *might* fill the bill
would be a *function*:

   bytesformat(b"Content-Length: %d", length)

that implements all the %-specifiers we're asking for.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to