Message255500
I like the idea. It's common in protocols to have different kinds of
"terminators" to mark the end of a message. C strings use a null byte
for example. I would be trivial to accept other terminators, since we
don't store received bytes as lines, but as a raw byte string
(technically in a bytearray).
> if not isinstance(separator, bytes) or len(separator) != 1:
Yes, we should only reject empty terminator string. But terminator
strings of more than 1 character are fine, no? I don't think that we
need to put an arbitrary limitation here.
> Since I cannot create pull-request, I will write just here what I want:
Oh, what is your problem? You can use https://github.com/python/asyncio |
|
Date |
User |
Action |
Args |
2015-11-27 22:49:32 | vstinner | set | recipients:
+ vstinner, gvanrossum, socketpair, yselivanov |
2015-11-27 22:49:32 | vstinner | link | issue25752 messages |
2015-11-27 22:49:32 | vstinner | create | |
|