rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
764 stars 92 forks source link

Python's string format for libmem's types should be evaluable #115

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

In the description for the __repr__ function, it says that the returning string should be able to be eval'd, and that would return your type. If that is not possible, you should use < > to make that explicit. libmem should comply with the eval rule, so that eval(repr(some_obj)) == obj

rdbo commented 1 year ago

Done: af0ded352a1e684c521a809ca89ee5b2179dd6b7