Re: [IronPython] Dict convertion question

2006-07-20 Thread JoeSox
On 7/20/06, J. Merrill <[EMAIL PROTECTED]> wrote: > At 01:05 AM 7/20/2006, JoeSox wrote (in part) > >File.WriteAllText(Application.StartupPath + "\\mydict.txt", > >myDict.ToCodeString()); > >(This results in a file size of 1,540,096 bytes which was created in about a > >second.) > > I don't know

Re: [IronPython] Dict convertion question

2006-07-20 Thread Dino Viehland
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill Sent: Thursday, July 20, 2006 12:58 PM To: Discussion of IronPython Subject: Re: [IronPython] Dict convertion question You should really try executing the ToCodeString result At 12:49 PM 7/20/2006, JoeSox wrote &

Re: [IronPython] Dict convertion question

2006-07-20 Thread J. Merrill
You should really try executing the ToCodeString result At 12:49 PM 7/20/2006, JoeSox wrote >On 7/20/06, Bruce Christensen <[EMAIL PROTECTED]> wrote: >> What is the nature of the dict that you're trying to save? > >It's a >{4: [6, 4278, 44657, 30279, 58912, 67939, 18551, 33653, 28303, 6692,

Re: [IronPython] Dict convertion question

2006-07-20 Thread Bruce Christensen
PROTECTED] On Behalf Of J. Merrill Sent: Thursday, July 20, 2006 12:04 PM To: Discussion of IronPython Subject: Re: [IronPython] Dict convertion question At 01:05 AM 7/20/2006, JoeSox wrote (in part) >File.WriteAllText(Application.StartupPath + "\\mydict.txt", myDict.ToCodeStri

Re: [IronPython] Dict convertion question

2006-07-20 Thread Dino Viehland
ly 20, 2006 12:04 PM To: Discussion of IronPython Subject: Re: [IronPython] Dict convertion question At 01:05 AM 7/20/2006, JoeSox wrote (in part) >File.WriteAllText(Application.StartupPath + "\\mydict.txt", >myDict.ToCodeString()); (This results in a file size of 1,540,096 bytes

Re: [IronPython] Dict convertion question

2006-07-20 Thread J. Merrill
At 01:05 AM 7/20/2006, JoeSox wrote (in part) >File.WriteAllText(Application.StartupPath + "\\mydict.txt", >myDict.ToCodeString()); >(This results in a file size of 1,540,096 bytes which was created in about a >second.) I don't know much about ToCodeString, but from the name, it should produce a

Re: [IronPython] Dict convertion question

2006-07-20 Thread JoeSox
On 7/20/06, Bruce Christensen <[EMAIL PROTECTED]> wrote: > What is the nature of the dict that you're trying to save? It's a {4: [6, 4278, 44657, 30279, 58912, 67939, 18551, 33653, 28303, 6692, 4827, 110144, 18920, 15569, 11571, 77917, 7968, 10137, 14154, 33180, 12544, 54062, 159370, 9495], 11: [

Re: [IronPython] Dict convertion question

2006-07-20 Thread Bruce Christensen
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JoeSox Sent: Wednesday, July 19, 2006 10:06 PM To: Discussion of IronPython Subject: Re: [IronPython] Dict convertion question Perfect Bruce thanks for the suggestion. Thanks exactly what I was looking for. However, it took around s

Re: [IronPython] Dict convertion question

2006-07-19 Thread JoeSox
Perfect Bruce thanks for the suggestion. Thanks exactly what I was looking for. However, it took around six minutes to create a file using pickle, as opposed to one second when I used File.WriteAllText. I understand pickle may be compressing but the space savings is not a significant enough benefi

Re: [IronPython] Dict convertion question

2006-07-19 Thread Bruce Christensen
ew_dict [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), ... Since we just added support for this, please let us know if you run into any problems. --Bruce -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JoeSox Sent: Wednesday, July 19, 2006 10:47 AM To: Discussion

[IronPython] Dict convertion question

2006-07-19 Thread JoeSox
I'm interested in storing a large Dict in a text file. What I am trying to figure out what be the best way on creating the Dict from the text file. I see Converter.ConvertToValueType but I don't understand how to construct the RuntimeTypeHandle to see if that would work. But I am thinking I need