Welcome to Sunless-Sea The future exists first in the imagination, then in the will, then in reality.
Google
Entire Web sunless-sea.net
xanadu.net udanax.com
FrontEnds News MailGate
 public CVS
 rdf export
 home

SITENAV
 meetings
 what's new?
 whiteboards
 post article
 frontpage
 downloads

ORIENTATION
 legalisms
 history
 glossary
 participants

BACK-ENDS
 udanax-green
 udanax-gold

ALGORITHMS
 coordspaces
 enfilade
 ent

OLD MANUALS
 XIA

HELPING
 puzzles
 needs
 funding
Like the site? Click to donate!

 site-traffic
 admin


Patch of x88.strl for newer Pythons

MailGate Posted by Aaron Bingham on Thu Apr 10 08:31AM CDT 2003
from the udanax mailing list dept.


--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hi,

The behavior of str(longnum) seems to have changed between Python 1.5
(for which Pyxi was written) and Python 2.1. The result is that, with
newer Pythons, the least significant digit is clipped from each
component of the string representation of an Address. Pyxi fails
attempting to open the first document, since it requests the document
at '.....', which is of course nonesense.

This patch fixes the problem for newer Pythons, while trying to be
backward compatible. I have not tested this with Python 1.5, though,
so be warned.

--

Aaron Bingham
abingham@sfu.ca

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="strl_py2_1.patch"

--- x88.py.old Thu Apr 10 15:18:00 2003
+++ x88.py Thu Apr 10 15:19:54 2003
@@ -82,7 +82,10 @@
# ----------------------------------------------------------------- TumblerD
def strl(longnum):
"""Convert a long integer to a string without the trailing L."""
- return str(longnum)[:-1]
+ strval = str(longnum)
+ if strval[-1] not in string.digits:
+ return strval[:-1]
+ return strval

class TumblerD:
"""A numbering system that permits addressing within documents

--OXfL5xGRrasGEqWY--


<  'Newbie' questions   |   Re: Forum for bugs/patches  >

 

( Reply )

Good site for a fake diploma, fake degree http://w
by Sofia on Thu May 15 13:14PM CDT 2003
Anybody know where I could get a high quality fake diploma, fake diplomas, fake degree etc?

Ive heard of the site called http://www.bestfakediploma.com

Are they for real and what are their prices?

Sofia

[ Reply to this ]

 
( Reply )

Related Links
Articles re MailGate
Also by Aaron Bingham

Reading List
As We May Think, 1945 Vannevar Bush
Augmenting Human Intellect:A Conceptual Framework, 1962 Doug Engelbart
Literary Machines, 1981, 87, 93 Ted Nelson
Engines of Creation, Chapter 14 The Network of Knowledge, 1986, 87 K. Eric Drexler
Hypertext Publishing and the Evolution of Knowledge, 1986 K. Eric Drexler
SF:EarthWeb, 1999 Marc Stiegler

Quick Links
www.udanax.com
www.xanadu.com
www.xanadu.com.au
Udanax List Archive
Xanadu® List Archive

All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jeff Rush.