Python does not ask you to choose just one way of programming. In Functional Programming in Python, Martin McBride explains how to use functions as building blocks for software—and how functional techniques can sit comfortably alongside procedural and object-oriented code. The examples make abstract ideas concrete, while the explanations start from the assumption that readers know basic Python but are new to functional programming.
See Python functions in a new light
The book establishes the foundations first: what functional programming means, why pure functions and fewer side effects matter, and how treating functions as objects makes new ways of composing and reusing behavior possible. It also considers the trade-offs, so the style is presented as a useful approach rather than a rule that every program must follow.
From immutable data to lazy iteration
As the discussion moves into Python practice, McBride explores mutable and immutable objects, recursion, closures, and the relationship between functions and classes. Readers then encounter iterators and lazy evaluation, along with ways to transform, filter, and reduce iterable data. These ideas show how to express data-processing work without relying on a hand-written loop for every step.
Build and combine functions
Further topics include comprehensions, generators, partial application, currying, and function composition. The progression connects individual Python features to broader functional patterns, helping readers understand not only what a technique does, but where it fits into a functional style.
For Python programmers exploring another paradigm
This book is intended for readers with a basic knowledge of Python; prior functional-programming experience is not required. Its examples were developed for Python 3.5 or higher, with the author noting that most also work with earlier Python 3 versions. For learners and working developers alike, it offers a grounded introduction to adding functional ideas to the Python code they already write.
User Reviews
Only logged in customers who have purchased this product may leave a review.
Original price was: $5.00.$2.50Current price is: $2.50.

There are no reviews yet.