capstone/bindings/python/capstone
Disconnect3d f6505950f1 Add __repr__ for capstone.CsInsn (#1625)
* Add __repr__ for capstone.CsInsn

Currently, a `print(instruction)` displays a not very useful string like `<capstone.CsInsn object at 0x7f3759d88128>`.

This PR enhances adds a `__repr__` magic method to the `capstone.CsInsn` class so it displays as follows:
```
<cs.CsInsn: address=0x5555555545fa, size=1, mnemonic=push, op_str=rbp>
```

* Update __init__.py
2020-05-05 01:54:09 +08:00
..
__init__.py Add __repr__ for capstone.CsInsn (#1625) 2020-05-05 01:54:09 +08:00
arm.py Re-apply changes from 1647720656 on next branch, that's the commit that lets the python bindings run in pypy 2016-06-16 15:47:43 -07:00
arm64.py Re-apply changes from 1647720656 on next branch, that's the commit that lets the python bindings run in pypy 2016-06-16 15:47:43 -07:00
arm64_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
arm_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
evm.py EVM: add missing files 2018-03-31 17:32:22 +08:00
evm_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
m68k.py M68K: Branch targets are a separate addressing mode; PC relative displacements printed as target addresses (#1068) 2018-01-06 20:13:41 +08:00
m68k_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
m680x.py M680X: Target ready for pull request (#1034) 2017-10-21 21:44:36 +08:00
m680x_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
mips.py Python: pump number of Mips operands to 10. see #1183 2018-06-19 09:35:37 +08:00
mips_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
ppc.py Re-apply changes from 1647720656 on next branch, that's the commit that lets the python bindings run in pypy 2016-06-16 15:47:43 -07:00
ppc_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
sparc.py sparc: change imm type from int32_t to int64_t 2017-12-27 14:46:47 +08:00
sparc_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
systemz.py Re-apply changes from 1647720656 on next branch, that's the commit that lets the python bindings run in pypy 2016-06-16 15:47:43 -07:00
sysz_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
tms320c64x.py Added support for the TMS320C64x architecture. 2017-04-14 17:00:40 +03:00
tms320c64x_const.py Added support for the TMS320C64x architecture. 2017-04-14 17:00:40 +03:00
x86.py Merges encoding to next (#1194) 2018-07-04 22:47:55 +08:00
x86_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
xcore.py Re-apply changes from 1647720656 on next branch, that's the commit that lets the python bindings run in pypy 2016-06-16 15:47:43 -07:00
xcore_const.py bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00