Main      Site Guide    
Message Forum
Re: Polls for Dummies
Posted By: Sam, on host 24.61.194.240
Date: Saturday, June 8, 2002, at 07:34:32
In Reply To: Re: Polls for Dummies posted by uselessness on Saturday, June 8, 2002, at 06:36:09:

> Now, I don't know anything about "try/except/finally," "raise,"

These are all for error handling. "Raise" throws an exception, which sends an error code back to the caller of the function/method to indicate that something failed. You put calls to methods that throw exceptions in a "try" block, and the "except" block that follows a "try" block is what gets executed if an exception is caught. You can have multiple "except" blocks, one for each kind of exception that might be thrown. A "finally" block is what gets executed if and after ANY except block is executed.

> "break," or "continue."

"break" jumps out of a while or for loop. "continue" jumps back up to the top of it.

Replies To This Message

Post a Reply

RinkChat Username:
Password:
Email: (optional)
Subject:
Message:
Link URL: (optional)
Link Title: (optional)

Make sure you read our message forum policy before posting.