9780138320942

Better Python Code

Format: Paperback

ISBN13: 9780138320942

Paperback|9780138320942


Overview

Move Beyond Python Code That "Mostly Works" to Code That Is Expressive, Robust, and Efficient

Python is arguably the most-used programming language in the world, with applications from primary school education to workaday web development, to the most advanced scientific research institutes. While there are many ways to perform a task in Python, some are wrong, inelegant, or inefficient. Better Python Code is a guide to "Pythonic" programming, a collection of best practices, ways of working, and nuances that are easy to miss, especially when ingrained habits are borrowed from other programming languages.

Author David Mertz presents concrete and concise examples of various misunderstandings, pitfalls, and bad habits in action. He explains why some practices are better than others, based on his 25+ years of experience as an acclaimed contributor to the Python community. Each chapter thoroughly covers related clusters of concepts, with chapters sequenced in ascending order of sophistication.

Whether you are starting out with Python or are an experienced developer pushing through the limitations of your Python code, this book is for all who aspire to be more Pythonic when writing better Python code.

  • Use the right kind of loops in Python
  • Learn the ins and outs of mutable and immutable objects
  • Get expert advice to avoid Python "gotchas"
  • Examine advanced Python topics
  • Navigate the "attractive nuisances" that exist in Python
  • Learn the most useful data structures in Python and how to avoid misusing them
  • Avoid security mistakes
  • Understand the basics of numeric computation, including floating point numbers and numeric datatypes

"My high expectations for this engaging Python book have been exceeded: it offers a great deal of insight for intermediate or advanced programmers to improve their Python skills, includes copious sharing of precious experience practicing and teaching the language, yet remains concise, easy to read, and conversational."
--From the Foreword by Alex Martelli

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.


ISBN-13

9780138320942

ISBN-10

0138320942

Weight

1.04 Pounds

Dimensions

7.10 x 0.48 x 9.25 In

List Price

$49.99

Edition

1st Edition

Format

Paperback

Language

English

Pages

288 pages

Publisher

Addison-Wesley Professional

Published On

2023-11-24



View All Offers

Sort by:

Rows per page:

1–5 of 5

Condition
Seller
Seller Comments
Price
Brand New
Seller details
Alibris
★★★★★

Sparks, NV, USA

Print on demand Trade paperback (US). Glued binding. 288 p.
$49.57

 Free delivery by: 01 Apr 2026

Brand New
Seller details
discount_scientific_books
★★★★★

Sterling Heights, MI, USA

New, US edition. Satisfaction guaranteed! !
$53.00

 Free delivery by: 01 Apr 2026

Brand New
Seller details
discount_scientific_books
★★★★★

Sterling Heights, MI, USA

New, Satisfaction guaranteed! !
$54.68

 Free delivery by: 01 Apr 2026

Brand New
Seller details
discount_scientific_books
★★★★★

Sterling Heights, MI, USA

New Book Original US edition, We Ship to PO BOX Address also.
$54.76

 Free delivery by: 01 Apr 2026


Bookstores.com relies on cookies to improve your experience.