[CentralOH] Python Indentation problem

Fandi Peng fandi.814 at gmail.com
Fri Apr 6 05:14:06 CEST 2012


Hi guys,
How would you indent the following lines to meet PEP8
python coding convention?

    def win(self):
        return (self.win_by_kill() or self.win_by_reach() or not
                (self.get_available_moves(
                    (self.player + 1) %len(self.MARKS))))

        my_sorted_moves = ((list(map((lambda c: tuple(c[::-1])),
                                     my_reversed_src_dst)))
                           [::self.FORWARD[(self.player + 1) %
                                           len(self.MARKS)]])

best,
Fandi


More information about the CentralOH mailing list