Re-raised exceptions in 2.7.3 -- stack trace missing

2012-05-14 Thread Oliver Beattie
Hi there I'm tying to investigate a bit of a weird problem here. Basically, I've just upgraded Python (from 2.7.2 - 2.7.3) by way of an OS upgrade (Ubuntu), and now all the tracebacks I'm getting sent from my web app are looking like this: http://dpaste.org/EgKJp/ As you can see, Django is

Custom class to a dictionary?

2008-01-26 Thread Oliver Beattie
Just wondering if it is possible to pass a custom class instance instance to dict() by way of using methods like you can for iterators (__iter__, __getitem__ etc.) I see there is no __dict__ -- is there anything else I can use to achieve this? Kind Regards, Oliver --

Re: Custom class to a dictionary?

2008-01-26 Thread Oliver Beattie
On Jan 26, 12:01 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Sat, 26 Jan 2008 03:35:18 -0800, Oliver Beattie wrote: Just wondering if it is possible to pass a custom class instance instance to dict() by way of using methods like you can for iterators (__iter__