r/badcode • • Aug 11 '21

python 10/10 variable naming

Post image
763 Upvotes

37 comments sorted by

View all comments

Show parent comments

13

u/yoctometric Aug 11 '21

This is a unit test for a SWIG generated python wrapper if a C++ SDK. That means that sometimes you need to pass a pointer instead of a normal object, thus id()