17 Jan
2006
17 Jan
'06
3:44 a.m.
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',1) gives 5? I'm not sure why str has never allowed this obvious use -- any bright beginner assumes it's there and it's awkward to explain why it's not!-). I'll be happy to propose a patch if the BDFL blesses this, but I don't even think it's worth a PEP... it's an inexplicable though long-standing omission (given the argumentative nature of this crowd I know I'll get pushback, but I still hope the BDFL can Pronounce about it anyway;-). Alex
6588
Age (days ago)
6645
Last active (days ago)
134 comments
42 participants
participants (42)
-
"Martin v. Löwis"
-
Aahz
-
Adam Olsen
-
Alex Martelli
-
Andrew Bennetts
-
Andrew Koenig
-
Barry Warsaw
-
Bob Ippolito
-
bokr@oz.net
-
Brett Cannon
-
Donovan Baarda
-
Facundo Batista
-
Fred L. Drake, Jr.
-
Fredrik Lundh
-
Gareth McCaughan
-
Gisle Aas
-
Guido van Rossum
-
Gustavo J. A. M. Carneiro
-
Ian Bicking
-
Jack Diederich
-
James Y Knight
-
Jason Orendorff
-
Jean-Paul Calderone
-
Jeremy Hylton
-
Josiah Carlson
-
M.-A. Lemburg
-
mattheww@chiark.greenend.org.uk
-
Michael Hudson
-
Neal Norwitz
-
Nick Coghlan
-
Nick Craig-Wood
-
Paul Svensson
-
Raymond Hettinger
-
Raymond Hettinger
-
Scott David Daniels
-
Shane Holloway (IEEE)
-
skip@pobox.com
-
Stephen J. Turnbull
-
Steve Holden
-
Steven Bethard
-
Thomas Wouters
-
Tim Peters