[issue5835] Deprecate PyOS_ascii_formatd

2009-04-27 Thread Eric Smith
Eric Smith added the comment: Checked in for trunk (r71938) and py3k (r71989). -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue5835] Deprecate PyOS_ascii_formatd

2009-04-25 Thread Eric Smith
Eric Smith added the comment: Committed in trunk as r71938. I'll use a slightly different strategy in py3k. -- ___ Python tracker ___

[issue5835] Deprecate PyOS_ascii_formatd

2009-04-25 Thread Eric Smith
Eric Smith added the comment: It makes most sense to name the new 2.7 replacement function to be _PyOS_double_to_string (with a leading underscore). It will be the same as PyOS_double_to_string, except that instead of allocating a buffer and returning it, you will supply it a buffer and a length

[issue5835] Deprecate PyOS_ascii_formatd

2009-04-25 Thread Eric Smith
New submission from Eric Smith : PyOS_ascii_formatd is no longer needed, now that we have PyOS_double_to_string. PyOS_ascii_formatd has a horrible interface, requiring a format string to be composed and then parsed. The format string is a very limited printf-like format string. In 2.7 and 3.1 I'