Re: Routine

new topic     » goto parent     » topic index » view thread      » older message » newer message
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?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu