News for hackers. Stuff that matters.
Re: (Python) Generator Tricks For Systems Programmer (pdf) by grifaton on Tuesday December 13, 2011 @05:26PM (#3349640)
Inspired by this very presentation, I recently knocked together a library for munging text streams in Python, rather than calling through to sed and grep.

If anyone's interested, the code's here: https://github.com/inglesp/munger.py

Re: (Python) Generator Tricks For Systems Programmer (pdf) by slig on Tuesday December 13, 2011 @05:43PM (#3349707)
Is there any special reason for why you didn't use imap here https://github.com/inglesp/munger.py/blob/master/munger.py#L... ?
Re: (Python) Generator Tricks For Systems Programmer (pdf) by grifaton on Wednesday December 14, 2011 @04:44AM (#3351246)
Habit, I think. Will change it when I get the chance.