Using __repr__ or __str__ for own printable class?

Peter Hansen peter at engcorp.com
Mon Apr 14 14:06:53 EDT 2003


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




More information about the Python-list mailing list