
Python cookbook
by edited by Alex Martelli, Anna Martelli Ravenscroft, and David Ascher
Get this book
About this book
Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. It is now being used by an increasing number of major organizations, including NASA and Google. Updated for Python 2.4, The Python Cookbook, 2nd Edition offers a wealth of useful code for all Python programmers, not just advanced practitioners. Like its predecessor, the new edition provides solutions to problems that Python programmers face everyday. It now includes over 200 recipes that range from simple tasks, such as working with dictionaries and list comprehensions, to complex tasks, such as monitoring a network and building a templating system. This revised version also includes new chapters on topics such as time, money, and metaprogramming. Here's a list of additional topics covered: Manipulating text; Searching and sorting; Working with files and the filesystem; Object-oriented programming; Dealing with threads and processes; System administration; Interacting with databases; Creating user interfaces; Network and web programming; Processing XML; Distributed programming; Debugging and testing. Another advantage of The Python Cookbook, 2nd Edition is its trio of authors---three well-known Python programming experts, who are highly visible on email lists and in newsgroups, and speak often at Python conferences. With scores of practical examples and pertinent background information, The Python Cookbook, 2nd Edition is the one source you need if you're looking to build efficient, flexible, scalable, and well-integrated systems.
Tags
Select a tag to vote for it. Select it again to remove your vote. The number on a tag is how many readers voted for it. Search and Discover show this book under a tag when the tag comes from its published information, or when three readers vote for it. Only readers who have the book on their Currently Reading or Finished shelf count toward those three.
Moods
Vibes
Pace
What do these tags mean?
Moods
- Cozy:
- Low-jeopardy warmth: small stakes, a safe community, danger kept mostly off the page. A village mystery or a small-town romance qualifies; a tense thriller in a charming setting does not.
- Adventurous:
- A journey, quest, voyage or exploration drives the book; physical action and new places are central.
- Emotional:
- Grief, loss or hardship rendered so that moving the reader is the point of the book. Not for a book that merely has feelings in it.
- Dark:
- Bleak, disturbing or morally grim; cruelty, despair or violence are dwelt on, not passed over.
- Hopeful:
- Moves toward light: recovery, resilience, repair, things getting better by the end.
- Romantic:
- A romance between characters is a central thread, whether or not sex appears on the page.
- Funny:
- Written for laughs; comedy, satire or wit is a primary register.
- Spicy:
- Explicit sex is depicted on the page, in detail. Closed-door, fade-to-black or tension without depiction is romantic, not spicy.
Vibes
- Beach Read:
- Light, propulsive holiday reading.
- Page Turner:
- Hard to put down: short chapters, constant hooks.
- Literary:
- Prose style and form are themselves a point of the book.
- Thought-provoking:
- Poses ideas or questions the reader carries away.
- Atmospheric:
- A strong sense of place or mood; the setting is immersive.
- Character-driven:
- Interior lives and relationships propel the story: the book's engine is people.
- Plot-driven:
- Events, twists and momentum propel the story: the book's engine is what happens.
- Slow Burn:
- Tension, romantic or otherwise, builds gradually.
- Epic:
- Sweeping scope: a large cast, high stakes, a saga or several generations.
- Comfort Read:
- A gentle, reassuring, low-stakes reading experience. Cozy is about the story's stakes; comfort-read is about how the book feels to read.
Pace
- Slow:
- Unhurried: the book lingers on description, interior thought or daily detail, and plot events are far apart.
- Medium:
- Neither rushed nor lingering: the story moves steadily, with room for scene-setting and reflection.
- Fast:
- Events come quickly: short scenes, frequent turns, little time spent between them.
Content warnings
No content warnings are listed. That does not mean the book has none: the published information about it often leaves them out.
Tags and content warnings come from published information about the book and from readers. They can be wrong or incomplete.
Is a tag or warning wrong?
Report one that does not fit
Pick a tag or a content warning that does not fit this book.
Add a content warning
Pick one this book should have. Yours shows on the book once it is added.





