# Need help translating a Python class to Ruby

**URL:** <https://rubytalk.org/t/need-help-translating-a-python-class-to-ruby/6080>\
**Category:** ruby-talk\
**Created:** [21 May 2003 22:52 UTC](https://rubytalk.org/t/need-help-translating-a-python-class-to-ruby/6080 "2003-05-21T22:52:31Z")\
**Posts on this page:** 1\
**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:** [21 May 2003 22:52 UTC](https://rubytalk.org/t/need-help-translating-a-python-class-to-ruby/6080/1 "2003-05-21T22:52:31Z")

</div>

Phil,

I talked about the attached Python-to-Ruby translation helper script a  
few weeks ago on the list but never did anything more about it. Please  
feel free to try it out. It’s just a syntactic translation helper, but  
it sure beats doing everything by hand. Note that you will almost  
certainly need Python knowledge to complete the translation, but having  
a lot of the standard stuff done by this script ought to help. Be sure  
to keep a copy of the original Python script handy to refer to as you  
complete the translation – you need to know what the semantics of the  
original program were in order to faithfully port it!

Al

[translate\_Python\_to\_Ruby.ZIP](https://rubytalk.org/uploads/short-url/qJkX1hNVlmdG7YKahlm6fSvyAnV.ZIP) (5.02 KB)

> **···**
>
> -----Original Message-----  
> From: Phil Tomson [[mailto:ptkwt@shell1.aracnet.com](mailto:ptkwt@shell1.aracnet.com)]  
> Sent: Wednesday, May 21, 2003 3:40 PM  
> To: ruby-talk ML  
> Subject: Need help translating a Python class to Ruby
> 
> I’m thinking I’m going to need some help translating a Python class into
> 
> Ruby. It involves communication with another program via pipes (also  
> uses  
> fork, but I’m wondering if threads might be a better choice).
> 
> If there are any folks out there who know a bit of Python and would be  
> willing to answer a few questions and make suggestions for Ruby  
> equivilents I’d appreciated it - please drop me an email.
> 
> Phil  
> \<\<translate\_Python\_to\_Ruby.ZIP\>\>
