Re: Routine
- Posted by euphoric (admin) Apr 09, 2009
- 1146 views
jeremy said...
create_directory("john_doe") fh = open("john_doe/hello.txt", "w")
Ug! This avoids handling the error. Now, there are valid times when you can safely ignore a functions result, but in general it's a bad practice.
It's probably not worth the time and effort to code it. Maybe I've forgotten something I once knew about it... Is there a pros/cons list?