Using __repr__ or __str__ for own printable class?

Jp Calderone exarkun at intarweb.us
Mon Apr 14 14:19:31 EDT 2003


On Mon, Apr 14, 2003 at 08:14:45PM +0200, Irmen de Jong wrote:
> Peter Hansen wrote:
> >Irmen de Jong wrote:
> >
> >>[offtopic]
> >>
> >>Erik Max Francis wrote:
> >>
> >>
> >>>>>>Course(lowEarthOrbit, lowMarsOrbit).transfers()
> >>>
> >>>[<ExtractionTransfer @ 0x82893ac (out of `low orbit around `Earth'')>,
> >>><HohmannTransfer @ 0x812cef4 (Hohmann from `Earth' to `Mars')>,
> >>><InsertionTransfer @ 0x82adb64 (into `low orbit around `Mars'')>]
> >>>
> >>
> >>Is this actual code? What does this do? I'm interested.
> >
> >
> >Given that Python is an "agile language", it seems very likely that
> >it must be an implementation of Robert Zubrin's XP-style "Mars Direct" 
> >program for a manned mission to Mars.  
> >
> ><0.9 wink but I wish it were lower-ly y'rs> 
> >
> >-Peter
> 
> I *was* serious...
> If it is real code I suspect it somehow determines a path for a
> free moving object in space to transfer from one orbit to another
> orbit around different bodies in the solar system.
> At least that is what a quick google for "Hohmann orbit transfer"
> tells me. And I'm still interested ;-)
> 

  Indeed, I would guess it is part of an autopilot program.

  Cool stuff.

  Jp

-- 
http://catandgirl.com/view.cgi?44
-- 
 up 25 days, 15:02, 4 users, load average: 1.19, 1.11, 1.25





More information about the Python-list mailing list