; 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
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
;
>> 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"
>