Skip to main content
  • Book
  • © 2017

Pro Python Best Practices

Debugging, Testing and Maintenance

Apress

Authors:

  • Translates best practices of programming to Python programmers
  • Conveys practical coding from debugging, testing, and maintenance perspectives
  • The techniques in this book allow you to solve problems from web development to big data and more

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (17 chapters)

  1. Front Matter

    Pages i-xxvii
  2. Introduction

    • Kristian Rother
    Pages 1-10
  3. Debugging

    1. Front Matter

      Pages 11-11
    2. Exceptions in Python

      • Kristian Rother
      Pages 13-25
    3. Semantic Errors in Python

      • Kristian Rother
      Pages 27-41
    4. Debugging with the Scientific Method

      • Kristian Rother
      Pages 43-54
    5. Debugging with print Statements

      • Kristian Rother
      Pages 55-66
    6. Debugging with Introspection Functions

      • Kristian Rother
      Pages 67-84
    7. Using an Interactive Debugger

      • Kristian Rother
      Pages 85-100
  4. Automated Testing

    1. Front Matter

      Pages 101-101
    2. Writing Automated Tests

      • Kristian Rother
      Pages 103-116
    3. Organizing Test Data

      • Kristian Rother
      Pages 117-128
    4. Writing a Test Suite

      • Kristian Rother
      Pages 129-144
    5. Testing Best Practices

      • Kristian Rother
      Pages 145-158
  5. Maintenance

    1. Front Matter

      Pages 159-159
    2. Version Control

      • Kristian Rother
      Pages 161-179
    3. Setting Up a Python Project

      • Kristian Rother
      Pages 181-194
    4. Cleaning Up Code

      • Kristian Rother
      Pages 195-212
    5. Decomposing Programming Tasks

      • Kristian Rother
      Pages 213-229
    6. Static Typing in Python

      • Kristian Rother
      Pages 231-244

About this book

Learn software engineering and coding best practices to write Python code right and error free. In this book you’ll see how to properly debug, organize, test, and maintain your code, all of which leads to better, more efficient coding.

Software engineering is difficult. Programs of any substantial length are inherently prone to errors of all kinds. The development cycle is full of traps unknown to the apprentice developer. Yet, in Python textbooks little attention is paid to this aspect of getting your code to run. At most, there is a chapter on debugging or unit testing in your average basic Python book. However, the proportion of time spent on getting your code to run is much higher in the real world. Pro Python Best Practices aims to solve this problem.




What You'll Learn
  • Learn common debugging techniques that help you find and eliminate errors
  • Gain techniques to detect bugs more easily

Who This Book Is For



Experienced Python coders from web development, big data, and more.




Reviews

“As your Python programs grow, so do your problems: debugging gets harder; the need for well-written tests becomes more urgent; and maintenance issues intrude; bringing the need for a better approach to version control, code organisation, and documentation. Pro Python Best Practices is a neat exploration of all of these topics, which starts by making the case for best practices. … Essential material.” (The MagPi, Issue 59, July, 2017)

Authors and Affiliations

  • Berlin, Germany

    Kristian Rother

About the author

Kristian Rother is a freelance Python developer and trainer with over 30 years of experience.


Bibliographic Information

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access