Function Python programming : discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads / / Steven F. Lott
| Function Python programming : discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads / / Steven F. Lott |
| Autore | Lott Steven F. |
| Edizione | [Second edition.] |
| Pubbl/distr/stampa | Birmingham ; ; Mumbai : , : Packt, , 2018 |
| Descrizione fisica | 1 online resource (408 pages) |
| Disciplina | 005.117 |
| Soggetto topico |
Python (Computer program language)
Application software - Development |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Record Nr. | UNINA-9910794624903321 |
Lott Steven F.
|
||
| Birmingham ; ; Mumbai : , : Packt, , 2018 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Function Python programming : discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads / / Steven F. Lott
| Function Python programming : discover the power of functional programming, generator functions, lazy evaluation, the built-in itertools library, and monads / / Steven F. Lott |
| Autore | Lott Steven F. |
| Edizione | [Second edition.] |
| Pubbl/distr/stampa | Birmingham ; ; Mumbai : , : Packt, , 2018 |
| Descrizione fisica | 1 online resource (408 pages) |
| Disciplina | 005.117 |
| Soggetto topico |
Python (Computer program language)
Application software - Development |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Record Nr. | UNINA-9910826509203321 |
Lott Steven F.
|
||
| Birmingham ; ; Mumbai : , : Packt, , 2018 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Functional Python programming : use a functional approach to write succinct, expressive, and efficient Python code / / Steven F. Lott ; foreword by Ricardo Banffy
| Functional Python programming : use a functional approach to write succinct, expressive, and efficient Python code / / Steven F. Lott ; foreword by Ricardo Banffy |
| Autore | Lott Steven F. |
| Edizione | [Third edition.] |
| Pubbl/distr/stampa | Birmingham : , : Packt Publishing, , [2022] |
| Descrizione fisica | 1 online resource (576 pages) |
| Disciplina | 005.133 |
| Collana | Expert insight |
| Soggetto topico |
Python (Computer program language)
Functional programming (Computer science) |
| ISBN |
9781523151417
1523151412 9781803232577 1803232579 |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Nota di contenuto |
Cover -- Copyright -- Contributors -- Table of Contents -- Preface -- Chapter 1: Understanding Functional Programming -- The functional style of programming -- Comparing and contrasting procedural and functional styles -- Using the functional paradigm -- Using a functional hybrid -- The stack of turtles -- A classic example of functional programming -- Exploratory data analysis -- Summary -- Exercises -- Convert an imperative algorithm to functional code -- Convert step-wise computation to functional code -- Revise the sqrt() function -- Data cleansing steps
(Advanced) Optimize this functional code -- Chapter 2: Introducing Essential Functional Concepts -- Functions as first-class objects -- Pure functions -- Higher-order functions -- Immutable data -- Strict and non-strict evaluation -- Lazy and eager evaluation -- Recursion instead of an explicit loop state -- Functional type systems -- Familiar territory -- Learning some advanced concepts -- Summary -- Exercises -- Apply map() to a sequence of values -- Function vs. lambda design question -- Optimize a recursion -- Chapter 3: Functions, Iterators, and Generators -- Writing pure functions Functions as first-class objects -- Using strings -- Using tuples and named tuples -- Using generator expressions -- Exploring the limitations of generators -- Combining generator expressions -- Cleaning raw data with generator functions -- Applying generators to built-in collections -- Generators for lists, dicts, and sets -- Using stateful mappings -- Using the bisect module to create a mapping -- Using stateful sets -- Summary -- Exercises -- Rewrite the some_function() function -- Alternative Mersenne class definition -- Alternative algorithm implementations -- Map and filter Dictionary comprehension -- Raw data cleanup -- Chapter 4: Working with Collections -- An overview of function varieties -- Working with iterables -- Parsing an XML file -- Parsing a file at a higher level -- Pairing up items from a sequence -- Using the iter() function explicitly -- Extending an iteration -- Applying generator expressions to scalar functions -- Using any() and all() as reductions -- Using len() and sum() on collections -- Using sums and counts for statistics -- Using zip() to structure and flatten sequences -- Unzipping a zipped sequence -- Flattening sequences Structuring flat sequences -- Structuring flat sequences -- an alternative approach -- Using sorted() and reversed() to change the order -- Using enumerate() to include a sequence number -- Summary -- Exercises -- Palindromic numbers -- Hands of cards -- Replace legs() with pairwise() -- Chapter 5: Higher-Order Functions -- Using max() and min() to find extrema -- Using Python lambda forms -- Lambdas and the lambda calculus -- Using the map() function to apply a function to a collection -- Working with lambda forms and map() -- Using map() with multiple sequences |
| Record Nr. | UNINA-9911007242703321 |
Lott Steven F.
|
||
| Birmingham : , : Packt Publishing, , [2022] | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi
| Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi |
| Autore | Lott Steven F. |
| Edizione | [1st edition] |
| Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
| Descrizione fisica | 1 online resource (634 p.) |
| Disciplina | 005.133 |
| Collana | Community Experience Distilled |
| Soggetto topico | Python (Computer program language) |
| Soggetto genere / forma | Electronic books. |
| ISBN | 1-78328-098-0 |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Some Preliminaries; About casino Blackjack; Playing the game; Blackjack player strategies; Object design for simulating Blackjack; Performance - the time it module; Testing - unittest and doctest; Unit testing and technology spikes; Docstrings - RST markup and documentation tools; The IDE question; About special method names; Summary; Part 1: Pythonic Classes via Special Methods; Chapter 1: The __init__() Method; The implicit superclass - object
The base class object __init__() method Implementing __init__() in a super class; Using __init__() to create manifest constants; Leveraging __init__() via a factory function; Faulty factory design and the vague else clause; Simplicity and consistency using elif sequences; Simplicity using mapping and class objects; Two parallel mappings; Mapping to a tuple of values; The partial function solution; Fluent APIs for factories; Implementing __init__() in each subclass; Simple composite objects; Wrapping a collection class; Extending a collection class; More requirements and another design Complex composite objects Complete composite object initialization; Stateless objects without __init__(); Some additional class definitions; Multi-strategy __init__(); More complex initialization alternatives; Initializing static methods; Yet more __init__() techniques; Initialization with type validation; Initialization, encapsulation, and privacy; Summary; Chapter 2: Integrating Seamlessly with Python - Basic Special Methods; The __repr__() and __str__() methods; Non collection __str__() and __repr__(); Collection __str__() and __repr__(); The __format__() method Nested formatting specifications Collections and delegating format specifications; The __hash__() method; Deciding what to hash; Inheriting definitions for immutable objects; Overriding definitions for immutable objects; Overriding definitions for mutable objects; Making a frozen hand from a mutable hand; The __bool__() method; The __bytes__() method; The comparison operator methods; Designing comparisons; Implementation of comparison for objects of the same class; Implementation of comparison for objects of mixed classes; Hard totals, soft totals, and polymorphism A mixed class comparison example The __del__() method; The reference count and destruction; Circular references and garbage collection; Circular references and the weak ref module; The __del__() and close() methods; The __new__() method and immutable objects; The __new__() method and metaclasses; Metaclass example 1 - ordered attributes; Metaclass example 2 - self-reference; Summary; Chapter 3: Attribute Access, Properties, and Descriptors; Basic attribute processing; Attributes and the __init__() method; Creating properties; Eagerly computed properties; Setter and deleter properties Using special methods for attribute access |
| Record Nr. | UNINA-9910458846703321 |
Lott Steven F.
|
||
| Birmingham, [England] : , : Packt Publishing, , 2014 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi
| Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi |
| Autore | Lott Steven F. |
| Edizione | [1st edition] |
| Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
| Descrizione fisica | 1 online resource (634 p.) |
| Disciplina | 005.133 |
| Collana | Community Experience Distilled |
| Soggetto topico | Python (Computer program language) |
| ISBN | 1-78328-098-0 |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Some Preliminaries; About casino Blackjack; Playing the game; Blackjack player strategies; Object design for simulating Blackjack; Performance - the time it module; Testing - unittest and doctest; Unit testing and technology spikes; Docstrings - RST markup and documentation tools; The IDE question; About special method names; Summary; Part 1: Pythonic Classes via Special Methods; Chapter 1: The __init__() Method; The implicit superclass - object
The base class object __init__() method Implementing __init__() in a super class; Using __init__() to create manifest constants; Leveraging __init__() via a factory function; Faulty factory design and the vague else clause; Simplicity and consistency using elif sequences; Simplicity using mapping and class objects; Two parallel mappings; Mapping to a tuple of values; The partial function solution; Fluent APIs for factories; Implementing __init__() in each subclass; Simple composite objects; Wrapping a collection class; Extending a collection class; More requirements and another design Complex composite objects Complete composite object initialization; Stateless objects without __init__(); Some additional class definitions; Multi-strategy __init__(); More complex initialization alternatives; Initializing static methods; Yet more __init__() techniques; Initialization with type validation; Initialization, encapsulation, and privacy; Summary; Chapter 2: Integrating Seamlessly with Python - Basic Special Methods; The __repr__() and __str__() methods; Non collection __str__() and __repr__(); Collection __str__() and __repr__(); The __format__() method Nested formatting specifications Collections and delegating format specifications; The __hash__() method; Deciding what to hash; Inheriting definitions for immutable objects; Overriding definitions for immutable objects; Overriding definitions for mutable objects; Making a frozen hand from a mutable hand; The __bool__() method; The __bytes__() method; The comparison operator methods; Designing comparisons; Implementation of comparison for objects of the same class; Implementation of comparison for objects of mixed classes; Hard totals, soft totals, and polymorphism A mixed class comparison example The __del__() method; The reference count and destruction; Circular references and garbage collection; Circular references and the weak ref module; The __del__() and close() methods; The __new__() method and immutable objects; The __new__() method and metaclasses; Metaclass example 1 - ordered attributes; Metaclass example 2 - self-reference; Summary; Chapter 3: Attribute Access, Properties, and Descriptors; Basic attribute processing; Attributes and the __init__() method; Creating properties; Eagerly computed properties; Setter and deleter properties Using special methods for attribute access |
| Record Nr. | UNINA-9910790919603321 |
Lott Steven F.
|
||
| Birmingham, [England] : , : Packt Publishing, , 2014 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi
| Mastering object-oriented Python : grasp the intricacies of object-oriented programming in Python in order to efficiency build powerful real-world applications / / Steven F. Lott ; cover image by Duraid Fatouhi |
| Autore | Lott Steven F. |
| Edizione | [1st edition] |
| Pubbl/distr/stampa | Birmingham, [England] : , : Packt Publishing, , 2014 |
| Descrizione fisica | 1 online resource (634 p.) |
| Disciplina | 005.133 |
| Collana | Community Experience Distilled |
| Soggetto topico | Python (Computer program language) |
| ISBN | 1-78328-098-0 |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Nota di contenuto |
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Some Preliminaries; About casino Blackjack; Playing the game; Blackjack player strategies; Object design for simulating Blackjack; Performance - the time it module; Testing - unittest and doctest; Unit testing and technology spikes; Docstrings - RST markup and documentation tools; The IDE question; About special method names; Summary; Part 1: Pythonic Classes via Special Methods; Chapter 1: The __init__() Method; The implicit superclass - object
The base class object __init__() method Implementing __init__() in a super class; Using __init__() to create manifest constants; Leveraging __init__() via a factory function; Faulty factory design and the vague else clause; Simplicity and consistency using elif sequences; Simplicity using mapping and class objects; Two parallel mappings; Mapping to a tuple of values; The partial function solution; Fluent APIs for factories; Implementing __init__() in each subclass; Simple composite objects; Wrapping a collection class; Extending a collection class; More requirements and another design Complex composite objects Complete composite object initialization; Stateless objects without __init__(); Some additional class definitions; Multi-strategy __init__(); More complex initialization alternatives; Initializing static methods; Yet more __init__() techniques; Initialization with type validation; Initialization, encapsulation, and privacy; Summary; Chapter 2: Integrating Seamlessly with Python - Basic Special Methods; The __repr__() and __str__() methods; Non collection __str__() and __repr__(); Collection __str__() and __repr__(); The __format__() method Nested formatting specifications Collections and delegating format specifications; The __hash__() method; Deciding what to hash; Inheriting definitions for immutable objects; Overriding definitions for immutable objects; Overriding definitions for mutable objects; Making a frozen hand from a mutable hand; The __bool__() method; The __bytes__() method; The comparison operator methods; Designing comparisons; Implementation of comparison for objects of the same class; Implementation of comparison for objects of mixed classes; Hard totals, soft totals, and polymorphism A mixed class comparison example The __del__() method; The reference count and destruction; Circular references and garbage collection; Circular references and the weak ref module; The __del__() and close() methods; The __new__() method and immutable objects; The __new__() method and metaclasses; Metaclass example 1 - ordered attributes; Metaclass example 2 - self-reference; Summary; Chapter 3: Attribute Access, Properties, and Descriptors; Basic attribute processing; Attributes and the __init__() method; Creating properties; Eagerly computed properties; Setter and deleter properties Using special methods for attribute access |
| Record Nr. | UNINA-9910822656103321 |
Lott Steven F.
|
||
| Birmingham, [England] : , : Packt Publishing, , 2014 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||
Modern Python cookbook : the latest in modern Python recipes for the busy modern programmer / / Steven F. Lott
| Modern Python cookbook : the latest in modern Python recipes for the busy modern programmer / / Steven F. Lott |
| Autore | Lott Steven F. |
| Edizione | [1st edition] |
| Pubbl/distr/stampa | Birmingham, England ; ; Mumbai, [India] : , : Packt Publishing, , 2016 |
| Descrizione fisica | 1 online resource (819 pages) |
| Disciplina | 005.133 |
| Soggetto topico | Python (Computer program language) |
| ISBN | 1-78646-384-9 |
| Formato | Materiale a stampa |
| Livello bibliografico | Monografia |
| Lingua di pubblicazione | eng |
| Record Nr. | UNINA-9910155043303321 |
Lott Steven F.
|
||
| Birmingham, England ; ; Mumbai, [India] : , : Packt Publishing, , 2016 | ||
| Lo trovi qui: Univ. Federico II | ||
| ||