Re: Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Aurora Eugene
Hi , I updated the code , and currently is working fine Anyway thank you for your help :) Regards , Aurora On Tue, 1 Jun 2021 at 9:59 PM, Joel Tanko <7thog...@gmail.com> wrote: > For someone new to programming, that's a bit complicated for you don't you > think? > > Your problem lies in your "w

Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Joel Tanko
For someone new to programming, that's a bit complicated for you don't you think? Your problem lies in your "with" block with open('CONFIG.csv') as f: reader = csv.reader(f) return [col for row in reader for col in row] 1. You can only return once and then the function is exited, even

Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Aurora Eugene
Hi All, I Am new to concepts of programming, just started learning with Python. Started writing a program for multiprocessing using Python . The program is to print contents of CSV file parallel. CSV file contains : folder path, EXTENSION for example C:\users , .CSV C:\Windows, .PDF etc so,