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
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
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,
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
Many thanks I will do so in the future.
David
--
http://mail.python.org/mailman/listinfo/python-list
"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,
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
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
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
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
10 matches
Mail list logo