Message199271
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. |
|
Date |
User |
Action |
Args |
2013-10-09 00:13:58 | terry.reedy | set | recipients:
+ 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:58 | terry.reedy | set | messageid: <1381277638.0.0.110702084496.issue3982@psf.upfronthosting.co.za> |
2013-10-09 00:13:57 | terry.reedy | link | issue3982 messages |
2013-10-09 00:13:57 | terry.reedy | create | |
|