# Convert python script in ruby

**URL:** <https://rubytalk.org/t/convert-python-script-in-ruby/4958>\
**Category:** ruby-talk\
**Created:** [1 March 2003 01:46 UTC](https://rubytalk.org/t/convert-python-script-in-ruby/4958 "2003-03-01T01:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Chou](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Albert\_Chou](https://rubytalk.org/u/Albert_Chou)\
**Post date:** [1 March 2003 01:46 UTC](https://rubytalk.org/t/convert-python-script-in-ruby/4958/1 "2003-03-01T01:46:48Z")

</div>

I’ve been working on a Ruby script that does a great deal of the  
translation from Python to Ruby, but it’s by no means a complete  
solution, and I don’t know whether it ever will be.

Al

> **···**
>
> -----Original Message-----  
> From: gp [[mailto:gp@NOSPAM.le.isac.cnr.it](mailto:gp@NOSPAM.le.isac.cnr.it)]  
> Sent: Friday, February 28, 2003 3:23 AM  
> To: ruby-talk ML  
> Subject: Convert python script in ruby
> 
> Hi,
> 
> Is there any software to convert python script in ruby?
> 
> Thanks!
> 
> gp-

---

<div class="post-metadata">

**Author:** ![Chalmers](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Chalmers](https://rubytalk.org/u/Chalmers)\
**Post date:** [1 March 2003 07:00 UTC](https://rubytalk.org/t/convert-python-script-in-ruby/4958/2 "2003-03-01T07:00:11Z")

</div>

Interesting, do you have a Python parser in there?

I have the starts of a python-to-ruby translator in Python (don’t throw  
rotten tomatoes please, I wanted to check it out). Its very simple to do  
that in Python since they export an API to the internal parser so you get  
a full Python parser with AST representation “for free” (hint, hint matz  
and I know you have it in the TODO).

I think our community would really benefit from such a tool; when we find  
some extension they have that we want the tool would give a head start in  
translating.

If your tool is close to complete I don’t want to put more effort into  
mine. It was really just a hack I did when checking out Python. Is there a  
way we can join forces and get something more complete faster?

Regards,

Robert Feldt

> **···**
>
> On Sat, 1 Mar 2003, Albert Chou wrote:
> 
> > I’ve been working on a Ruby script that does a great deal of the  
> > translation from Python to Ruby, but it’s by no means a complete  
> > solution, and I don’t know whether it ever will be.
