Re: Passing string from python programs to external programs

2009-05-26 Thread psykeedelik
On May 26, 9:16 pm, Jeff McNeil j...@jmcneil.net wrote: On May 26, 2:12 pm, lone_eagle icym...@gmail.com wrote: Hi all, On Linux, I do something like this $ program_to_execute input_file ... get some output ... I have the content of the input_file as a string inside a python

Re: Inverse of dict(zip(x,y))

2009-03-05 Thread psykeedelik
On Mar 5, 6:01 pm, Tino Wildenhain t...@wildenhain.de wrote: Piet van Oostrum wrote: Andre Engels andreeng...@gmail.com (AE) wrote: AE On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle icym...@gmail.com wrote: Can someone suggest a easy method to do the inverse of dict(zip(x,y)) to get two

Re: Inverse of dict(zip(x,y))

2009-03-04 Thread psykeedelik
On Mar 4, 11:06 am, Paul Rubin http://phr...@nospam.invalid wrote: lone_eagle icym...@gmail.com writes: So, if x and y are two lists, it is easier to make a dictionary using d = dict(zip(x,y)), but if I have d of the form, d = {x1:y1, x2:y2, ...}, what is there any trick to get lists x =