[Python-Dev] str with base

Raymond Hettinger python at rcn.com
Tue Jan 17 04:54:47 CET 2006


> Is it finally time in Python 2.5 to allow the "obvious" use of, say,
> str(5,2) to give '101', just the converse of the way int('101',2)
> gives 5? 

+1

The only downside is that like list.reverse(), it will deprive students
of being assigned to write the roll-your-own version.  


Raymond


More information about the Python-Dev mailing list