[Python-checkins] r62342 - python/branches/py3k/Objects/bytesobject.c

Collin Winter collinw at gmail.com
Mon Apr 14 23:18:55 CEST 2008


On Mon, Apr 14, 2008 at 2:05 PM, Christian Heimes <lists at cheimes.de> wrote:
> alexandre.vassalotti schrieb:
>
> > Author: alexandre.vassalotti
>  > Date: Mon Apr 14 22:51:05 2008
>  > New Revision: 62342
>  >
>  > Log:
>  > Improved bytes_extend() to avoid making a full copy of the temporary
>  > buffer. This also makes the code slightly cleaner.
>
>  Changes to Objects/bytesobject.c should be applied to the trunk and
>  merged into the py3k branch via svnmerge.py.
>
>  We need to agree on a policy how we are going to sync the trunk and py3k
>  for new code like bytesobject.c and io.py. The former is easy because
>  the file is almost identical. The later is going to be hard because 2.6
>  doesn't have annotations.
>
>  Collin:
>  How hard is it to write a fixer that removes all annotations from
>  functions? A set of small 3to2 fixers for annotations and metaclasses
>  would make the syncing job much easier.

It should be pretty easy. I'm working on a 2to3 metaclass fixer, which
could provide guidance for a 3to2 fixer.

Do we want to take this opportunity to create a real 3to2 project in
the sandbox? If so, I'd like to refactor lib2to3 into its own project,
then import that into 2to3 and 3to2. I can do the work.

Collin


More information about the Python-checkins mailing list