[Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-24 Thread Panagiotis Atmatzidis
Hello, I am writing a function in order to check if a directory exists. If exists the functions must do nothing, otherwise must check the users permissions and if it's possible create the dir. Looking at pydoc's httpd I found the module os and the function access. From the http-doc: access(...)

Re: [Tutor] Learning books

2005-12-24 Thread Alan Gauld
Okay, so I have been reading some of the tutorials around the net on Python. great stuff I might add but I am getting all confused with the TCL, xwwidgets etc. I want to be able to program and I am just using the standard IDE that comes with Python. Am I on the right track? Yes, when

Re: [Tutor] Input checking [letters or numbers]

2005-12-24 Thread Alan Gauld
Another newbe question! I use while True: to evaluate an expression, I see that you used while 1: .. what's the diffrence if any?! Python only provided boolean literal values (True, False) relatively recently. Long time Python programmers, especially those with a C background(*) are used to

Re: [Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-24 Thread bob
At 05:20 AM 12/24/2005, Panagiotis Atmatzidis wrote: Hello, I am writing a function in order to check if a directory exists. If exists the functions must do nothing, otherwise must check the users permissions and if it's possible create the dir. Looking at pydoc's httpd I found the module os and

[Tutor] Printing

2005-12-24 Thread John Corry
Hi + Season's Greetings! I have put together a program that queries and modifies a Gadfly database. I have captured my output. I now want to print it to paper. I have written the output to a text file. I have searched the tutor mailing list and used the mailing list advice to get my data

Re: [Tutor] Printing

2005-12-24 Thread Danny Yoo
I have downloaded win32, win32com, Preppy and PIL. I have had a go at using them but can't get them to work. At the moment I can't even print the text file. Is there a good helpguide/FAQ page which deals with printing text files or is there simple code which prints a text file? Hi John,

Re: [Tutor] Printing

2005-12-24 Thread Kent Johnson
John Corry wrote: Hi + Season's Greetings! I have put together a program that queries and modifies a Gadfly database. I have captured my output. I now want to print it to paper. I have written the output to a text file. I have searched the tutor mailing list and used the mailing list