¡@

Home 

python Programming Glossary: myinteger

Why do we use __init__ in python classes?

http://stackoverflow.com/questions/8609153/why-do-we-use-init-in-python-classes

add me to this other number . Let's show this class MyInteger def __init__ self newvalue # imagine self as an index card... # then make a new integer with the result value. return MyInteger self.value other.value three MyInteger 3 # three now contains.. value. return MyInteger self.value other.value three MyInteger 3 # three now contains an object of class MyInteger # three.value..