Destructive Windows Script

Tim Roberts timr at probo.com
Thu Jun 9 00:38:27 EDT 2005


Magnus Lycka <lycka at carmen.se> wrote:

>rbt wrote:
>>             data = ['0', 'a', '1', 'b', '2', 'c',\
>>                     '3', 'd', '4', 'e', '5', 'f',\
>>                     '6', 'g', '7', 'h', '8', 'i',\
>>                     '9', 'j', '~', '!', '@', '#',\
>>                     '$', '%', '^', '&', '*', ';']
>> 
>
>Note that the backslashes are redundant between pairs
>of [ ], ( ) or { }. Just write:
>
>             data = ['0', 'a', '1', 'b', '2', 'c',
>                     '3', 'd', '4', 'e', '5', 'f',
>                     '6', 'g', '7', 'h', '8', 'i',
>                     '9', 'j', '~', '!', '@', '#',
>                     '$', '%', '^', '&', '*', ';']
>
>
>(Not that it solves your disk wiping issue.)

This is a lot easier to type:

    data = list("0a1b2c3d4e5f6g7h8i9j~!@#$%^&*;")
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list