Amazon cover image
Image from Amazon.com
Image from Coce
Image from OpenLibrary
Custom cover image
Custom cover image

Better Python code / David Mertz.

By: Material type: TextTextPublisher: Hoboken : Addison-Wesley, 2024Edition: FirstDescription: xxiii, 257 pages : illustrations ; 24 cmContent type:
  • text
Media type:
  • unmediated
Carrier type:
  • volume
ISBN:
  • 9780138320942
Subject(s): LOC classification:
  • QA 76.73 M48 2024
Contents:
Looping over the wrong things Confusing equality with identity A grab bag of Python gotchas Advanced Python usage Just because you can, it doesn't mean you should.. Picking the right data structure Misusing data structures Security Numeric computation in Python
Summary: "Python is one of the most widely used programming languages in the world. It is used everywhere from primary school education to workaday web development, to the most advanced scientific research institutes of the world. However, like all programming languages, Python has a collection of "Pythonic" ways of accomplishing tasks that are easy to overlook, especially when habits are borrowed wholesale from work in other programming languages. This book is a guide to Pythonic programming. The book presents common mistakes that Python developers make--even Python developers who have used the language for years--often because Python sometimes presents "attractive nuisances." Throughout, the book is a guide to better programming in the core Python language. Each section shows a concrete but concise example of some misunderstanding or bad habit in action. Each section contains a description of what is wrong with the sample code and a suggestion for one or more better ways to code equivalent functionality without the initial pitfall. Every pitfall addressed in this book reflects foibles, errors, and misunderstandings that the author as seen in concrete, widely used code bases written by experienced developers, over his 25 years of writing Python"-- Provided by publisher.
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Shelving location Call number Status Date due Barcode
Book Book TUP Manila Library General Circulation Section-GF QA 76.73 M48 2024 (Browse shelf(Opens below)) Available P00034405

Includes bibliographic references and index.

Looping over the wrong things
Confusing equality with identity
A grab bag of Python gotchas
Advanced Python usage
Just because you can, it doesn't mean you should..
Picking the right data structure
Misusing data structures
Security
Numeric computation in Python

"Python is one of the most widely used programming languages in the world. It is used everywhere from primary school education to workaday web development, to the most advanced scientific research institutes of the world. However, like all programming languages, Python has a collection of "Pythonic" ways of accomplishing tasks that are easy to overlook, especially when habits are borrowed wholesale from work in other programming languages. This book is a guide to Pythonic programming. The book presents common mistakes that Python developers make--even Python developers who have used the language for years--often because Python sometimes presents "attractive nuisances." Throughout, the book is a guide to better programming in the core Python language. Each section shows a concrete but concise example of some misunderstanding or bad habit in action. Each section contains a description of what is wrong with the sample code and a suggestion for one or more better ways to code equivalent functionality without the initial pitfall. Every pitfall addressed in this book reflects foibles, errors, and misunderstandings that the author as seen in concrete, widely used code bases written by experienced developers, over his 25 years of writing Python"-- Provided by publisher.

Mertz, D., & Martelli, A. (2024). Better Python code: A guide for aspiring experts. Addison-Wesley.

There are no comments on this title.

to post a comment.



© 2025 Technological University of the Philippines.
All Rights Reserved.

Powered by Koha