Is there any online resource or a book that provides common code snippets? I really like the "Python Phrasebook", but it doesn't cover Python 3.1.
I'd appreciate your comments and advices. Thanks!
Is there any online resource or a book that provides common code snippets? I really like the "Python Phrasebook", but it doesn't cover Python 3.1.
I'd appreciate your comments and advices. Thanks!
The Python Cookbook (also available in book form -- more date but with lots of selection, editing, expanded discussion, etc -- I'm biased towards the latter of course) may be similar to what you ask, except it doesn't just provide "snippets", but also explanations of the problems being tackled, discussion of alternatives, explanations of why one approach may be preferable to another, and so on.
If you are starting out in Python development, it may be a good idea to start with Python 2.5 or 2.x (x being the latest version). This is because Python 3.x is not backwards compatible with 2.x version and you are better of learning the fundamentals from 2.x and then learning whats different in 3.x.
You might like Dive Into Python 3. It's an online book that has lots of useful snippets.