[Python-checkins] peps: PEP 461: more updates
Terry Reedy
tjreedy at udel.edu
Thu Jan 16 03:49:14 CET 2014
On 1/15/2014 7:12 PM, ethan.furman wrote:
> PEP 461: more updates
I embodied my idea of what bytes.format might do in concrete Python
code. I recommend that you do the same for yours; it tends to focus the
mind.
class B(bytes):
def format(self, *obs):
???
Prototyping syntax in CPython is a bit less graceful.
I do not care much about the details of what might be added, as I have
no current expectation of using it. What I do care about is that it be
a) compatible with the Python 3 text and bytes model;
b) useful enough to important projects, such as mercurial, to encourage
Python 3 migration.
I am confident that others will see to a). As for b), I suggest
extracting test examples from, say, mercurial, as well as adding your
own, and running them with your prototype functions. I think we have had
enough theoretical discussion of this option versus that, and need to
see how the choices work in practice.
--
Terry
More information about the Python-checkins
mailing list