You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Note github unpyc3 and..
- Add source to bytecode_2.2/03_class_method.pyc - more ignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,7 +1,7 @@
|
|||||||
|
*.pyo
|
||||||
*.pyc
|
*.pyc
|
||||||
*_dis
|
*_dis
|
||||||
*~
|
*~
|
||||||
*.pyc
|
|
||||||
/.cache
|
/.cache
|
||||||
/.eggs
|
/.eggs
|
||||||
/.python-version
|
/.python-version
|
||||||
@@ -13,5 +13,6 @@
|
|||||||
/nose-*.egg
|
/nose-*.egg
|
||||||
/tmp
|
/tmp
|
||||||
/uncompyle6.egg-info
|
/uncompyle6.egg-info
|
||||||
|
/unpyc
|
||||||
__pycache__
|
__pycache__
|
||||||
build
|
build
|
||||||
|
@@ -132,6 +132,7 @@ See Also
|
|||||||
|
|
||||||
* https://github.com/zrax/pycdc : supports all versions of Python and is written in C++
|
* https://github.com/zrax/pycdc : supports all versions of Python and is written in C++
|
||||||
* https://code.google.com/archive/p/unpyc3/ : supports Python 3.2 only. The above projects use a different decompiling technique what is used here.
|
* https://code.google.com/archive/p/unpyc3/ : supports Python 3.2 only. The above projects use a different decompiling technique what is used here.
|
||||||
|
* https://github.com/figment/unpyc3/ : fork of above, but supports Python 3.2 only. Include some fixes like supporting function annotations
|
||||||
* The HISTORY_ file.
|
* The HISTORY_ file.
|
||||||
|
|
||||||
.. |downloads| image:: https://img.shields.io/pypi/dd/uncompyle6.svg
|
.. |downloads| image:: https://img.shields.io/pypi/dd/uncompyle6.svg
|
||||||
|
Binary file not shown.
13
test/simple_source/def/03_class_method.py
Normal file
13
test/simple_source/def/03_class_method.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# From Decompyle++
|
||||||
|
# File: 22_class_method.pyc (Python 2.2)
|
||||||
|
# An old-style Python class.
|
||||||
|
|
||||||
|
class MyClass:
|
||||||
|
|
||||||
|
def method(self, i):
|
||||||
|
if i is 5:
|
||||||
|
print 'five'
|
||||||
|
elif not (i is 2):
|
||||||
|
print 'not two'
|
||||||
|
else:
|
||||||
|
print '2'
|
Reference in New Issue
Block a user