News for hackers. Stuff that matters.
Re:A Python cheat sheet for those of us who do by pistoriusp on Tuesday March 11, 2008 @06:59PM (#134711)
Pretty disappointing.
Re:A Python cheat sheet for those of us who do by thorax on Tuesday March 11, 2008 @11:09PM (#134866)
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.

Re:A Python cheat sheet for those of us who do by tim2 on Tuesday March 11, 2008 @08:05PM (#134755)
Could have at least used a dict.

Makes me want to do one of these now though.

Re:A Python cheat sheet for those of us who do by Kaizyn on Tuesday March 11, 2008 @08:40PM (#134782)
You should; be sure to post the fruits of your efforts online for everyone else.
Re:A Python cheat sheet for those of us who do by mleonhard on Tuesday March 11, 2008 @09:26PM (#134803)
in PDF
Re:A Python cheat sheet for those of us who do by avinashv on Tuesday March 11, 2008 @11:59PM (#134890)
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.
Re:A Python cheat sheet for those of us who do by rbanffy on Wednesday March 12, 2008 @09:16AM (#135105)
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?

Re:A Python cheat sheet for those of us who do by hhm on Wednesday March 12, 2008 @10:48AM (#135146)
No, it's actually used. In this article the creator of Python talks about it: http://www.artima.com/weblogs/viewpost.jsp?thread=4829
Re:A Python cheat sheet for those of us who do by miratom on Tuesday March 11, 2008 @05:37PM (#134651)
...and for those who have never seen a programming language ever. Do they really need arrows that point to comments that say, "This is a comment"?
Re:A Python cheat sheet for those of us who do by jsmcgd on Tuesday March 11, 2008 @07:15PM (#134721)
They don't need to but it succinctly highlights the fact that there are two different ways of commenting code in Python.
Re:A Python cheat sheet for those of us who do by anon on Wednesday March 12, 2008 @07:24AM (#135061)
it's missing 'pass' which is essential if you wish for automatic indentation to work properly