From: 7stud -- Date: 2009-08-05T06:28:58+09:00 Subject: Re: Python and ruby together? Gwen Morse wrote: > Is it possible to set up python scripts in such a way that they can > parse ruby files? > r1test.rb: --------- puts "hello" puts "world" python_prog.py: ------------- f = open("r1test.rb") for line in f: line = line.strip() #chop newline off pieces = line.split() print line print pieces[-1] print --output:-- puts "hello" "hello" puts "world" "world" -- Posted via http://www.ruby-forum.com/.