This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients PedanticHacker, gvanrossum, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, vstinner
Date 2021-02-18.19:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613675327.43.0.612479740993.issue43255@roundup.psfhosted.org>
In-reply-to
Content
> Anyway, my need for ceiling is that I am coding a chess GUI where I have a table with 2 columns and I create a new row whenever White makes a move. So, my implementation for row creation is math.ceil(len(moves) // 2) where moves is a list of chess moves. 

You may like the new int.bit_count() attribute of Python 3.10 ;-)
https://docs.python.org/dev/library/stdtypes.html#int.bit_count
History
Date User Action Args
2021-02-18 19:08:47vstinnersetrecipients: + vstinner, gvanrossum, tim.peters, rhettinger, mark.dickinson, serhiy.storchaka, PedanticHacker
2021-02-18 19:08:47vstinnersetmessageid: <1613675327.43.0.612479740993.issue43255@roundup.psfhosted.org>
2021-02-18 19:08:47vstinnerlinkissue43255 messages
2021-02-18 19:08:47vstinnercreate