[pypy-dev] pypy specific code flags DONT_IMPLY_DEDENT and SOURCE_IS_UTF8
Armin Rigo
armin.rigo at gmail.com
Mon Dec 16 05:32:50 EST 2019
Hi,
On Mon, 16 Dec 2019 at 11:24, Rocky Bernstein <rb at dustyfeet.com> wrote:
> I have a cross-version Python bytecode disassembler xdis (https://pypi.org/project/xdis/) and I notice that flags 0x0100 and 0x0200 (DONT_IMPLY_DEDENT and SOURCE_IS_UTF8 respectively) conflict in Pypy 3.6 with Python 3.6's ITERABLE_COROUTINE and ASYNC_GENERATOR.
Looking in the CPython 3.6 source code, I see that
PyCF_DONT_IMPLY_DEDENT = 0x0200 as well there, even though
``inspect.CO_ASYNC_GENERATOR`` is also 0x0200. The same with
PyCF_SOURCE_IS_UTF8 = 0x0100 and ``inspect.CO_ITERABLE_COROUTINE``.
So the conflict you're talking about seems to exist in CPython 3.6
too.
Can you give us a concrete example of code where CPython 3.6 differs
from PyPy 3.6?
A bientôt,
Armin.
More information about the pypy-dev
mailing list