[Baypiggies] Code/Idea Review (WARNING: SPOILER)

Aahz aahz at pythoncraft.com
Sat Dec 15 21:16:30 CET 2007

On Sat, Dec 15, 2007, Dennis Reinhardt wrote:
> Seems correct but hard to read and understand what you are doing.  How about
> trans_table = string.maketrans (
>     "abcdefghijklmnopqrstuvwxyz",
>     "cdefghijklmnopqrstuvwxyzab",
>     )
> Ooops ... ignore the trailing ","

Actually, *don't* ignore the trailing comma; I highly recommend using one
with multi-line value lists.  It's not particularly useful here, but it
saves a lot of work IME in other cases, and it's simply a good habit to
get into.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith

More information about the Baypiggies mailing list