Practical Python

  • 8h 23m
  • Magnus Lie Hetland
  • Apress
  • 2002
  • Obtain practical Python instruction by focusing on what the mainstream developer needs to know
  • Gain valuable Python experience by following along with the development of numerous useful projects, including a file-sharing application with a graphical user interface (GUI), a chat server, and a full-screen graphical arcade game.
  • Easily integrate and expand on the ten projects by downloading the freely available source code

Practical Python offers a highly useful guide to the Python programming language. In disarmingly readable prose, Magnus Lie Hetland leads readers through those concepts of most importance to the budding Python developer. Following a succinct overview of the installation process, Hetland brings the reader up-to-speed regarding the general programming precepts common to every high-level language, including datatypes, conditionals and looping, abstraction, and modularity. Notably, Hetland takes great care to provide a thorough introduction to Python’s rich datatype offering, including lists, tuples, and dictionaries, providing numerous examples aimed toward familiarizing the reader with their subtle, yet important differences.

Primed with the language’s foundational knowledge, readers are then introduced to Python’s file-handling, database, GUI, and string-handling capabilities. Additionally, readers are treated to an excellent review of Python’s object-oriented, functional, and exception-handling capabilities. All chapters are peppered with references to Python’s useful built-in functions, which is done with the intention of demonstrating the considerable features offered by the default Python distribution.

Hetland devotes the second half of the book to project development, taking great care to choose a series of ten increasingly complex applications that are of timely and wide-ranging interest to burgeoning and expert developers alike. Project focus includes automated document conversion, newsgroup administration, graphical PDF document generation, remote document maintenance, the creation of a peer-to-peer system with XML-RPC, database integration, and GUI and game development.

About the Author

Magnus Lie Hetland is a Ph.D. student at the Norwegian University of Science and Technology where he works with algorithms for knowledge discovery in sequences. He has been a devoted Python fan for years and is well known for his online tutorials, Instant Python and Instant Hacking. He is the founder and lead developer of Anygui, a respected Python GUI unification project.

In this Book

  • Instant Hacking: The Basics
  • Lists and Tuples
  • Working with Strings
  • Dictionaries: When Indices Won't Do
  • Conditionals, Loops, and Some Other Statements
  • Abstraction
  • More Abstraction
  • Exceptions
  • Magic Methods, Properties, and Iterators
  • Batteries Included
  • Files and Stuff
  • Graphical User Interfaces
  • Playful Programming
  • Project 1: Instant Markup
  • Project 2: Painting a Pretty Picture
  • Project 3: XML for all Occasions
  • Project 4: In the News
  • Project 5: A Virtual Tea Party
  • Project 6: Remote Editing with CGI
  • Project 7: Your Own Bulletin Board
  • Project 8: File Sharing with XML-RPC
  • Project 9: File Sharing II—Now with GUI!
  • Project 10: Do-it-Yourself Arcade Game
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE