<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/fixedpoint/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/fixedpoint/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 18 Oct 2002 00:27:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fixedpoint/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Python2.1 compatibility</title><link>https://sourceforge.net/p/fixedpoint/support-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;We're stuck in the Dark Ages (Python 2.1) for the&lt;br /&gt;
moment on our&lt;br /&gt;
database server, but we really admire your&lt;br /&gt;
fixedpoint.py, which&lt;br /&gt;
as released appears to require Python 2.2 or above.&lt;/p&gt;
&lt;p&gt;It seems to work just fine (well at least it passes&lt;br /&gt;
self-test)&lt;br /&gt;
against both python2.1 and python2.2 with the following&lt;br /&gt;
changes:&lt;/p&gt;
&lt;p&gt;--- fixedpoint.py       17 Oct 2002 00:33:31 -0000      1.1&lt;br /&gt;
+++ fixedpoint.py       18 Oct 2002 00:01:34 -0000      1.3&lt;br /&gt;
@@ -152,12 +152,11 @@&lt;br /&gt;
# decimal point.  This only has effect at compile-time.&lt;br /&gt;
DEFAULT_PRECISION = 2&lt;/p&gt;
&lt;p&gt;-class FixedPoint(object):&lt;br /&gt;
+class FixedPoint:&lt;br /&gt;
&amp;amp;quot;&amp;amp;quot;&amp;amp;quot;Basic FixedPoint object class,&lt;br /&gt;
The exact value is self.n / 10**self.p;&lt;br /&gt;
self.n is a long; self.p is an int&lt;br /&gt;
&amp;amp;quot;&amp;amp;quot;&amp;amp;quot;&lt;br /&gt;
-    __slots__ = ['n', 'p']&lt;br /&gt;
def __init__(self, value=0,&lt;br /&gt;
precision=DEFAULT_PRECISION):&lt;br /&gt;
self.n = self.p = 0&lt;br /&gt;
self.set_precision(precision)&lt;br /&gt;
@@ -277,8 +276,6 @@&lt;br /&gt;
elif p &amp;amp;lt; self.p:&lt;br /&gt;
self.n = self._roundquotient(self.n,&lt;br /&gt;
_tento(self.p - p))&lt;br /&gt;
self.p = p&lt;br /&gt;
-&lt;br /&gt;
-    precision = property(get_precision, set_precision)&lt;/p&gt;
&lt;p&gt;def __str__(self):&lt;br /&gt;
n, p = self.n, self.p&lt;/p&gt;
&lt;p&gt;I don't see anything in the documented interface that&lt;br /&gt;
appears to my&lt;br /&gt;
novice eyes to rely on the excised features, and I'm&lt;br /&gt;
wondering if you'd be willing to put up a&lt;br /&gt;
backward-compatible version of this class, or to bless&lt;br /&gt;
our fumble-fingered work with faint praise or at least&lt;br /&gt;
with only moderate scorn.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Dan WIlder &amp;amp;lt;dan@ssc.com&amp;amp;gt;&lt;br /&gt;
Mike Orr &amp;amp;lt;mso@ssc.com&amp;amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 18 Oct 2002 00:27:17 -0000</pubDate><guid>https://sourceforge.net412ef8f430a29fa6363705f795cf03f3e00c2897</guid></item></channel></rss>