Convert AWK regex to Python

Chris Angelico rosuav at gmail.com
Mon May 16 04:46:51 EDT 2011


On Mon, May 16, 2011 at 6:43 PM, J <jnr.gonzalez at googlemail.com> wrote:
> Good morning Angelico,
> Do I understand correctly? Do you mean incorporating a Python dict inside the AWK command? How can I do this?

No, inside Python. What I mean is that you can achieve the same
uniqueness requirement by simply storing the intermediate data in a
dictionary and then retrieving it at the end.

Chris Angelico



More information about the Python-list mailing list