Message186998
Well, but eval works if you put parentheses as required by the grammar:
>>> s = "(b'xy'\nb'za')"
>>> eval(s)
b'xyza'
Yes, _str_parts and _bytes_parts should probably remain separate. It's the higher-level routine that would deserve sharing.
Also, perhaps the other wrapping routines (for dict, list...) could get the same treatment. |
|
Date |
User |
Action |
Args |
2013-04-15 15:05:57 | pitrou | set | recipients:
+ pitrou, fdrake, Pam.McANulty |
2013-04-15 15:05:57 | pitrou | set | messageid: <1366038357.15.0.0636685735751.issue17530@psf.upfronthosting.co.za> |
2013-04-15 15:05:57 | pitrou | link | issue17530 messages |
2013-04-15 15:05:56 | pitrou | create | |
|