subprocess : AttributeError: 'Popen' object has no attribute 'read'

marco.nawijn at colosso.nl marco.nawijn at colosso.nl
Fri Jan 4 06:10:40 EST 2019


On Thursday, January 3, 2019 at 9:40:43 PM UTC+1, Chris Angelico wrote:
> On Fri, Jan 4, 2019 at 7:37 AM Mohan Mohta <mohan.mohta at gmail.com> wrote:
> > I am no expert in python but I found grep is lot faster in than the methods of reading files from python.... point me to direction if you know of anything faster I would appreciate it.
> >
> 
> Try doing things the simple and easy way in Python, then figure out if
> it's too slow. Only THEN should you worry about "faster".
> 
> ChrisA

Yeah, and once you find out you need to go faster and subsequently start looking into ways you *can* go faster, you finally end up with code similar to what is implemented in the grep family of tools.




More information about the Python-list mailing list