the real .pyc file
Peter Hansen
peter at engcorp.com
Wed Nov 27 23:03:24 EST 2002
Bengt Richter wrote:
>
> On Wed, 27 Nov 2002 00:21:26 -0500, Peter Hansen <peter at engcorp.com> wrote:
>
> >Gustavo Niemeyer wrote:
> >>
> >> Yes, I was bored.. ;-)
> >>
> >> int
> >> a=1//1;main=lambda:1
> >> +1;
> >> #define a
> >> int
> >> main()
> >> {a//a:a};import sys;printf=sys.stdout.write
> >> printf("Hello world!\n");a//a;{
> >> }
> >
> >Nice! :-) I think I can safely say this is the first truly
> >obfuscated Python code that I've seen. The funny thing is
> ^^^^^^^^^^^^^^^^^^^^^^[1]
> >that the obfuscation primarily hides the fact that it even
> >*is* Python, because you can "of course" tell what it does
> >just by looking at it (if you know C).
> [1] It's also obfuscated C ;-)
I thought that part was obvious. Given how C code looks
normally, I'd call this only _barely_ obfuscated, as far as
C goes...
-Peter
More information about the Python-list
mailing list