Re: Passing string from python programs to external programs

2009-05-26 Thread psykeedelik
On May 26, 9:16 pm, Jeff McNeil wrote: > On May 26, 2:12 pm, lone_eagle 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 > > program and would li

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

2009-03-05 Thread psykeedelik
On Mar 5, 6:01 pm, Tino Wildenhain wrote: > Piet van Oostrum wrote: > >> Andre Engels (AE) wrote: > > >> AE> On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle wrote: > Can someone suggest a easy method to do the inverse of dict(zip(x,y)) > to get two lists x and y? > > So, if x and

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

2009-03-04 Thread psykeedelik
On Mar 4, 11:06 am, Paul Rubin wrote: > lone_eagle 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 = [x1, x2, ..