Re: "Strong typing vs. strong testing"

2010-10-04 Thread salil
On Sep 30, 1:38 pm, Lie Ryan wrote: > The /most/ correct version of maximum() function is probably one written > in Haskell as: > > maximum :: Integer -> Integer -> Integer > maximum a b = if a > b then a else b > > Integer in Haskell has infinite precision (like python's int, only > bounded by me

Streaming files from python cgi

2007-09-27 Thread Salil Kulkarni
necessary application. However, I am not able to figure out how this can be done. The code looks as follows: #!/usr/local/python2.1/bin/python import Path, cgi, sys, os from ftplib import FTP print "content-type: application/pdf\n\n" ftp = FTP("hostname&quo

Help regarding XML file manipulation

2010-05-25 Thread Salil GK
Hello I need to make a quick prototype to process some xml file. I found xml.dom.minidom much handy and I can get information from the xml file. But I need to update a filed in the xml file and save the file. I couldn't find a way to do that. Could some one please help me on this. Basically thi