[Baypiggies] history of import this

Langton, Asher langton2 at llnl.gov
Fri Jun 11 01:59:24 CEST 2010


On 6/10/10 4:53 PM, "akleider at sonic.net" <akleider at sonic.net> wrote:
> 
> This is pretty cool.
> What syntax would one use to capture the string that gets printed when one
>>>> import this
> ????

Try this:
>>> import this
>>> s = "".join([this.d.get(c, c) for c in this.s])

To where this comes from, take a look at this.py in the Python source code.



More information about the Baypiggies mailing list