Jacek Generowicz <jmg at ecs.soton.ac.uk> writes: > # This only works, for the base class (no surprise) > def welease_bwian( N ): > woderwick.wodger = woderwick.bwian[N] How about def welease_bwian(klasse, N): klasse.wodger = klasse.bwian[N] So, instead of writing roderick.welease_bwian(3), you'd write welease_bwian(roderick, 3) In most languages with static methods, you cannot do this, since classes are not first class objects (or maybe they are, but have other funny limitations). Regards, Martin
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