Boštjan Mejak <bostjan.xpe...@gmail.com> added the comment: My hat off to you, Mr. Peters! Your suggestion (len(moves) + 1) // 2 works perfectly and is much more elegant than --0-- len(moves) // 2. :)
Mr. Stinner, in what way would int.bit_count() be beneficial to me? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43255> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com