[Pythonmac-SIG] aetypes bug?

Doug Wyatt doug@sonosphere.com
Sun, 23 Aug 1998 05:08:24 -0400


I just updated from Python 1.5a2 to 1.5.1 and have a new stack overflow in
aetypes.py, from code that used to work fine.

What's happening is that self._elemdict.has_key(name) is causing
__getattr__ to recurse infinitely.

	def __getattr__(self, name):
		if self._elemdict.has_key(name):
			cls = self._elemdict[name]
			return DelayedComponentItem(cls, self)
		if self._propdict.has_key(name):
	   		cls = self._propdict[name]
	   		return cls(self)
		raise AttributeError, name

1.5a2's aetypes.py doesn't have this code ... reverting to all of 1.5a2's
AppleEvent stuff makes things work again.  I'd appreciate any help.

Doug


--
Doug Wyatt                             doug@sonosphere.com
Sonosphere (electric/improv music)     http://www.sonosphere.com/
"Accidental Beauties" CD release:      http://www.sonosphere.com/wyatt/
available from CMC, 1-800-882-4262     http://www.MusicDiscoveries.com/