[Python-Dev] Can Python implementations reject semantically invalid expressions? (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Fri Jul 2 09:20:18 CEST 2010
- Previous message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Next message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Next message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]