Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:
One other thought on the docs. I would like to continue the style of supplying pure python equivalents to help precisely explain what a function does (see the itertools docs for an example, also a few builtins are explained that way and namedtuples too): + Equivalent to:: + + def numbits(x): + 'Number of binary bits necessary to represent the integer n' + return len(bin(x).lstrip('-0b')) _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com