Author terry.reedy
Recipients arjennienhuis, barry, benjamin.peterson, christian.heimes, durin42, ecir.hana, eric.smith, exarkun, ezio.melotti, flox, glyph, gregory.p.smith, gvanrossum, loewis, martin.panter, nlevitt@gmail.com, pitrou, serhiy.storchaka, stendec, terry.reedy, uau, vstinner
Date 2013-10-09.00:13:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381277638.0.0.110702084496.issue3982@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a proof of concept Python function, with a minimal test. It is similar to how str.format could be coded in Python, with re.split and ''.join, except that it does not allow anything before : in the format specification. By default (no format spec given), it copies bytes objects without change. If a format specification *is* given, it does not restrict the object, as this code simply uses builtin format sandwiched between decode and encode.
History
Date User Action Args
2013-10-09 00:13:58terry.reedysetrecipients: + terry.reedy, gvanrossum, loewis, barry, gregory.p.smith, exarkun, pitrou, vstinner, eric.smith, christian.heimes, benjamin.peterson, glyph, ezio.melotti, durin42, arjennienhuis, flox, ecir.hana, uau, martin.panter, serhiy.storchaka, nlevitt@gmail.com, stendec
2013-10-09 00:13:58terry.reedysetmessageid: <1381277638.0.0.110702084496.issue3982@psf.upfronthosting.co.za>
2013-10-09 00:13:57terry.reedylinkissue3982 messages
2013-10-09 00:13:57terry.reedycreate