Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Demo/scripts/queens.py

    r2 r391  
    2020    def reset(self):
    2121        n = self.n
    22         self.y = [None]*n               # Where is the queen in column x
    23         self.row = [0]*n                # Is row[y] safe?
     22        self.y = [None] * n             # Where is the queen in column x
     23        self.row = [0] * n              # Is row[y] safe?
    2424        self.up = [0] * (2*n-1)         # Is upward diagonal[x-y] safe?
    2525        self.down = [0] * (2*n-1)       # Is downward diagonal[x+y] safe?
     
    5151        self.down[x+y] = 0
    5252
    53     silent = 0                          # If set, count solutions only
     53    silent = 0                          # If true, count solutions only
    5454
    5555    def display(self):
Note: See TracChangeset for help on using the changeset viewer.