Veze, linkovi
Kompjuter biblioteka
Functional Python Programming

Python programiranje Python programiranje

Functional Python Programming

Autor: Steven F. Lott
Broj strana: 360
ISBN broj: 9781784396992
Godina izdanja: 2015.

Twitter   Facebook   Linkedin   Pinterest   Email
Predlog za prevod


About This Book

  • Implement common functional programming design patterns and techniques in Python
  • Learn how to choose between imperative and functional approaches based on expressiveness, clarity, and performance
  • Apply functional Python to common Exploratory Data Analysis (EDA) programming problems

Who This Book Is For

This book is for developers who want to use Python to write programs that lean heavily on functional programming design patterns. You should be comfortable with Python programming, but no knowledge of functional programming paradigms is needed.

What You Will Learn

  • Use Python's generator functions and generator expressions to work with collections in a non-strict (or lazy) manner
  • Utilize Python library modules including itertools, functools, multiprocessing, and concurrent.futures for efficient functional programs
  • Use Python strings using object-oriented suffix notation and prefix notation
  • Avoid stateful classes with families of tuples
  • Design and implement decorators to create composite functions
  • Use functions like max(), min(), map(), filter(), and sorted()
  • Write higher-order functions

In Detail

Python is an easy-to-learn and extensible programming language that offers a number of functional programming features. It's ideally suited to a number of applications in the broad space of data science.

This practical guide demonstrates the Python implementation of a number of functional programming techniques and design patterns. Starting with a general overview of functional programming concepts, you will explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python. Additionally, you will cover how common functional optimizations can be handled in Python. You'll also explore data preparation techniques and data exploration in depth. Moving on, you will learn how the Python standard library fits the functional programming model. The book concludes with a look at the PyMonad project and some larger examples.

By the end of this book, you will be able to understand what functional programming is all about, its impact on the programming workflow, why it's important, and how to implement it in Python.


Steven F. Lott

Steven 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 particularly adept at struggling with thorny data representation problems.

He has also authored Mastering Object-oriented Python by Packt Publishing.

He is currently a technomad who lives in various places on the east coast of the US. His technology blog can be found at

Table of Contents

Chapter 1: Introducing Functional Programming
Chapter 2: Introducing Some Functional Features
Chapter 3: Functions, Iterators, and Generators
Chapter 4: Working with Collections
Chapter 5: Higher-order Functions
Chapter 6: Recursions and Reductions
Chapter 7: Additional Tuple Techniques
Chapter 8: The Itertools Module
Chapter 9: More Itertools Techniques
Chapter 10: The Functools Module
Chapter 11: Decorator Design Techniques
Chapter 12: The Multiprocessing and Threading Modules
Chapter 13: Conditional Expressions and the Operator Module
Chapter 14: The PyMonad Library
Chapter 15: A Functional Approach to Web Services
Chapter 16: Optimizations and Improvements


Budite prvi koji će ostaviti komentar.

Ostavite komentar Ostavite komentar



Learn Python by Building Data Science Applications

Learn Python by Building Data Science Applications

Python Testing Cookbook - Second Edition

Python Testing Cookbook - Second Edition

Veze, linkovi
Linkedin Twitter Facebook
© Sva prava pridržana, Kompjuter biblioteka, Beograd, Obalskih radnika 4a, Telefon: +381 11 252 0 272