[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

Ethan Furman report at bugs.python.org
Sun Jan 18 19:37:23 CET 2015


Ethan Furman added the comment:

Here's the patch -- the code for % and %= is in place for bytes and bytearray;  I still need to get the doc patch done.  I'll commit Wednesday-ish barring problems.

Big question
============

Background
----------
There is a Python C ABI function called PyBytes_FromFormat which is used to create bytes objects using the %-interpolation format (it takes a c string and none-or-many c args).

Actual Question
---------------
Should PyBytes_FromFormat also support the new codes of %a and %b ?

My Thoughts
-----------
Writing things down is good!  %a and %b are both for Python level arguments, not C-level arguments, so %a and %b would make no sense.

----------
Added file: http://bugs.python.org/file37766/issue20284.stoneleaf.04.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20284>
_______________________________________


More information about the Python-bugs-list mailing list