[Grok-dev] need advice on testing

Brandon Craig Rhodes brandon at rhodesmill.org
Mon May 26 09:08:42 EDT 2008


"Peter Bengtsson" <peter at fry-it.com> writes:

>>>> pprint(sorted(d.items()))
> [('age', 28),
>  ('name', 'peter'),
>  ('name_of_something', 'Foo'),
>  ('this', 'is really long')]
>
> That way the order is guaranteed.

I think that "pprint" already sorts.

-- 
Brandon Craig Rhodes   brandon at rhodesmill.org   http://rhodesmill.org/brandon


More information about the Grok-dev mailing list