From: Fernando P. <fpe...@gm...> - 2007-12-14 00:06:19
|
On Dec 13, 2007 4:14 PM, Christopher Barker <Chr...@no...> wrote: > I'm not up on the details of this specific issue, but in general, the > idea that: > > __repr__ is precise and complete > __str__ is pretty and readable > > is a good one +1 For a while I've toyed with the idea of adding an option to ipython so the output prompts could use str() instead of repr(), so users who *deliberately* want to switch, aware of the potential conflicts, do so. It's easy and I'm about to get on a plane, so I might code it in if I can. Cheers, f |