Mark Dickinson <dicki...@gmail.com> added the comment: -1. str.format already does this quite effectively; I don't see a real need to complicate the bin, hex and oct signatures.
>>> '{:016b}'.format(324) '0000000101000100' >>> '{:016o}'.format(324) '0000000000000504' >>> '{:016x}'.format(324) '0000000000000144' ---------- nosy: +mark.dickinson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14694> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com