Book a Demo

Author Topic: reverse engineering python code.  (Read 4167 times)

marc.stefanelli

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
reverse engineering python code.
« on: October 05, 2010, 06:21:42 am »
Hi,
When I reverse engineer C code, EA creates a class to wrap function defined in a C file - this helps to 'box' functions inside something manageable in UML even if "class" in C does not really make sense.

Is it possible to have this behaviour for Python modules/scripts containing functions - but also classes?

Actually, when a script contains fonctions I don't get anything usuable... "create a package per file" creates an empty package. "create package per directory" make more sense but does not create anything.
 
Note: Python is more like C++ in this sense as a source file could contains 'classes' and 'functions'.

- Marc.
PS: Just upgraded to EA 8.0-863



Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: reverse engineering python code.
« Reply #1 on: October 05, 2010, 08:28:35 am »
Python reverse engineering is the same as C++.  Functions outside of the scope of classes are ignored.

marc.stefanelli

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: reverse engineering python code.
« Reply #2 on: October 07, 2010, 07:02:17 am »
Thanks for your reply. I can stop trying to figure out how to do that  :'(
However reading that C++ folks are also in trouble with such construct does not make me happy...
Any suggestions to cope with this?
Should I fill a bug report?
- Marc.