[Python-Dev] Can Python implementations reject semantically invalid expressions?

Maciej Fijalkowski fijall at gmail.com
Fri Jul 2 10:39:29 CEST 2010


On Fri, Jul 2, 2010 at 1:20 AM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Am 02.07.2010 08:55, schrieb Craig Citro:
>>> This question has an easy answer - can you possibly tell the difference?
>>>
>>
>> Ok, I'm obviously being silly here, but sure you can:
>
> The dis module is deliberately (*) not part of the Python language and
> standard library; it's an implementation detail (as is the func_code
> attribute, and the code object).
>
> So the question really is: can you tell the difference, using only
> mechanisms not explicitly documented as implementation-specific?
>
> Regards,
> Martin
>
> (*) Unfortunately, the documentation fails to mention that, probably
> because it's too obvious.
>

Even more, Jython and IronPython don't have Python bytecode at all and
they're considered python implementations.

Cheers,
fijal


More information about the Python-Dev mailing list