Re: [python-win32] File name and version as dictionary key value

2012-05-02 Thread Max Slimmer
Filename_version_dir = dir([(nam,filename:get_file_version(nam)) for nam in filename_version_list]) This is a list comprehension which returns a list of (name,ver). You should look at http://docs.python.org/library/stdtypes.html# and pay attention to lists and mapping types (dict) and all the thi

Re: [python-win32] File name and version as dictionary key value

2012-05-02 Thread Kris Hardy
On 5/2/2012 8:25 AM, Aravind Kamble wrote: Hi All, Hope I am posting in correct mailing list. Am facing another problem now. My logic is to get file versions of files inside two directories and compare them. I am trying to get filename and version as key, value pairs in a directory. I have a

[python-win32] File name and version as dictionary key value

2012-05-02 Thread Aravind Kamble
Hi All, Hope I am posting in correct mailing list. Am facing another problem now. My logic is to get file versions of files inside two directories and compare them. I am trying to get filename and version as key, value pairs in a directory. I have a function written which will provide me the file