
Python Power! : The Comprehensive Guide.
Title:
Python Power! : The Comprehensive Guide.
Author:
Telles, Matt.
ISBN:
9781598631593
Personal Author:
Physical Description:
1 online resource (529 pages)
Contents:
Table of Contents -- CHAPTER 1 About Python -- What Is Python? -- A Brief History of Python -- Interpreters Versus Compilers -- When to Use (or Not Use) an Interpreted Language -- Understanding Bytecodes -- Why Use Python? -- Object-Oriented -- Cross Platform -- Broad User Base -- Well Supported in Third-Party Tools -- Good Selection of Tools Available -- Good Selection of Pre-built Libraries -- Where Is Python Used? -- How Is Python Licensed? -- Where Do I Get Python? -- Installing Python -- Getting Information on Python -- Python Communities -- Other Software -- And Now for Something Completely Different -- CHAPTER 2 Python Language Overview -- Python Syntax -- Comments -- Indentation -- Python Reserved Words -- Decision Making and Iteration Keywords -- Debugging Keywords -- Package and Module Handling Keywords -- Exception Handling Keywords -- General Language Keywords -- Other Keywords -- Variable Usage -- The Continuation Variable -- Watching Out for Spelling Mistakes! -- Predicates -- Identifier Scope -- Operators -- Modulo Operator -- Exponential Operator -- Logical Operators -- Comparative Operators -- Bitwise Operators -- Membership Operators and String Operators -- Identity Operators -- In Conclusion -- CHAPTER 3 Tools -- IDLE -- File Menu -- The Path Browser Dialog -- Edit Menu -- Shell Menu -- Debug Menu -- The Edit Window -- Format Menu -- Command Line Compiler -- Creating Python Files -- Documentation -- In Conclusion -- CHAPTER 4 Data Types -- Numeric Types -- Integers -- Demonstrating Long Integers -- Octal and Hexadecimal -- Floating Point Numbers -- Strings -- String Variables -- Concatenating Strings -- Repeating Strings -- Substrings -- Slicing -- String Functions -- String Constants -- Conversion Functions -- Search Functions -- Formatting Functions -- Escape Sequences -- Sequences -- Lists -- Shared References -- Tuples.
Dictionaries -- Advanced Type -- Classes and Objects -- Complex Type -- Generator Type -- None Type -- Unicode Type -- In Conclusion -- CHAPTER 5 Control Flow -- Conditionals -- The if Statement -- The elif Statement -- The else Statement -- Wrapping Up the Conditionals: A Cool Example -- Loops -- The for Loop -- The while Loop -- In Conclusion -- CHAPTER 6 Input and Output -- User Input -- The input Function -- The raw_input Function -- User Output -- Formatting -- File Input -- File Output -- Closing Files -- Positioning in Files -- Directories and Files -- The stat Module: File Statistics -- Command Line Arguments -- Pickle -- In Conclusion -- CHAPTER 7 Functions and Modules -- What Is a Function? -- Defining Functions in Python -- What Are Arguments? -- How Do You Pass an Argument to a Function? -- Default Arguments -- Variable Default Arguments -- Keyword Arguments -- Returning Values from Functions -- Returning Multiple Values from Functions -- Recursive Functions -- Passing Functions as Arguments -- Lambda Functions -- Variable Numbers of Arguments to a Function -- Variable Scope in Functions -- Using Modules -- In Conclusion -- CHAPTER 8 Exception Handling -- Looking at Exceptions in Python -- Traceback Example -- Understanding Tracebacks -- Exceptions -- Catching Exceptions with try..except -- Multiple except Clauses -- Blank except Clauses -- The else Clauses -- The finally Clause -- Raising Your Own Exceptions -- Exception Arguments -- User-Defined Exceptions -- Working with the Exception Information -- exc_type -- exc_value -- Using the with Clause for Files -- Re-throwing Exceptions -- In Conclusion -- CHAPTER 9 Object-Oriented Programming -- A Brief History of OOP -- What Is an Object? -- Why Do We Use Objects? -- Reuse -- Ease in Debugging -- Maintainability -- The Attributes of Object-Oriented Development -- Abstraction -- Data Hiding.
Inheritance -- Polymorphism -- Terminology -- Class -- Object -- Attribute -- Method -- Message Passing -- Event Handling -- Derivation -- Coupling -- Cohesion -- Constants -- Other Concepts -- In Conclusion -- CHAPTER 10 Classes and Objects in Python -- Python Classes -- Properties -- Attribute Modifying Functions -- Private Attributes -- Doc Strings -- Properties -- The self Object -- Methods -- Special Methods -- Initialization -- Termination -- String Conversion -- Inheritance -- Multiple Inheritance -- Using super -- Polymorphism -- Exception Classes -- Iterators -- Operator Overloading -- In Conclusion -- CHAPTER 11 The Python Library -- Containers -- Working with the deque Class -- Math -- Complex Math -- Types -- Strings -- Regular Expressions -- Patterns -- Special Sequence Characters -- Compiling Regular Expressions -- Matching Strings -- Meta Characters -- Grouping -- System -- Random Number Generation -- Dates and Times -- Creating a New Time -- Time Operations -- Creating a New Date -- Date Operations -- Time Zone Information -- Operating System Interface -- System Information -- Process Management -- In Conclusion -- CHAPTER 12 The GUI - TkInter -- What Is TkInter? -- Terms and Conditions -- Event Handling -- Callbacks -- Widgets -- Layout Managers -- Working with TkInter -- Creating a Label -- Frame Widgets and Centering -- An Application with a Button -- Working with Entry Fields and Grid Layouts -- Creating a Class to Handle User Interfaces -- Working with List Boxes -- Scrolling a List Box -- Menus -- Context Menus -- Scale Widgets -- RadioButtons and CheckButton -- Text Widgets -- In Conclusion -- CHAPTER 13 The Web Server-Apache -- Setting Up Apache -- Testing Apache -- Your First Python CGI Script: Hello Apache -- Examining the Hello Python Script -- The cgi-bin Directory -- A Script for Displaying the Environment.
Receiving Data from an HTML File -- Sending Data to an HTML File -- How It All Works -- Dynamic HTML Displays Based on User Input -- HTML Elements -- Cookies -- Uploading Files -- Redirection -- Error Handling -- In Conclusion -- CHAPTER 14 Working with Databases -- What Is a Database? -- Simple Database Terminology -- What Is MySQL? -- Downloading and Installing -- Creating a New Database -- Creating a New User -- Opening an Existing Database -- Writing to a Database -- Reading from a Database -- Updating a Database -- Deleting from a Database -- Searching a Database -- In Conclusion -- CHAPTER 15 Putting It All Together -- Designing the Application -- Program Flow -- User Interface Design -- Database Design -- Implementing the Database Tables -- Implementing the Forms -- Adding Reviews -- Adding the Review to the Database -- Listing the Reviews -- Deleting Books -- In Conclusion -- CHAPTER 16 Python and Graphics -- The PIL Library -- Downloading -- Installing -- Verifying Your Installation -- Creating a New Image -- Function Parameters -- Drawing on the Image -- Drawing the Image -- Displaying the Image -- Saving the Image -- Loading an Existing Image -- Displaying Text -- Identifying an Image -- Rotating an Image -- Postscript Printing -- Creating Thumbnails -- In Conclusion -- Index -- A -- B -- C -- D -- E -- F -- G -- H -- I -- J -- K -- L -- M -- N -- O -- P -- Q -- R -- S -- T -- U -- V -- W -- X -- Y -- Z.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Subject Term:
Genre:
Electronic Access:
Click to View