Re: [Python-Dev] PEP 3188: Implementation Questions

2010-03-03 Thread David Cournapeau
On Fri, Feb 26, 2010 at 1:51 PM, Meador Inge wrote: > Hi All, > > Recently some discussion began in the issue 3132 thread > (http://bugs.python.org/issue3132) regarding > implementation of the new struct string syntax for PEP 3118.  Mark Dickinson > suggested that I bring the discussion on over to

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-03-02 Thread Mark Dickinson
On Sun, Feb 28, 2010 at 1:39 AM, Greg Ewing wrote: > Meador Inge wrote: > >> Even with the user-defined precision capabilities of the 'Decimal' class? >>  In other words, can I create an instance of a 'Decimal' that behaves (in >> all operations: arithmetic, comparison, etc...) exactly as the exte

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-03-02 Thread Mark Dickinson
On Fri, Feb 26, 2010 at 4:51 AM, Meador Inge wrote: > > Recently some discussion began in the issue 3132 thread > (http://bugs.python.org/issue3132) regarding > implementation of the new struct string syntax for PEP 3118.  Mark Dickinson > suggested that I bring the discussion on over to Python D

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-03-01 Thread Meador Inge
On Sat, Feb 27, 2010 at 11:20 AM, Thomas Heller wrote: > See issue 887237: > > http://bugs.python.org/issue887237 > Thanks for the link Thomas. Since there is already interest in adding arithmetic to ctypes, perhaps that is an option. One question that raises in my mind, though, is should only

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-27 Thread Greg Ewing
Meador Inge wrote: Even with the user-defined precision capabilities of the 'Decimal' class? In other words, can I create an instance of a 'Decimal' that behaves (in all operations: arithmetic, comparison, etc...) exactly as the extended double precision type offered by a given machine? It'

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-27 Thread Thomas Heller
Meador Inge schrieb: > On Fri, Feb 26, 2010 at 4:08 PM, Greg Ewing > wrote: > >> Meador Inge wrote: >> >> 3. Using Decimal keeps the desired precision, >>> >> >> Well, sort of, but then you end up doing arithmetic in >> decimal instead of binary, which could give different >> results. >> > > Ev

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-27 Thread Meador Inge
On Fri, Feb 26, 2010 at 4:08 PM, Greg Ewing wrote: > Meador Inge wrote: > > 3. Using Decimal keeps the desired precision, >> > > Well, sort of, but then you end up doing arithmetic in > decimal instead of binary, which could give different > results. > Even with the user-defined precision capabi

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-26 Thread Greg Ewing
Meador Inge wrote: 3. Using Decimal keeps the desired precision, Well, sort of, but then you end up doing arithmetic in decimal instead of binary, which could give different results. Maybe the solution is to give ctypes long double objects the ability to do arithmetic? -- Greg __

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-25 Thread Thomas Heller
Meador Inge schrieb: > Hi All, > > Recently some discussion began in the issue 3132 thread ( > http://bugs.python.org/issue3132) regarding > implementation of the new struct string syntax for PEP 3118. Mark Dickinson > suggested that I bring the discussion on over to Python Dev. Below is a > sum

Re: [Python-Dev] PEP 3188: Implementation Questions

2010-02-25 Thread Glenn Linderman
On approximately 2/25/2010 8:51 PM, came the following characters from the keyboard of Meador Inge: Hi All, Recently some discussion began in the issue 3132 thread (http://bugs.python.org/issue3132) regarding implementation of the new struct string syntax for PEP 3118. Mark Dickinson suggeste