Perl Dictionary Convert

Tom Grove thomas.grove at nepinc.com
Wed Jul 5 16:29:07 EDT 2006


I have a server program that I am writing an interface to and it returns 
data in a perl dictionary.  Is there a nice way to convert this to 
something useful in Python?

Here is some sample data:

200 data follow
{
  Calendar =  {
    Access =  { anyone = lr;};
    Class =  IPF.Appointment;
    Messages =  0;
    Size =  0;
    UIDNext =  1;
    UIDValidity =  287898056;
    Unseen =  0;
  };
  Contacts =  {
    Class =  IPF.Contact;
    Messages =  0;
    Size =  0;
    UIDNext =  1;
    UIDValidity =  287898056;
    Unseen =  0;
  };
}

-Tom




More information about the Python-list mailing list