• Complain

Steven F. Lott - Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition

Here you can read online Steven F. Lott - Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Packt Publishing, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Steven F. Lott Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition
  • Book:
    Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2018
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Create succinct and expressive implementations with functional programming in Python

Key Features
  • Learn how to choose between imperative and functional approaches based on expressiveness, clarity, and performance
  • Get familiar with complex concepts such as monads, concurrency, and immutability
  • Apply functional Python to common Exploratory Data Analysis (EDA) programming problems
Book Description

If youre a Python developer who wants to discover how to take the power of functional programming (FP) 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, youll explore common functional features such as first-class and higher-order functions, pure functions, and more. Youll see how these are accomplished in Python 3.6 to give you the core foundations youll build upon. After that, youll discover common functional optimizations for Python to help your apps reach even higher speeds.

Youll learn FP concepts such as lazy evaluation using Pythons generator functions and expressions. Moving forward, youll learn to design and implement decorators to create composite functions. Youll also explore data preparation techniques and data exploration in depth, and see how the Python standard library fits the functional programming model. Finally, to top off your journey into the world of functional Python, youll at look at the PyMonad project and some larger examples to put everything into perspective.

What you will learn
  • Use Pythons 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 features to ensure efficient functional programs
  • Use Python strings with object-oriented suffix notation and prefix notation
  • Avoid stateful classes with families of tuples
  • Design and implement decorators to create composite functions
  • Use functions such as max(), min(), map(), filter(), and sorted()
  • Write higher-order functions
Who This Book Is For

This book is for Python developers who would like to perform Functional programming with Python. Python Programming knowledge is assumed.

Table of Contents
  1. Understanding Functional Programming
  2. Introducing essential functional concepts
  3. Functions, Iterators and Generators
  4. Working with Collections
  5. Higher-Order Functions
  6. Recursions and Reductions
  7. Additional tuple techiques
  8. The Itertools Module
  9. More Itertools Techniques
  10. The Functools Module
  11. Decorator Design Techniques
  12. The Multiprocessing and Threading Modules
  13. The Operator Module
  14. The PyMonad Library
  15. A Functional Approach to Web Services
  16. Optimizations and Improvements

Steven F. Lott: author's other books


Who wrote Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Functional Python Programming Second Edition Discover the power of - photo 1
Functional Python Programming
Second Edition
Discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads
Steven F. Lott

BIRMINGHAM - MUMBAI Functional Python ProgrammingSecond Edition Copyright - photo 2

BIRMINGHAM - MUMBAI
Functional Python ProgrammingSecond Edition

Copyright 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Merint Methew
Acquisition Editor: Sandeep Mishra
Content Development Editor: Priyanka Sawant
Technical Editor: Ketan Kamble
Copy Editor: Safis Editing
Project Coordinator: Vaidehi Sawant
Proofreader: Safis Editing
Indexer: Mariammal Chettiyar
Graphics: Jason Monteiro
Production Coordinator: Deepika Naik

First published: January 2015
Second edition: April 2018

Production reference: 1120418

Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78862-706-1

www.packtpub.com

maptio Mapt is an online digital library that gives you full access to over - photo 3
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?
  • Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

  • Improve your learning with Skill Plans built especially for you

  • Get a free eBook or video every month

  • Mapt is fully searchable

  • Copy and paste, print, and bookmark content

PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.

At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

About the author

Steven F. Lott has been programming since the '70s, when computers were large, expensive, and rare. He's been using Python to solve business problems for over 10 years. 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 city along the east coast of the U.S. You can follow his technology blog ( slott-softwarearchitect ).

About the reviewer

Yogendra Sharma is a developer with experience in architecture, design, and development of scalable and distributed applications. He was awarded a bachelors degree from the Rajasthan Technical University in computer science. With a core interest in microservices and Spring, he also has hands-on experience in technologies such as AWS Cloud, Python, J2EE, NodeJS, JavaScript, Angular, MongoDB, and Docker.

Currently, he works as an IoT and Cloud Architect at Intelizign Engineering Services Pune.

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Preface

Functional programming offers a variety of techniques for creating succinct and expressive software. While Python is not a purely functional programming language, we can do a great deal of functional programming in Python.

Python has a core set of functional programming features. This lets us borrow many design patterns and techniques from other functional languages. These borrowed concepts can lead us to create succinct and elegant programs. Python's generator expressions, in particular, negate the need to create large in-memory data structures, leading to programs that may execute more quickly because they use fewer resources.

We cant easily create purely functional programs in Python. Python lacks a number of features that would be required for this. We dont have unlimited recursion, for example, we dont have lazy evaluation of all expressions, and we dont have an optimizing compiler.

There are several key features of functional programming languages that are available in Python. One of the most important ones is the idea of functions being first-class objects. Python also offers a number of higher-order functions. The built-in map(), filter(), and functools.reduce() functions are widely used in this role, and less-obvious are functions such as sorted(), min(), and max().

Well look at the core features of functional programming from a Python point of view. Our objective is to borrow good ideas from functional programming languages and use those ideas to create expressive and succinct applications in Python.

Who this book is for

This book is for programmers who want to create succinct, expressive Python programs by borrowing techniques and design patterns from functional programming languages. Some algorithms can be expressed elegantly in a functional style; we canand shouldadapt this to make Python programs more readable and maintainable.

In some cases, a functional approach to a problem will also lead to extremely high-performance algorithms. Python makes it too easy to create large intermediate data structures, tying up memory (and processor time.) With functional programming design patterns, we can often replace large lists with generator expressions that are equally expressive but take up much less memory and run much more quickly.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition»

Look at similar books to Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition»

Discussion, reviews of the book Functional Python Programming: Discover the Power of Functional Programming, Generator Functions, Lazy Evaluation, the Built-In Itertools Library, and Monads, 2nd Edition and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.