New to Python and coding in general...
I've been following the google app engine getting started tutorial and video and saw some things I'm not sure about....
First of all, the dude typed this in at the top (first line)...
It doesn't seem to be necessary (everything works w/o it), and I've read that it has something to do w/ grabbing the python interpreter no matter where it is on someones system in Linux/BSD OS's... or something. Is it just habit on his part?... or is it good for the rest of us to do this for when our apps get put up on the google system?? could it hurt... cause errors?
Next are these things...
used like this:
self.response.out.write('<b>%s</b> wrote:' % greeting.author.nickname())
[('/', MainPage),('/sign', Guestbook)]
And last, this if statement at the bottom also doesn't seem to have any effect on the code... the main function executes w/o it... so why put it? is it good practice?
Still trying to get my head around this stuff and if anyone can help clear up my confusion it'd be appreciated!
if __name__ == "__main__":