Re: by reference

2006-02-15 Thread dirvine
Many thanks Martin You right - possible and ugly. Looks like I will doing a from __future__ as it looks better and perhaps this ugly method may be depreciated. Thanks again for your help David Martin P. Hellwig wrote: > dirvine wrote: > > Yes I did > > > > I was trying to do something like (pseu

Re: by reference

2006-02-13 Thread Martin P. Hellwig
dirvine wrote: > Yes I did > > I was trying to do something like (pseudo code) > > write: > get files in path > for each filename get size, type > create dic called filename assign size:xx,type:y > pickle to file > > read: > open pickled file > read dict name and contents (hoping unpickling file

Re: by reference

2006-02-12 Thread dirvine
Yes I did I was trying to do something like (pseudo code) write: get files in path for each filename get size, type create dic called filename assign size:xx,type:y pickle to file read: open pickled file read dict name and contents (hoping unpickling file gives me the dict name as it was saved,

Re: by reference

2006-02-12 Thread Bruno Desthuilliers
dirvine a écrit : > Thanks but I am a bit unsure as to what error I have made by posting > this question. Your question was not very clear. > I am not trying to be funny but can you give me a > pointer to the issue. Have you read Martin Hellwig's answer ? -- http://mail.python.org/mailman/lis

Re: by reference

2006-02-11 Thread dirvine
Many thanks I will do so in the future. David -- http://mail.python.org/mailman/listinfo/python-list

Re: by reference

2006-02-10 Thread Tim Roberts
"dirvine" <[EMAIL PROTECTED]> wrote: > >Thanks but I am a bit unsure as to what error I have made by posting >this question. I am not trying to be funny but can you give me a >pointer to the issue. The problem is that your question is quite unclear. I suggest that you post your exact Python code,

Re: by reference

2006-02-10 Thread dirvine
Thanks but I am a bit unsure as to what error I have made by posting this question. I am not trying to be funny but can you give me a pointer to the issue. Many thanks David -- http://mail.python.org/mailman/listinfo/python-list

RE: by reference

2006-02-09 Thread Delaney, Timothy (Tim)
Rene Pijlman wrote: > dirvine: >> I would like to create a dictionary based on a variable [...] > > And what seems to be the problem? He forgot to read http://www.catb.org/~esr/faqs/smart-questions.html. And *you* forgot to point him to it ;) Tim Delaney -- http://mail.python.org/mailman/list

Re: by reference

2006-02-09 Thread Martin P. Hellwig
Rene Pijlman wrote: > dirvine: >> I would like to create a dictionary based on a variable [...] > > And what seems to be the problem? > I think that this is his problem: >>> 'somename'={} SyntaxError: can't assign to literal But I'm puzzled why he wants that route, while I'm still pretty new t

Re: by reference

2006-02-09 Thread Rene Pijlman
dirvine: >I would like to create a dictionary based on a variable [...] And what seems to be the problem? -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list