Newbie has question that's not exactly Python...

Gary Walker borealis3 at home.com
Mon Apr 2 17:40:05 EDT 2001


But since I'm learning Python, I'd like to post it here, and hope someone
will post some example code in Python...

Background: I'm excited by the object oriented simplicity Python offers; I'm
a Delphi programmer by day, and it's the similar exception handling, object
creating, etc. that I really dig, not to mention PIL, the Python Imaging
Library.  I'm also jazzed by the web, and so Python seemed a natural choice
for a new language to pick up...

Here's the question:

When a web app needs to produce an image, it's usually a trivial task:
simply reference the image in the HTML code, and voila.

How does one go about producing a dynamically generated image? That is to
say, one that didn't exist until the python script ran? I hope I don't have
to save it to some tempfile, and reference *that* in my python code.

Thinking aloud here:
Ideally, one would reference a SCRIPT instead of an image, and the script
would return the image to the, the... page??

Can anyone provide a really simple example of how I'd go about something
like this??

Does this question make sense?? I know what I'm *trying* to say here, but I
might not be succeeding at saying it... :)

TIA,

Gary Walker





More information about the Python-list mailing list