3
I Use This!
Inactive

News

Analyzed 1 day ago. based on code collected 1 day ago.
Posted almost 13 years ago by almad
(diff)
Posted over 13 years ago by almad
remove nose-users (diff)
Posted over 13 years ago by almad
release notes (diff)
Posted over 13 years ago
Posted over 13 years ago by almad
(diff)
Posted over 13 years ago by almad
fixed
Posted over 13 years ago by almad
fixed
Posted over 13 years ago by almad
fixed
Posted over 13 years ago by almad
fixed: Seems to be working. Verify thoughts by buildbot.
Posted over 13 years ago by almad
Reported by Eugene: > I've noticed the following construct at > http://github.com/Almad/django-sane-testing/blob/master/testproject/test/te > st_liveserver.py > def __init__(self, *args, **kwargs): > super(self.__class__ ... [More] , self).__init__(*args, **kwargs) > > > This is a very serious misunderstanding of how super works. Try to run the > following example: > class A(object): > def __init__(self, *args, **kwargs): > super(self.__class__, self).__init__(*args, **kwargs) > print 'In A.__init__' > > class B(A): > def __init__(self, *args, **kwargs): > super(self.__class__, self).__init__(*args, **kwargs) > print 'In B.__init__' > > B() > > This code snippet will cause infinite recursion because in A.__init__ > self.__class__ would be B, not A. [Less]