Re: Can Python format long integer 123456789 to 12,3456,789 ?

2006-06-02 Thread Warren Block
; arg = prefix + "1234567890.1234"[k:] > print "<%s> <%s>" % (arg, fmt_thousands(arg, ",")) > 8<--- Why not just port the Perl "commify" code? You're close to it, at least for the regex: # From perldoc per

Re: Installation Problem

2006-06-04 Thread Warren Block
iest way is to cvsup your ports tree and then cd /usr/ports/lang/python make make install make clean -- Warren Block * Rapid City, South Dakota * USA -- http://mail.python.org/mailman/listinfo/python-list

Re: Strings for a newbie

2005-05-28 Thread Warren Block
; >> For i = 1 to CountFields(s," ") >> a.append NthField(s," ",i) >> next >> >> That's it an array a() containing the words of the sentence. [snip] > Now a "slim" version: > > s = "This is a sentence of words" >