gstarnberger/uncompyle

Instance methods on constants

Opened this issue · 0 comments

rocky commented
(1).__nonzero__() ==  1

erroneously decompiles to

1.__nonzero__() == 1

https://github.com/rocky/python-uncompyle6/blob/f78a3fb92ea56b9ee0671ebd42af2fd7cfc6636b/uncompyle6/semantics/pysource.py#L1881-L1885 is a suggestion for how one might address.