[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

Victor Stinner victor.stinner at gmail.com
Wed Jan 8 11:12:15 CET 2014


Hi,

2014/1/8 M.-A. Lemburg <mal at egenix.com>:
> I'd simply copy over the Python 2 PyString code and start working
> from there.

It's not possible to reuse directly all Python 2 code because some
helpers have been modified to work on Unicode. The PEP 460 adds also
more work to other implementations of Python.

IMO some formatting commands must not be implemented. For example,
alignment is used to display something on screen, not in network
protocols or binary file formats. It's also why the issue #3982 was
stuck, we must define exactly the feature set of the new methods
(bytes % args, bytes.format).

Victor


More information about the Python-Dev mailing list