Subscribe
Tutorial search

Testing in Python using doctest - Python tutorial


In this article by Greg Lee Turnquist, author of Python Testing Cookbook, we will cover: •Coding a test harness for doctest •Filtering out test noise •Testing the edges •Testing corner cases by iteration •Getting nosy with doctest
Category: Python tutorials - Difficulty:


More cool Python tutorials:



Mod_python Tutorial
Mod_python Tutorial
Apache processes requests in phases. A handler is a function that processes a particular phase of a request. Handlers are provided by Apache and by its modules, like mod_python.


A number of handlers are available in mod_python. Most of them are low level replacements for Apache handlers but two, Publisher and PSP, are high level and will be covered here.
Difficulty:
Intro to Python Generators
Intro to Python Generators
Generators are a very cool Python abstraction that allows you to greatly simplify control flow and can also lead to much lower memory consumption.
Difficulty:
Python from Scratch: Getting Started
Python from Scratch: Getting Started
In this first lesson, we’re going to choose a version, install Python, and then create the obligatory “Hello world” script. If you’re already familiar with Python, feel free to skip ahead to a later lesson in the series.
Difficulty:
learning python part 4 (a look at functions)
learning python part 4 (a look at functions)
Let's start of with a simple function What this does is it defines the function add(). "a" and "b" are parameters that are requested
Difficulty:
Learn Best Practices for Designing, Coding, and Distributing Python Software
Learn Best Practices for Designing, Coding, and Distributing Python Software
Writing code in Python is simple, however, writing code that is efficient and easy to maintain and reuse is not so straightforward. This is where this book intends to step in. Written by Tarek Ziadé, a contributor to the Zope code and an experienced Python developer,
Difficulty: