|
From: <no...@so...> - 2001-07-03 22:26:05
|
Bugs item #438108, was opened at 2001-07-02 18:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=438108&group_id=12867 Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Magnus Lie Hetland (mlh) Assigned to: Nobody/Anonymous (nobody) Summary: __getitem__ called when it shouldn't? Initial Comment: When executing the attached script, it looped infinitely in Jython, but worked fine on other platforms. Or, rather - the attached script is a "fixed" version. The line which says backend = self.__dict__['__try_to_get']('%sgui' % name) originally was backend = self.__try_to_get('%sgui' % name) The problem is that self.__try_to_get triggered __getitem__ which, again, triggered the method in which the above line was found. I cannot see any reason why __getitem__ should be triggered, since the method __try_to_get exists, and should therefore be used directly... Right? ---------------------------------------------------------------------- >Comment By: Finn Bock (bckfnn) Date: 2001-07-03 15:26 Message: Logged In: YES user_id=4201 I think the title should be about __getattr__, not __getitem__. Added as test296. Problem is caused the "import imp" inside the class. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=438108&group_id=12867 |