On 03/11/2012 08:06 AM, Steven D'Aprano wrote:
> What if one merely changed the order of definition? Instead of:
>
> def foo(): pass
> def bar(): pass
>
> one had this?
>
> def bar(): pass
> def foo(): pass
>
> It depends on why the OP cares if they are "identical". I can imagine use-
> cases w
On Sun, 11 Mar 2012 12:15:11 +1100, Chris Angelico wrote:
> On Sun, Mar 11, 2012 at 9:52 AM, Steven D'Aprano
> wrote:
>> On Sat, 10 Mar 2012 15:48:48 +0100, Gelonida N wrote: Define
>> "identical" and "the same".
>>
>> If I compile these two files:
>>
>>
>> # file ham.py
>> x = 23
>> def func():
Hi Steven,
On 03/10/2012 11:52 PM, Steven D'Aprano wrote:
> > On Sat, 10 Mar 2012 15:48:48 +0100, Gelonida N wrote:
> >
>> >> Hi,
>> >>
>> >> I want to know whether two .pyc files are identical.
>> >>
>> >> With identical I mean whether they contain the same byte code.
> >
> > Define "identical" a
On Sun, Mar 11, 2012 at 9:52 AM, Steven D'Aprano
wrote:
> On Sat, 10 Mar 2012 15:48:48 +0100, Gelonida N wrote:
> Define "identical" and "the same".
>
> If I compile these two files:
>
>
> # file ham.py
> x = 23
> def func():
> a = 23
> return a + 19
>
>
>
> # file = spam.py
> def func():
>
On Sat, 10 Mar 2012 15:48:48 +0100, Gelonida N wrote:
> Hi,
>
> 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
def func():
a = 23
Gelonida N wrote:
> I want to know whether two .pyc files are identical.
>
> With identical I mean whether they contain the same byte code.
>
> Unfortunately it seems, that .pyc files contain also something like the
> time stamp of the related source file.
>
> So though two pyc files contain th
Gelonida N wrote:
Hi,
I want to know whether two .pyc files are identical.
With identical I mean whether they contain the same byte code.
Unfortunately it seems, that .pyc files contain also something like the
time stamp of the related source file.
So though two pyc files contain the same byt
Hi,
I want to know whether two .pyc files are identical.
With identical I mean whether they contain the same byte code.
Unfortunately it seems, that .pyc files contain also something like the
time stamp of the related source file.
So though two pyc files contain the same byte code, they will no
Hi,
I want to know whether two .pyc files are identical.
With identical I mean whether they contain the same byte code.
Unfortunately it seems, that .pyc files contain also something like the
time stamp of the related source file.
So though two pyc files contain the same byte code, they will no