¡@

Home 

python Programming Glossary: self.int_

Python 3 __getattr__ behaving differently than in Python 2?

http://stackoverflow.com/questions/20430637/python-3-getattr-behaving-differently-than-in-python-2

integer use if the num given was a string if base is None self.int_ int num 2 32 else self.int_ int num base 2 32 def __coerce__.. was a string if base is None self.int_ int num 2 32 else self.int_ int num base 2 32 def __coerce__ self ignored return None def.. def __str__ self return U32 instance at 0x x int d id self self.int_ def __getattr__ self attribute_name print getattr called attribute_name..