Re: Python CGI Script

2005-10-02 Thread Ivan Herman
Efrat, I am afraid a CGI script is never *executed* by the browser. Instead, it sends the URL to a server, expects the server to execute the script, and display the server's response. If you just put a file name then (it seems, I never even tried that) Firefox uses the local file store as a 'serve

PIL question: keeping metadata

2005-06-29 Thread Ivan Herman
A question on using the PIL library. If I take a jpg file then, say, resize it and save it somewhere else, all metadata that is part of the jpg file is lost. This is a pity: digital cameras routinely add metainformation, so does, for example, Photoshop. Is there any way of keeping this info in P

Re: Using XML w/ Python...

2005-12-11 Thread Ivan Herman
Look at the standard python library reference http://docs.python.org/lib/dom-example.html the handleSlide function almost does what you want, except that you should use 'parse' and not 'parseString'. Original Message From: "Jay" <[EMAIL PROTECTED]> To: Subject: Re:Using XML w

Re: suppress pyc generation

2005-12-25 Thread Ivan Herman
There is a simple, though slightly ugly trick: if the directory where the python module resides, is not writable to the python process, the python runtime will silently ignore .pyc generation (as far as I know). It is not elegant, but it works... Ivan Original Message From: "Edd

Re: suppress pyc generation

2005-12-25 Thread Ivan Herman
There is a simple, though slightly ugly trick: if the directory where the python module resides, is not writable to the python process, the python runtime will silently ignore .pyc generation (as far as I know). It is not elegant, but it works... Ivan Original Message From: "Edd

Re: PyXML: SAX vs. DOM

2006-01-21 Thread Ivan Herman
Original Message From: Matthias Kaeppler <[EMAIL PROTECTED]> To: Subject: Re:PyXML: SAX vs. DOM Date: 20/1/2006 21:26 > Oh and: > Where can I find an API reference for PyXML? Am I supposed to /guess/ > which methods and attributes e.g. Sax2 supplies? :D > > Thanks again, > Matth

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Ivan Herman
I would certainly look at *all details* of the announcement, including the second line from the top which gives the date:-) Ivan Caleb Hattingh wrote: > WAIT- > > Did I just get caught by an April Fools Joke? > > I have a nasty feeling about this :)) > > C > -- http://mail.python.org/mailma

Re: how to print without blank?

2006-04-08 Thread Ivan Herman
Ju Hui wrote: > I want to print 3 numbers without blank. for x in range(3): > ... print x > ... > 0 > 1 > 2 for x in range(3): > ... print x, > ... > 0 1 2 > > how to print > 012 > ? > > thanks. > You may want to use the write command with stdout: sys.stdout.write("%s