Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5502

Re: Convert AWK regex to Python

References <mailman.1633.1305534667.9059.python-list@python.org> <0426dbb3-178c-42ac-aebc-29603b3b3bce@glegroupsg2000goo.googlegroups.com>
Date 2011-05-16 18:46 +1000
Subject Re: Convert AWK regex to Python
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1635.1305535614.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, May 16, 2011 at 6:43 PM, J <jnr.gonzalez@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Convert AWK regex to Python J <jnr.gonzalez@googlemail.com> - 2011-05-16 01:43 -0700
  Re: Convert AWK regex to Python Chris Angelico <rosuav@gmail.com> - 2011-05-16 18:46 +1000

csiph-web