G
grocery_stocker
What's the difference between doing something calling A.__init__(self)
like in the following...
[cdalten@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information..... def __init__(self):
.... pass
........ def __init__(self, x):
.... A.__init__(self)
.... self.x = x
.... print x
....Traceback (most recent call last):
versus something like the following....
[cdalten@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information..... def __init__(self):
.... pass
........ def __init__(self, x):
.... self.x = x
.... print x
....Traceback (most recent call last):
Just curious because the former seems to be common when using the
python Thread module.
like in the following...
[cdalten@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information..... def __init__(self):
.... pass
........ def __init__(self, x):
.... A.__init__(self)
.... self.x = x
.... print x
....Traceback (most recent call last):
versus something like the following....
[cdalten@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information..... def __init__(self):
.... pass
........ def __init__(self, x):
.... self.x = x
.... print x
....Traceback (most recent call last):
Just curious because the former seems to be common when using the
python Thread module.