__str__ vs. __repr__
mwh21 at cam.ac.uk
Sun Nov 14 15:25:12 CET 1999
philh at vision25.demon.co.uk (Phil Hunt) writes:
> In article <01fd01bf2dce$d2c03cf0$f29b12c2 at secret.pythonware.com>
> fredrik at pythonware.com "Fredrik Lundh" writes:
> > 2) what's the reason byte code cannot be used to recover
> > the original source code
> Perhaps because two different (but obviously functionally
> identical and very similar) source codes could produce the same
> byte code.
I doubt it actually. Python's bytecode is really pretty high
level. Leastaways, I can't think of any examples.
It's one of those things I might get round to writing one of these
days. I don't really know how hard it would be. Not especially, I
More information about the Python-list