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


Groups > comp.lang.python > #5500 > unrolled thread

Re: Convert AWK regex to Python

Started byJ <jnr.gonzalez@googlemail.com>
First post2011-05-16 01:43 -0700
Last post2011-05-16 18:46 +1000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#5500 — Re: Convert AWK regex to Python

FromJ <jnr.gonzalez@googlemail.com>
Date2011-05-16 01:43 -0700
SubjectRe: Convert AWK regex to Python
Message-ID<0426dbb3-178c-42ac-aebc-29603b3b3bce@glegroupsg2000goo.googlegroups.com>
Good morning Angelico,
Do I understand correctly? Do you mean incorporating a Python dict inside the AWK command? How can I do this?

[toc] | [next] | [standalone]


#5502

FromChris Angelico <rosuav@gmail.com>
Date2011-05-16 18:46 +1000
Message-ID<mailman.1635.1305535614.9059.python-list@python.org>
In reply to#5500
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web