Two more last minute changes from PEPs
"Mark Hahn" <[email protected]> Sun, 18 Jul 2004 12:56:33 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
I'm adding two more changes I've gleaned from Python PEPs. I hope I'm done adding things. The final list is: http://prothon.org/wiki?pagename=OnePtZeroIndex The first is a small change but very important. It is the use of a main_() function in modules like C language does. This replaces the old convention of testing to see if the module has been loaded as main. This is not only cleaner, but it allows a script to load a module and run it. http://prothon.org/wiki?pagename=MainFunction This proposal simply states that a generator will guarantee that a yield in a try/finally block will always work and call the finally block no matter what. http://prothon.org/wiki?pagename=YieldFinallyReliability P.S. Sorry about the partial posting before. Sometimes when I'm typing away furiously, outlook express posts my message. Obviously I'm bumping a key combination to send, but I don't know what it is.