[issue2813] No float formatting in PyString_FromFormat

2012-10-28 Thread Mark Dickinson

Mark Dickinson added the comment:

Okay, I've failed to take this forward.  Reclosing as out of date.

--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2011-11-19 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2010-07-19 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Jean may have no interest in moving this forward, but I do.  (Which is why I 
assigned the issue to me.)

--
resolution: out of date - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Jean, do you intend taking this issue any further or can it be closed?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I'll take a look at this.

--
assignee:  - mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Jean Brouwers

Jean Brouwers mrje...@gmail.com added the comment:

Mark L,

No, I do not intend to take this issue further.  Rather the opposite, it should 
probably be paired down based on the recent comments.  Specifically, use 
PyOS_double_to_string, remove support for long double and perhaps more.

Also, the patches I created are more than 2 years old and will need to be 
updated against the current stringobject.c code.  There are quite a few changes 
in the 2.7 version of that file since early 2.6.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2010-07-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closing as Jean has no interest in keeping it open.

--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2009-05-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I also think it would be good to use PyOS_double_to_string here.  That
does make it impossible to format long doubles, though, except by doing
a possibly lossy conversion to double first.

As far as I can see, Python doesn't use long double anywhere outside the
ctypes module, so I'm not sure that long double support really matters
right now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2009-05-11 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
nosy: +eric.smith
priority:  - normal
stage:  - patch review
versions: +Python 2.7, Python 3.2 -Python 2.1.1, Python 2.1.2, Python 2.2, 
Python 2.2.1, Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, 
Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-24 Thread Jean Brouwers

Jean Brouwers [EMAIL PROTECTED] added the comment:

Here is another patch for PyString_FromFormat* adding support for 'l' and 
'z' type specifications for the '%x' format and an optional '#' to prepend 
'0x' to the hex result.  In addition, the '%p' format is handled as '%#x'.

Updates for the c-api tests and the documentation for exceptions and 
string are also included in the patch.

Like before, the patch is a forward delta to the files of Python 2.6b1.

Added file: http://bugs.python.org/file10720/stringobject_format_xLf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-23 Thread Jean Brouwers

Jean Brouwers [EMAIL PROTECTED] added the comment:

The tests for PyString_FromFormat are in file Modules/_testcapimodule.c.

Attached is yet another update of the patch, this one also includes 3 
tests for the new %f format specification added to file 
Modules/_testcapimodule.c.

Added file: http://bugs.python.org/file10706/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-23 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10705/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers

Jean Brouwers [EMAIL PROTECTED] added the comment:

Attached is another patch for file Objects/stringobject.c(relative to 
Python 2.6b1) which supports the double %f and long double %LF formats.  

However, %Lf is included only if symbol  LDBL_DIG is defined in header 
file float.h on the underlying platform.

This patch also handles the long and size_t flags correctly in the first 
loop to determine the size of the buffer under
...
case 'd': case 'u': case 'i': case 'x':
...

Btw, it does not make sense to handle float since there is not formnat 
specification for floats.

Added file: http://bugs.python.org/file10702/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10702/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10703/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Facundo Batista

Facundo Batista [EMAIL PROTECTED] added the comment:

Jean, you can increase *hugely* the possibility of this being accepted
if you submit a comprehensive suite test for this.

Thanks!!

--
nosy: +facundobatista

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers

Jean Brouwers [EMAIL PROTECTED] added the comment:

Another rev of the patch now including updates to 2 documentation files: 
Doc/c-api/exceptions.rst and Doc/c-api/string.rst.  As before the patch is 
relative to the source of Python 2.6b1.

Where should test cases for the new formats in the PyString_FromFormat* 
and PyErr_Format functions be added?

Added file: http://bugs.python.org/file10705/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10703/stringobject_format_Lf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Ricardo Quesada

Ricardo Quesada [EMAIL PROTECTED] added the comment:

Do you expect to have support for float, double and long double ?
Also, do you expect to have support for precision-modifiers ?

--
nosy: +riq

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread duane Bailey

duane Bailey [EMAIL PROTECTED] added the comment:

Well, precision modifiers would be nice, but I don't think that they're
necessarily needed. General floating point support, however, is needed.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers

Jean Brouwers [EMAIL PROTECTED] added the comment:

Attached is a patch attempting to provide support for %f with precision in 
PyString_FromFormat* based on file Objects/stringobject.c of Python 2.6b1.

Note, only %f is support but %lf is not and silently ignored.

--
keywords: +patch
nosy: +MrJean1
Added file: http://bugs.python.org/file10696/stringobject_format_f.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10696/stringobject_format_f.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-06-21 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10697/stringobject_format_f.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2813] No float formatting in PyString_FromFormat

2008-05-10 Thread duane Bailey

New submission from duane Bailey [EMAIL PROTECTED]:

There appears to be most of the formatting options in the *printf 
family... except for the obvious %f. Why is this crucial option missing?

--
components: Extension Modules, Interpreter Core
messages: 66586
nosy: duaneb
severity: normal
status: open
title: No float formatting in PyString_FromFormat
type: feature request
versions: Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, 
Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com