Ah - I'm from a Java background, so knowing that Exceptions are cheap in Python suits me just fine.
Thanks for the tips, all! -Tyson -- Tyson Tate - CalPoly Graphic Design Student - Work: Graphic Designer (CalPoly Library) - Play: Mustang Band, CalPoly Triathlon Team, Kappa Kappa Psi (Iota Pi) On Jun 27, 2006, at 9:30 AM, Daniel Poelzleithner wrote: > Compared to other languages, exception in python are very cheap > operations. On C level, the function just returns a null pointer > instead > of a PyObject pointer and setting the two stack values for exception > type and value isn't expensive eighter. In fact, it's so cheap that > functions like has_key just try to access the value or return 0 on > exception :) > > kindly regards > Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---