hetchkay wrote:
> For purposes I don't want to go into here, I have the following code:
> def handleObj(obj):
> if isinstance(obj, MyType):
> return obj.handle()
> elif isinstance(obj, (list, tuple, set)):
> return obj.__class__(map (handleObj, obj))
> elif isinstance(obj, dict):
>
On Thu, Apr 1, 2010 at 11:35 AM, hetchkay wrote:
> Hi,
> For purposes I don't want to go into here, I have the following code:
> def handleObj(obj):
> if isinstance(obj, MyType):
> return obj.handle()
> elif isinstance(obj, (list, tuple, set)):
> return obj.__class__(map (handleObj, obj)