A Python cheat sheet for those of us who do(coffeeghost.net)
coffeeghost.net
A Python cheat sheet for those of us who do
http://coffeeghost.net/pybat/python_cheatsheet.png
5 comments
Pretty disappointing.
I run/host a community of Python new entry-level scripters. This seems perfect for them to see so they'll understand a little more about what they're seeing.
I'd welcome any other cheat sheets which you prefer, though. I was actually impressed at the clarity of this one because it's covered a lot of concepts that literally took a few forum posts to clarify for newbies.
I'd welcome any other cheat sheets which you prefer, though. I was actually impressed at the clarity of this one because it's covered a lot of concepts that literally took a few forum posts to clarify for newbies.
Not a bad reference for newbies, but this lacks some important things (dictionaries, tuples, list comprehensions, lambdas etc.). Also, the arrow-style explanations don't lend well to a quick-search reference.
Isn't using a "main" function a C-ism? I have never heard of such a convention when programming in Python.
Is there one? Does the BDFL know about it?
Is there one? Does the BDFL know about it?
No, it's actually used. In this article the creator of Python talks about it:
http://www.artima.com/weblogs/viewpost.jsp?thread=4829
it's missing 'pass' which is essential if you wish for automatic indentation to work properly