Op werkdagen voor 23:00 besteld, morgen in huis Gratis verzending vanaf €20

Programming Python 4th Edition

Powerful Object-Oriented Programming (Covers Python 3.x)

Paperback Engels 2011 9780596158101
In herdruk, verschijningsdatum onbekend

Samenvatting

How do you apply Python once you've mastered its fundamentals? This book provides in-depth tutorials on the language's primary application domains-system administration, GUIs, and the Web. GUIs, and the Web- and explores its use in databases, networking, front-end scripting layers, text processing, and more. By focusing on commonly used tools and libraries to give you a comprehensive understanding of Python's many roles in practical, real-world programming.

You'll learn language syntax and programming techniques in a clear and concise manner, with lots of examples that illustrate both correct usage and common idioms. Completely updated for version 3.x, Programming Python also delves into the language as a software development tool, with many code examples scaled specifically for that purpose.

Topics include:
- Quick Python tour: Build a simple demo that includes data representation, object-oriented programming, object persistence, GUIs, and website basics
- System programming: Explore system interface tools and techniques for command-line scripting, processing files and folders, running programs in parallel, and more
- GUI programming: Learn to use Python's tkinter widget library
- Internet programming: Access client-side network protocols and email tools, use CGI scripts, and learn website implementation techniques
- More ways to apply Python: Implement data structures, parse text-based information, interface with databases, and extend and embed Python

Specificaties

ISBN13:9780596158101
Taal:Engels
Bindwijze:paperback
Aantal pagina's:1584
Uitgever:O'Reilly
Druk:4
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Geef uw waardering

Zeer goed Goed Voldoende Matig Slecht

Over Mark Lutz

Mark Lutz is an independent Python trainer, writer, and software developer, and is one of the primary figures in the Python community. He is the author of the O'Reilly books Programming Python and Python Pocket Reference (both in 2nd Editions), and co-author of Learning Python (both in 2nd Editions). Mark has been involved with Python since 1992, began teaching Python classes in 1997, and has instructed over 90 Python training sessions as of early 2003. In addition, he holds BS and MS degrees in computer science from the University of Wisconsin, and over the last two decades has worked on compilers, programming tools, scripting applications, and assorted client/server systems. Whenever Mark gets a break from spreading the Python word, he leads an ordinary, average life with his kids in Colorado.

Andere boeken door Mark Lutz

Inhoudsopgave

Preface

Part 1: The Beginning
1. A Sneak Preview
-"Programming Python: The Short Story"
-The Task
-Step 1: Representing Records
-Step 2: Storing Records Persistently
-Step 3: Stepping Up to OOP
-Step 4: Adding Console Interaction
-Step 5: Adding a GUI
-Step 6: Adding a Web Interface
-The End of the Demo

Part 2: System Programming
2. System Tools
-"The os.path to Knowledge"
-System Scripting Overview
-Introducing the sys Module
-Introducing the os Module

3. Script Execution Context
-"I'd Like to Have an Argument, Please"
-Current Working Directory
-Command-Line Arguments
-Shell Environment Variables
-Standard Streams

4. File and Directory Tools
-"Erase Your Hard Drive in Five Easy Steps!"
-File Tools
-Directory Tools

5. Parallel System Tools
-"Telling the Monkeys What to Do"
-Forking Processes
-Threads
-Program Exits
-Interprocess Communication
-The multiprocessing Module
-Other Ways to Start Programs
-A Portable Program-Launch Framework
-Other System Tools Coverage

6. Complete System Programs
-"The Greps of Wrath"
-A Quick Game of "Find the Biggest Python File"
-Splitting and Joining Files
-Generating Redirection Web Pages
-A Regression Test Script
-Copying Directory Trees
-Comparing Directory Trees
-Searching Directory Trees
-Visitor: Walking Directories "++"
-Playing Media Files
-Automated Program Launchers (External)

Part 3: GUI Programming
7. Graphical User Interfaces
-"Here's Looking at You, Kid"
-Python GUI Development Options
-tkinter Overview
-Climbing the GUI Learning Curve
-tkinter Coding Alternatives
-Adding Buttons and Callbacks
-Adding User-Defined Callback Handlers
-Adding Multiple Widgets
-Customizing Widgets with Classes
-Reusable GUI Components with Classes
-The End of the Tutorial
-Python/tkinter for Tcl/Tk Converts

8. A tkinter Tour, Part 1
-"Widgets and Gadgets and GUIs, Oh My!"
-Configuring Widget Appearance
-Top-Level Windows
-Dialogs
-Binding Events
-Message and Entry
-Checkbutton, Radiobutton, and Scale
-Running GUI Code Three Ways
-Images
-Viewing and Processing Images with PIL

9. A tkinter Tour, Part 2
-"On Today's Menu: Spam, Spam, and Spam"
-Menus
-Listboxes and Scrollbars
-Text
-Canvas
-Grids
-Time Tools, Threads, and Animation
-The End of the Tour

10. GUI Coding Techniques
-"Building a Better Mousetrap"
-GuiMixin: Common Tool Mixin Classes
-GuiMaker: Automating Menus and Toolbars
-ShellGui: GUIs for Command-Line Tools
-GuiStreams: Redirecting Streams to Widgets
-Reloading Callback Handlers Dynamically
-Wrapping Up Top-Level Window Interfaces
-GUIs, Threads, and Queues
-More Ways to Add GUIs to Non-GUI Code
-The PyDemos and PyGadgets Launchers

11. Complete GUI Programs
-"Python, Open Source, and Camaros"
-PyEdit: A Text Editor Program/Object
-PyPhoto: An Image Viewer and Resizer
-PyView: An Image and Notes Slideshow
-PyDraw: Painting and Moving Graphics
-PyClock: An Analog/Digital Clock Widget
-PyToe: A Tic-Tac-Toe Game Widget
-Where to Go from Here

Part 4: Internet Programming
12. Network Scripting
-"Tune In, Log On, and Drop Out"
-Python Internet Development Options
-Plumbing the Internet
-Socket Programming
-Handling Multiple Clients
-Making Sockets Look Like Files and Streams
-A Simple Python File Server

13. Client-Side Scripting
-"Socket to Me!"
-FTP: Transferring Files over the Net
-Transferring Files with ftplib
-Transferring Directories with ftplib
-Transferring Directory Trees with ftplib
-Processing Internet Email
-POP: Fetching Email
-SMTP: Sending Email
-email: Parsing and Composing Mail Content
-A Console-Based Email Client
-The mailtools Utility Package
-NNTP: Accessing Newsgroups
-HTTP: Accessing Websites
-The urllib Package Revisited
-Other Client-Side Scripting Options

14. The PyMailGUI Client
-"Use the Source, Luke"
-Major PyMailGUI Changes
-A PyMailGUI Demo
-PyMailGUI Implementation
-Ideas for Improvement

15. Server-Side Scripting
-"Oh, What a Tangled Web We Weave"
-What's a Server-Side CGI Script?
-Running Server-Side Examples
-Climbing the CGI Learning Curve
-Saving State Information in CGI Scripts
-The Hello World Selector
-Refactoring Code for Maintainability
-More on HTML and URL Escapes
-Transferring Files to Clients and Servers

16. The PyMailCGI Server
-"Things to Do When Visiting Chicago"
-The PyMailCGI Website
-The Root Page
-Sending Mail by SMTP
-Reading POP Email
-Processing Fetched Mail
-Utility Modules
-Web Scripting Trade-Offs

Part 5: Tools and Techniques
17. Databases and Persistence
-"Give Me an Order of Persistence, but Hold the Pickles"
-Persistence Options in Python
-DBM Files
-Pickled Objects
-Shelve Files
-The ZODB Object-Oriented Database
-SQL Database Interfaces
-ORMs: Object Relational Mappers
-PyForm: A Persistent Object Viewer (External)

18. Data Structures
-"oses Are Red, Violets Are Blue; Lists Are Mutable, and So Is Set Foo"
-Implementing Stacks
-Implementing Sets
-Subclassing Built-in Types
-Binary Search Trees
-Graph Searching
-Permuting Sequences
-Reversing and Sorting Sequences
-PyTree: A Generic Tree Object Viewer

19. Text and Language
-"See Jack Hack. Hack, Jack, Hack"
-Strategies for Processing Text in Python
-String Method Utilities
-Regular Expression Pattern Matching
-XML and HTML Parsing
-Advanced Language Tools
-Custom Language Parsers
-PyCalc: A Calculator Program/Object

20. Python/C Integration
-"I Am Lost at C"
-Extending Python in C: Overview
-A Simple C Extension Module
-The SWIG Integration Code Generator
-Wrapping C Environment Calls
-Wrapping C++ Classes with SWIG
-Other Extending Tools
-Embedding Python in C: Overview
-Basic Embedding Techniques
-Registering Callback Handler Objects
-Using Python Classes in C
-Other Integration Topics

Part 6: The End
21. Conclusion: Python and the Development Cycle
-"That's the End of the Book, Now Here's the Meaning of Life"
-"Something's Wrong with the Way We Program Computers"
-The "Gilligan Factor"
-Doing the Right Thing
-Enter Python
-But What About That Bottleneck?
-On Sinking the Titanic
-So What's "Python: The Sequel"?
-In the Final Analysis...

Index

Managementboek Top 100

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Programming Python 4th Edition