Functional Python Programming – Second Edition: Monads, Lazy evaluation, Generator functions, and more

Create succinct and expressive implementations with functional programming in PythonKey FeaturesImplement common functional programming design patterns and techniques in PythonLearn how to choose between imperative and functional approaches based on expressiveness, clarity, and performanceApply functional Python to common Exploratory Data Analysis (EDA) programming problemsBook DescriptionIf you’re a Python developer who wants to discover how to take the power of functional programming and bring it into your own programs then this book is essential for you, even if you know next to nothing about the paradigm.Starting with a general overview of functional concepts you’ll explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python 3.6 to give you the core foundations you’ll build upon. After that, you’ll discover common functional optimizations for Python to help your apps reach even higher speeds. You will learn FP concepts such as Lazy Evaluation using Python’s generator functions and expressions. Going forward, you will learn to design and implement decorators to create composite functions. You'll also explore data preparation techniques and data exploration in depth, along with learning how the Python standard library fits the functional programming model. Finally, to top off your journey into the world of function Python you’ll at look at the PyMonad project and some larger examples to put everything into perspective.What you will learnUse Python's generator functions and generator expressions to work with collections in a non-strict (or lazy) mannerUtilize Python library modules including itertools, functools, multiprocessing, and concurrent.futures for efficient functional programsUse Python strings using object-oriented suffix notation and prefix notationAvoid stateful classes with families of tuplesDesign and implement decorators to create composite functionsUse functions like max(), min(), map(), filter(), and sorted()Write higher-order functionsWho This Book Is ForThis book is for Python developers who would like to perform Functional programming with Python. Python Programming knowledge is assumed.About the AuthorSteven F. Lott has been programming since the 70s, when computers were large, expensive, and rare. As a contract software developer and architect, he has worked on hundreds of projects, from very small to very large. He's been using Python to solve business problems for over 10 years. He’s currently leveraging Python to implement microservices and ETL pipelines. His other titles with Packt Publishing include Python Essentials, Mastering Object-Oriented Python, Functional Python Programming, and Python for Secret Agents. Steven is currently a technomad who lives in various places on the east coast of the U.S. You can follow his technology blog (slott-softwarearchitect). Also, you can visit his LinkedIn profile (steven-lott-029835)

Author: Steven F. Lott

Learn more