Shorter way of saying the "finally" keyword

Put your programming skills to the test in these challenges.

Shorter way of saying the "finally" keyword

Post by ghostheadx2 on Tue Apr 14, 2015 12:42 am
([msg=87685]see Shorter way of saying the "finally" keyword[/msg])

So, after reading some of this:

zetcode.com/lang/python/keywords/

I came across the "finally" keyword. This keyword page told me that it is used to clean up resources, or as I understand delete the objects from a continue statement. What's a better for a flashcard for the word "finally?"

Thanks.

Best,

ghostheadx2
ghostheadx2
Contributor
Contributor
 
Posts: 728
Joined: Wed Nov 19, 2014 1:19 am
Blog: View Blog (0)


Re: Shorter way of saying the "finally" keyword

Post by cyberdrain on Wed Apr 15, 2015 6:41 pm
([msg=87719]see Re: Shorter way of saying the "finally" keyword[/msg])

Code always executed after "try:". That is to say, including when that block contains errors and the interpreter would stop right after it.
Free your mind / Think clearly
User avatar
cyberdrain
Expert
Expert
 
Posts: 2160
Joined: Sun Nov 27, 2011 1:58 pm
Blog: View Blog (0)


Re: Shorter way of saying the "finally" keyword

Post by ghostheadx2 on Fri Apr 17, 2015 3:58 pm
([msg=87755]see Re: Shorter way of saying the "finally" keyword[/msg])

That's already a way better answer than I would be able to think of. Thanks. :D
ghostheadx2
Contributor
Contributor
 
Posts: 728
Joined: Wed Nov 19, 2014 1:19 am
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests