reklama - zainteresowany?

Learning Python. Powerful Object-Oriented Programming. 5th Edition - Helion

Learning Python. Powerful Object-Oriented Programming. 5th Edition
ebook
Autor: Mark Lutz
ISBN: 9781449355692
stron: 1648, Format: ebook
Data wydania: 2013-06-12
Księgarnia: Helion

Cena książki: 228,65 zł (poprzednio: 265,87 zł)
Oszczędzasz: 14% (-37,22 zł)

Dodaj do koszyka Learning Python. Powerful Object-Oriented Programming. 5th Edition

Tagi: Python - Programowanie

Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on author Mark Lutz’s popular training course, this updated fifth edition will help you quickly write efficient, high-quality code with Python. It’s an ideal way to begin, whether you’re new to programming or a professional developer versed in other languages.

Complete with quizzes, exercises, and helpful illustrations, this easy-to-follow, self-paced tutorial gets you started with both Python 2.7 and 3.3— the latest releases in the 3.X and 2.X lines—plus all other releases in common use today. You’ll also learn some advanced language features that recently have become more common in Python code.

  • Explore Python’s major built-in object types such as numbers, lists, and dictionaries
  • Create and process objects with Python statements, and learn Python’s general syntax model
  • Use functions to avoid code redundancy and package code for reuse
  • Organize statements, functions, and other tools into larger components with modules
  • Dive into classes: Python’s object-oriented programming tool for structuring code
  • Write large programs with Python’s exception-handling model and development tools
  • Learn advanced Python tools, including decorators, descriptors, metaclasses, and Unicode processing

Dodaj do koszyka Learning Python. Powerful Object-Oriented Programming. 5th Edition

 

Osoby które kupowały "Learning Python. Powerful Object-Oriented Programming. 5th Edition", wybierały także:

  • Receptura na Python. Kurs Video. 54 praktyczne porady dla programist
  • ZÅ‚am ten kod z Pythonem. Jak tworzyć, testować i Å‚amać szyfry
  • NLP. Kurs video. Analiza danych tekstowych w j
  • Web scraping w Data Science. Kurs video. Uczenie maszynowe i architektura splotowych sieci neuronowych
  • Python dla administrator

Dodaj do koszyka Learning Python. Powerful Object-Oriented Programming. 5th Edition

Spis treści

Learning Python. Powerful Object-Oriented Programming. 5th Edition eBook -- spis treści

  • Learning Python
  • Dedication
  • A Note Regarding Supplemental Files
  • Preface
    • This Books Ecosystem
    • About This Fifth Edition
    • The Python 2.X and 3.X Lines
    • This Books Prerequisites and Effort
    • This Books Structure
    • What This Book Is Not
    • This Books Programs
    • Font Conventions
    • Book Updates and Resources
    • Acknowledgments
  • I. Getting Started
    • 1. A Python Q&A Session
      • Why Do People Use Python?
      • Is Python a Scripting Language?
      • OK, but Whats the Downside?
      • Who Uses Python Today?
      • What Can I Do with Python?
      • How Is Python Developed and Supported?
      • What Are Pythons Technical Strengths?
      • How Does Python Stack Up to Language X?
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 2. How Python Runs Programs
      • Introducing the Python Interpreter
      • Program Execution
      • Execution Model Variations
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 3. How You Run Programs
      • The Interactive Prompt
      • System Command Lines and Files
      • Unix-Style Executable Scripts: #!
      • Clicking File Icons
      • Module Imports and Reloads
      • Using exec to Run Module Files
      • The IDLE User Interface
      • Other IDEs
      • Other Launch Options
      • Which Option Should I Use?
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part I Exercises
  • II. Types and Operations
    • 4. Introducing Python Object Types
      • The Python Conceptual Hierarchy
      • Why Use Built-in Types?
      • Pythons Core Data Types
      • Numbers
      • Strings
      • Lists
      • Dictionaries
      • Tuples
      • Files
      • Other Core Types
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 5. Numeric Types
      • Numeric Type Basics
      • Numbers in Action
      • Other Numeric Types
      • Numeric Extensions
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 6. The Dynamic Typing Interlude
      • The Case of the Missing Declaration Statements
      • Shared References
      • Dynamic Typing Is Everywhere
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 7. String Fundamentals
      • This Chapters Scope
      • String Basics
      • String Literals
      • Strings in Action
      • String Methods
      • String Formatting Expressions
      • String Formatting Method Calls
      • General Type Categories
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 8. Lists and Dictionaries
      • Lists
      • Lists in Action
      • Dictionaries
      • Dictionaries in Action
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 9. Tuples, Files, and Everything Else
      • Tuples
      • Files
      • Core Types Review and Summary
      • Built-in Type Gotchas
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part II Exercises
  • III. Statements and Syntax
    • 10. Introducing Python Statements
      • The Python Conceptual Hierarchy Revisited
      • Pythons Statements
      • A Tale of Two ifs
      • A Quick Example: Interactive Loops
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 11. Assignments, Expressions, and Prints
      • Assignment Statements
      • Expression Statements
      • Print Operations
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 12. if Tests and Syntax Rules
      • if Statements
      • Python Syntax Revisited
      • Truth Values and Boolean Tests
      • The if/else Ternary Expression
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 13. while and for Loops
      • while Loops
      • break, continue, pass, and the Loop else
      • for Loops
      • Loop Coding Techniques
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 14. Iterations and Comprehensions
      • Iterations: A First Look
      • List Comprehensions: A First Detailed Look
      • Other Iteration Contexts
      • New Iterables in Python 3.X
      • Other Iteration Topics
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 15. The Documentation Interlude
      • Python Documentation Sources
      • Common Coding Gotchas
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part III Exercises
  • IV. Functions and Generators
    • 16. Function Basics
      • Why Use Functions?
      • Coding Functions
      • A First Example: Definitions and Calls
      • A Second Example: Intersecting Sequences
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 17. Scopes
      • Python Scope Basics
      • The global Statement
      • Scopes and Nested Functions
      • The nonlocal Statement in 3.X
      • Why nonlocal? State Retention Options
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 18. Arguments
      • Argument-Passing Basics
      • Special Argument-Matching Modes
      • The min Wakeup Call!
      • Generalized Set Functions
      • Emulating the Python 3.X print Function
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 19. Advanced Function Topics
      • Function Design Concepts
      • Recursive Functions
      • Function Objects: Attributes and Annotations
      • Anonymous Functions: lambda
      • Functional Programming Tools
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 20. Comprehensions and Generations
      • List Comprehensions and Functional Tools
      • Generator Functions and Expressions
      • Comprehension Syntax Summary
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 21. The Benchmarking Interlude
      • Timing Iteration Alternatives
      • Timing Iterations and Pythons with timeit
      • Other Benchmarking Topics: pystones
      • Function Gotchas
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part IV Exercises
  • V. Modules and Packages
    • 22. Modules: The Big Picture
      • Why Use Modules?
      • Python Program Architecture
      • How Imports Work
      • Byte Code Files: __pycache__ in Python 3.2+
      • The Module Search Path
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 23. Module Coding Basics
      • Module Creation
      • Module Usage
      • Module Namespaces
      • Reloading Modules
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 24. Module Packages
      • Package Import Basics
      • Package Import Example
      • Why Use Package Imports?
      • Package Relative Imports
      • Python 3.3 Namespace Packages
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 25. Advanced Module Topics
      • Module Design Concepts
      • Data Hiding in Modules
      • Enabling Future Language Features: __future__
      • Mixed Usage Modes: __name__ and __main__
      • Example: Dual Mode Code
      • Changing the Module Search Path
      • The as Extension for import and from
      • Example: Modules Are Objects
      • Importing Modules by Name String
      • Example: Transitive Module Reloads
      • Module Gotchas
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part V Exercises
  • VI. Classes and OOP
    • 26. OOP: The Big Picture
      • Why Use Classes?
      • OOP from 30,000 Feet
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 27. Class Coding Basics
      • Classes Generate Multiple Instance Objects
      • Classes Are Customized by Inheritance
      • Classes Can Intercept Python Operators
      • The Worlds Simplest Python Class
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 28. A More Realistic Example
      • Step 1: Making Instances
      • Step 2: Adding Behavior Methods
      • Step 3: Operator Overloading
      • Step 4: Customizing Behavior by Subclassing
      • Step 5: Customizing Constructors, Too
      • Step 6: Using Introspection Tools
      • Step 7 (Final): Storing Objects in a Database
      • Future Directions
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 29. Class Coding Details
      • The class Statement
      • Methods
      • Inheritance
      • Namespaces: The Conclusion
      • Documentation Strings Revisited
      • Classes Versus Modules
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 30. Operator Overloading
      • The Basics
      • Indexing and Slicing: __getitem__ and __setitem__
      • Index Iteration: __getitem__
      • Iterable Objects: __iter__ and __next__
      • Membership: __contains__, __iter__, and __getitem__
      • Attribute Access: __getattr__ and __setattr__
      • String Representation: __repr__ and __str__
      • Right-Side and In-Place Uses: __radd__ and __iadd__
      • Call Expressions: __call__
      • Comparisons: __lt__, __gt__, and Others
      • Boolean Tests: __bool__ and __len__
      • Object Destruction: __del__
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 31. Designing with Classes
      • Python and OOP
      • OOP and Inheritance: Is-a Relationships
      • OOP and Composition: Has-a Relationships
      • OOP and Delegation: Wrapper Proxy Objects
      • Pseudoprivate Class Attributes
      • Methods Are Objects: Bound or Unbound
      • Classes Are Objects: Generic Object Factories
      • Multiple Inheritance: Mix-in Classes
      • Other Design-Related Topics
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 32. Advanced Class Topics
      • Extending Built-in Types
      • The New Style Class Model
      • New-Style Class Changes
      • New-Style Class Extensions
      • Static and Class Methods
      • Decorators and Metaclasses: Part 1
      • The super Built-in Function: For Better or Worse?
      • Class Gotchas
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part VI Exercises
  • VII. Exceptions and Tools
    • 33. Exception Basics
      • Why Use Exceptions?
      • Exceptions: The Short Story
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 34. Exception Coding Details
      • The try/except/else Statement
      • The try/finally Statement
      • Unified try/except/finally
      • The raise Statement
      • The assert Statement
      • with/as Context Managers
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 35. Exception Objects
      • Exceptions: Back to the Future
      • Why Exception Hierarchies?
      • Built-in Exception Classes
      • Custom Print Displays
      • Custom Data and Behavior
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 36. Designing with Exceptions
      • Nesting Exception Handlers
      • Exception Idioms
      • Exception Design Tips and Gotchas
      • Core Language Summary
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
      • Test Your Knowledge: Part VII Exercises
  • VIII. Advanced Topics
    • 37. Unicode and Byte Strings
      • String Changes in 3.X
      • String Basics
      • Coding Basic Strings
      • Coding Unicode Strings
      • Using 3.X bytes Objects
      • Using 3.X/2.6+ bytearray Objects
      • Using Text and Binary Files
      • Using Unicode Files
      • Other String Tool Changes in 3.X
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 38. Managed Attributes
      • Why Manage Attributes?
      • Properties
      • Descriptors
      • __getattr__ and __getattribute__
      • Example: Attribute Validations
      • Chapter Summary
      • Test Your Knowledge: Quiz
    • 39. Decorators
      • Whats a Decorator?
      • The Basics
      • Coding Function Decorators
      • Coding Class Decorators
      • Managing Functions and Classes Directly
      • Example: Private and Public Attributes
      • Example: Validating Function Arguments
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 40. Metaclasses
      • To Metaclass or Not to Metaclass
      • The Metaclass Model
      • Declaring Metaclasses
      • Coding Metaclasses
      • Inheritance and Instance
      • Metaclass Methods
      • Example: Adding Methods to Classes
      • Example: Applying Decorators to Methods
      • Chapter Summary
      • Test Your Knowledge: Quiz
      • Test Your Knowledge: Answers
    • 41. All Good Things
      • The Python Paradox
      • Where to Go From Here
      • Encore: Print Your Own Completion Certificate!
  • IX. Appendixes
    • A. Installation and Configuration
      • Installing the Python Interpreter
      • Configuring Python
      • For More Help
    • B. The Python 3.3 Windows Launcher
      • The Unix Legacy
      • The Windows Legacy
      • Introducing the New Windows Launcher
      • A Windows Launcher Tutorial
      • Pitfalls of the New Windows Launcher
      • Conclusions: A Net Win for Windows
    • C. Python Changes and This Book
      • Major 2.X/3.X Differences
      • General Remarks: 3.X Changes
      • Fifth Edition Python Changes: 2.7, 3.2, 3.3
      • Fourth Edition Python Changes: 2.6, 3.0, 3.1
      • Third Edition Python Changes: 2.3, 2.4, 2.5
      • Earlier and Later Python Changes
    • D. Solutions to End-of-Part Exercises
      • Part I, Getting Started
      • Part II, Types and Operations
      • Part III, Statements and Syntax
      • Part IV, Functions and Generators
      • Part V, Modules and Packages
      • Part VI, Classes and OOP
      • Part VII, Exceptions and Tools
  • Index
  • About the Author
  • Colophon
  • Copyright

Dodaj do koszyka Learning Python. Powerful Object-Oriented Programming. 5th Edition

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.