In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
                        .
                        .
                        .
>    # create numeric pad
>    digit("7", 1, 1); digit("8", 2, 1); digit("9", 3, 1)
>    digit("4", 1, 2); digit("5", 2, 2); digit("6", 3, 2)
>    digit("1", 1, 3); digit("2", 2, 3); digit("3", 3, 3)
                        .
                        .
                        .
I confess that this sort of thing often tempts me to

    for (numeral, row, column) in [
                (7, 1, 1), (8, 2, 1), (9, 3, 1),
                (4, 1, 2), (5, 2, 2), (6, 3, 2),
                (1, 1, 3), (2, 2, 3), (3, 3, 3)]:
        digit(str(numeral), row, column)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to