Message78277
The documentation for asynchat needs to be more precise in its use of
strings vs. bytes. Unless the undocumented use_encoding attribute is
set, it seems that all data should be bytes throughout (e.g., the
terminator, inputs to push methods, etc.).
I have no idea if the use_encoding attribute is officially blessed or
not. However, to avoid "magic behavior", I'm guessing that it would be
better practice to be explicit in one's use of bytes vs. text rather
than having take place in the internals of asynchat. Advice welcome. |
|
Date |
User |
Action |
Args |
2008-12-25 01:22:52 | beazley | set | recipients:
+ beazley, georg.brandl |
2008-12-25 01:22:51 | beazley | set | messageid: <1230168171.56.0.381937953807.issue4744@psf.upfronthosting.co.za> |
2008-12-25 01:22:49 | beazley | link | issue4744 messages |
2008-12-25 01:22:47 | beazley | create | |
|