Re: "also" to balance "else" ?

2005-06-13 Thread Terry Hancock
On Monday 13 June 2005 11:09 pm, Ron Adam wrote: > John Roth wrote: > > "Ron Adam" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > The difficulty you're having with this is that else > > is a very bad keyword for this particular construct. > > I'd prefer something like "on norm

Which Python Wiki engine?

2005-06-13 Thread Kenneth McDonald
I'm looking for a Wiki engine to set up for my company, so that we can incrementally add user documentation for a fairly complex program, plus allow users to add their own comments for the benefit of others. I'd strongly prefer a Python-based Wiki, since that allows me the chance to add plu

Re: "also" to balance "else" ?

2005-06-13 Thread Ron Adam
Andrew Dalke wrote: > Ron Adam wrote: > >>It occurred to me (a few weeks ago while trying to find the best way to >>form a if-elif-else block, that on a very general level, an 'also' >>statement might be useful. So I was wondering what others would think >>of it. > > >>for x in : >>BLOC

Re: "also" to balance "else" ?

2005-06-13 Thread Ron Adam
Terry Hancock wrote: > On Monday 13 June 2005 11:09 pm, Ron Adam wrote: >>My suggestion is to use, also as the keyword to mean "on normal exit" >>'also' do this. > > > Unfortunately, "also" is also a bad keyword to use for this, IMHO. > I don't find it any more intuitive than "else". (And sin

Re: ElementTree Namespace Prefixes

2005-06-13 Thread Fredrik Lundh
Oren Tirosh wrote: > It all boils down to how you define "the same". Which parts of the XML > document are meaningful content that needs to be preserved and which > ones are mere encoding variations that may be omitted from the internal > representation? > > Some relevant references which may be u

stuck in cgi-image mess

2005-06-13 Thread nephish
i have an html form with a drop-down list that lists a bunch of images. how can i get my cgi script to load the image ? i have imported cgi and os text entered from a form and read from a file do ok, but i cant seem to get it to load an image. the form writes all of the entries as lines in a .txt

Re: \r\n or \n notepad editor end line ???

2005-06-13 Thread Fredrik Lundh
John Machin wrote: > Many people don't appear to want to know why; they only want a solution > to what they perceive to be their current problem. and many people can identify a short HOWTO when they see it, and look things up in the documentation when they want the full story. reposting the docu

regarding cgi

2005-06-13 Thread praba kar
Dear All, I have doubt regarding headers in cgi programming. If I gives "Content-Type:text/plain" then I try to print html contents. Is right or wrong after giving content-type: text/plain? regards Prabahar ___

Re: Tiff Image Reader/writer

2005-06-13 Thread Fredrik Lundh
"PyPK" wrote: > nothing fancy. I just want to be able to read a tiff image, get pixel > values, write back to a tiff file. so why doesn't PIL or ImageMagick work for you? here's a minimal PIL version: from PIL import Image im = Image.open("myfile.tiff") value = im.getpixel((12, 34)

Re: regarding cgi

2005-06-13 Thread Fredrik Lundh
"praba kar" wrote: > I have doubt regarding headers in cgi > programming. If I gives "Content-Type:text/plain" > then I try to print html contents. Is right or wrong > after giving content-type: text/plain? if you expect the HTML contents to appear as HTML, it's wrong. (some web bro

Re: "also" to balance "else" ?

2005-06-13 Thread Donn Cave
Quoth Ron Adam <[EMAIL PROTECTED]>: | ... The current for-else | is IMHO is reversed to how the else is used in an if statement. Is that all? As a matter of opinion, this one is fairly simply an arbitrary choice to assign a positive sense to completion of the loop predicate. For search loops, f

<    1   2   3