Author pitrou
Recipients Pam.McANulty, fdrake, pitrou
Date 2013-04-15.15:05:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366038357.15.0.0636685735751.issue17530@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-15 15:05:57pitrousetrecipients: + pitrou, fdrake, Pam.McANulty
2013-04-15 15:05:57pitrousetmessageid: <1366038357.15.0.0636685735751.issue17530@psf.upfronthosting.co.za>
2013-04-15 15:05:57pitroulinkissue17530 messages
2013-04-15 15:05:56pitroucreate