Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #13261 > unrolled thread

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

Started byArnaud Delobelle <arnodel@gmail.com>
First post2011-09-14 07:20 +0100
Last post2011-09-14 07:20 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Arnaud Delobelle <arnodel@gmail.com> - 2011-09-14 07:20 +0100

#13261 — Re: ANN: unpyc3 - a python bytecode decompiler for Python3

FromArnaud Delobelle <arnodel@gmail.com>
Date2011-09-14 07:20 +0100
SubjectRe: ANN: unpyc3 - a python bytecode decompiler for Python3
Message-ID<mailman.1103.1315981208.27778.python-list@python.org>
On 14 September 2011 06:53, Vincent Vande Vyvre
<vincent.vandevyvre@swing.be> wrote:
>
> Hi, trying your code, I have had numbers of errors:

Hi Vincent, thanks for trying it.

>   File "unpyc3.py", line 55, in <module>
>     SETUP_WITH,
> NameError: name 'SETUP_WITH' is not defined
>
> commented it
>
>   File "unpyc3.py", line 58, in <module>
>     STORE_DEREF, DELETE_DEREF,
> NameError: name 'DELETE_DEREF' is not defined
>
> commented it

What version of Python are you running this on?  This is module is
written for Python 3.  It looks like you're using an old version of
Python (before the with statement was introduced - 2.5?)

>   File "unpyc3.py", line 96, in dec_module
>     stream = open(pyc_path, "rb")
> UnboundLocalError: local variable 'pyc_path' referenced before assignment
>
> change pyc_path to path

Thanks, I've fixed that.

--
Arnaud

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web