How to know that two pyc files contain the same code
steve+comp.lang.python at pearwood.info
Sat Mar 10 23:52:04 CET 2012
On Sat, 10 Mar 2012 15:48:48 +0100, Gelonida N wrote:
> I want to know whether two .pyc files are identical.
> With identical I mean whether they contain the same byte code.
Define "identical" and "the same".
If I compile these two files:
# file ham.py
x = 23
a = 23
return a + 19
# file = spam.py
tmp = 19
x = 4 + tmp
do you expect spam.pyc and ham.pyc to count as "the same"?
More information about the Python-list