On Mon, Apr 26, 2010 at 2:04 PM, gopi krishna <dasarathulag...@gmail.com>wrote:

> When I give a dictionary with key and value in order how can get back  iy
> in same order
>
>
You can't using the standard dict type. If you're using Python 3.1, you can
use collections.OrderedDict instead. Otherwise, you'll just have to define
the type yourself. You can find the code for it all over the place if you
search for "python ordered dict".
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to