Steven Haryanto wrote: > # then pass the items to superclass' constructor > apply(Bag.__init__, args_) > > Is there an elegant way to do this so I can still declare > Bag's __init__ as 'def __init__(self, *items)', but I don't > need to create a temporary list like below? I think you want apply(Bag.__init__, (self,) + args_) -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4