[Python] Stats properties doesn't return values
Bug #515526 reported by
Sulan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ADCH++ |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When i run adch++ via python module and try to access attributes in Stats class, they return property object.
Using something like print pyadchpp.
Expected result:
print an integer
Actuall result:
printing <property object at 0x00C247E0>
Providing a testscript, put it in bin directory and run it.
To post a comment you must log in.
some of these stats are 64-bit ints, or "long long"s, and Python doesn't have built-in support for these types as far as i know. so it is understandable that SWIG would use some kind of holder to get around these limitations and still be able to maintain precision.
i assume "print repr(stat)" would work, no?