Re: [Python-Dev] Is anyone porting PyNumber_ToBase to trunk?

2008-01-24 Thread Guido van Rossum
On Jan 24, 2008 12:40 PM, Eric Smith <[EMAIL PROTECTED]> wrote: > The spreadsheet notes a possible __future__ statement requirement for > oct(). The PEP doesn't mention this, and I'm not sure I understand the > issue. Any clues? You can't change the default oct() to return '0o123'; but perhaps y

Re: [Python-Dev] Is anyone porting PyNumber_ToBase to trunk?

2008-01-24 Thread Eric Smith
Guido van Rossum wrote: > On Jan 23, 2008 7:40 AM, Eric Smith <[EMAIL PROTECTED]> wrote: >> In 3.0, the code to implement long.__format__() calls PyNumber_ToBase to >> do the heavy lifting. If someone is planning on implementing >> PyNumber_ToBase in 2.6, I'll wait for them to do so. If not, I gu

Re: [Python-Dev] Is anyone porting PyNumber_ToBase to trunk?

2008-01-23 Thread Guido van Rossum
On Jan 23, 2008 7:40 AM, Eric Smith <[EMAIL PROTECTED]> wrote: > In 3.0, the code to implement long.__format__() calls PyNumber_ToBase to > do the heavy lifting. If someone is planning on implementing > PyNumber_ToBase in 2.6, I'll wait for them to do so. If not, I guess > I'll either do it mysel

[Python-Dev] Is anyone porting PyNumber_ToBase to trunk?

2008-01-23 Thread Eric Smith
In 3.0, the code to implement long.__format__() calls PyNumber_ToBase to do the heavy lifting. If someone is planning on implementing PyNumber_ToBase in 2.6, I'll wait for them to do so. If not, I guess I'll either do it myself, or hack around it. Is this on anyone's To Do list? I don't see