On 12/19/06, DavidA <[EMAIL PROTECTED]> wrote: > > > 176 elif isinstance(key, float) or isinstance(key, > decimal.Decimal): > 177 key = floatstr(key, allow_nan)
isinstance can take an iterable of classes as its second argument, so that you could write that as isinstance(key, (float, decimal.Decimal)) -- John Lenton ([EMAIL PROTECTED]) -- Random fortune: The trouble with a lot of self-made men is that they worship their creator. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---