[Tutor] How to create dictionaries loadable with import

Albert-Jan Roskam fomcl at yahoo.com
Wed Sep 25 19:35:51 CEST 2013



----- Original Message -----

> From: "Treder, Robert" <Robert.Treder at morganstanley.com>
> To: "tutor at python.org" <tutor at python.org>
> Cc: 
> Sent: Wednesday, September 25, 2013 6:09 PM
> Subject: Re: [Tutor] How to create dictionaries loadable with import
> 
>T hanks for the suggestions and sorry about the errors when I tried to anonymize 
> my code. 

Talking about anonymizing, this is legal:

#!/usr/bin/python
# -*- coding: rot13 -*-qrs fbzrShap(*netf, **xjnetf):
           cnff


...because:

>>> print """qrs fbzrShap(*netf, **xjnetf):
    cnff""".decode("rot13")
def someFunc(*args, **kwargs):
    pass

fun, isn't it?



More information about the Tutor mailing list