Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~595 People Reached
Favorite Forums
Favorite Tags
Member Avatar for rajivgupta1107

Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? …

Member Avatar for vegaseat
0
228
Member Avatar for rajivgupta1107

Hi, I have an application which writes some data to a file (csv). Now there is python script which is to be invoked once the application writes to the file. The application cannot generate any indication of completion of the process. I thought of opening that csv file and handling …

Member Avatar for woooee
0
98
Member Avatar for rajivgupta1107

Hi, I am using this zipfile.Zipfile module to zip around 600 MB of data. But after zipping, the size of the zipped folder is app. same. file = zipfile.ZipFile(yesterday_date_time + ".zip","w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() If i try to use compression method as ZIP_DEFLATED, …

Member Avatar for bumsfeld
0
180
Member Avatar for rajivgupta1107

Hi, We need to zip files having '2009' in their names from a particular directory. How can we do the same. Code: file = zipfile.ZipFile("test.zip", "w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() It is zipping all the files. Please tell me the logic for adding files …

Member Avatar for jlm699
0
89