News for hackers. Stuff that matters.
Re:N-Queen Problem: Python 2.6.5 vs PyPy 1.5.0 by dzorz on Sunday May 29, 2011 @04:55PM (#2597574)
next_permutation is in standard library (header algorithm).
Re:N-Queen Problem: Python 2.6.5 vs PyPy 1.5.0 by makmanalp on Sunday May 29, 2011 @07:18PM (#2597897)
For the curious, STL <algorithm> is one of those things that you wish you knew ages ago. Usually my code is much cleaner after I run through it and replace relevant parts of it with STL stuff.

http://www.cplusplus.com/reference/algorithm/