[webkit-dev] Moving to Python 3
Jonathan Bedard
jbedard at apple.com
Fri Jul 12 13:09:24 PDT 2019
> On Jul 12, 2019, at 1:07 PM, Keith Rollin <krollin at apple.com> wrote:
>
>> On Jul 12, 2019, at 13:37, Tim Horton <timothy_horton at apple.com> wrote:
>>
>> See "Migrating to the common subset of Python 2 and 3” — you define different iteritems() helpers in the two cases. Seems pretty reasonable to me.
>
> I did something like this in webkit-triage. Search for “viewitems” for the compatibility function I used, as well as for “PY3” to see some of the other thunks I put into place.
>
> — Keith
>
Actually, hadn’t seen those tricks yet, thanks Tim and Keith for calling them out!
Those would allow us to keep scripts both Python 2.7 and Python 3 compatible for longer.
Jonathan
More information about the webkit-dev
mailing list