Re: [Tutor] a question about symbol

2006-06-02 Thread linda.s
On 5/28/06, Bob Gailer <[EMAIL PROTECTED]> wrote: > > linda.s wrote: > When I test the following code, > I got something like (use 80 as argument): > 80?F=27?C > Why '?' appear? > > # code > import string, sys > > # If no arguments were given, print a helpful message > if len(sys.argv)==1: > pri

Re: [Tutor] a question about symbol

2006-06-02 Thread Kent Johnson
linda.s wrote: > On 5/28/06, Bob Gailer <[EMAIL PROTECTED]> wrote: >> linda.s wrote: >> When I test the following code, >> I got something like (use 80 as argument): >> 80?F=27?C >> Why '?' appear? >> >> # code >> print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5)) >> >> On my compute

Re: [Tutor] implementing config files

2006-06-02 Thread Kent Johnson
Tracy R Reed wrote: > I need to implement a config file which will provide hostnames, the > names of checks to run on those hosts, and the options to those checks. > These things are sets which are nested inside each other which we can > think of like nested objects. I could make a dictionary co

Re: [Tutor] implementing config files

2006-06-02 Thread Carroll, Barry
Carlos: Where does one find the objxml module? I have looked on python.org and Google and can't find it. Thanks in advance, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Mes

[Tutor] Trouble with os.path.isfile

2006-06-02 Thread Carroll, Barry
Greetings:   One of the functions of my test system web server program is to allow the user to view the contents of the image file directories and select files to load onto the hardware.  Obviously, a central part of this function is to identify and display the names of directories and fi

Re: [Tutor] Trouble with os.path.isfile

2006-06-02 Thread Carlos Daniel Ruvalcaba Valenzuela
From: Carlos Daniel Ruvalcaba Valenzuela <[EMAIL PROTECTED]> Date: Jun 2, 2006 11:10 PM Subject: Re: [Tutor] Trouble with os.path.isfile To: "Carroll, Barry" <[EMAIL PROTECTED]> Here is the problem IMO: I did some modifications to your code (very minimal on ifs) and it worked: import os def ls