ebook img

Core Python Programming PDF

1155 Pages·2006·5.746 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Core Python Programming

Core Python Programming, Second Edition Core Python Programming, Second Edition By Wesley J. Chun ............................................... Publisher: Prentice Hall Pub Date: September 18, 2006 Print ISBN-10: 0-13-226993-7 Print ISBN-13: 978-0-13-226993-3 Pages: 1120 Table of Contents | Index Praise for Core Python Programming "The long-awaited second edition of Wesley Chun's Core Python Programming proves to be well worth the waitits deep and broad coverage and useful exercises will help readers learn and practice good Python." Alex Martelli, author of Python in a Nutshell and editor of Python Cookbook "There has been lot of good buzz around Wesley Chun's Core Python Programming. It turns out that all the buzz is well earned. I think this is the best book currently available for learning Python. I would recommend Chun's book over Learning Python (O'Reilly), Programming Python (O'Reilly), or The Quick Python Book (Manning)." David Mertz, Ph.D., IBM DeveloperWorks® "I have been doing a lot of research [on] Python for the past year and have seen a number of positive reviews of your book. The sentiment expressed confirms the opinion that Core Python Programming is now considered the standard introductory text." Richard Ozaki, Lockheed Martin "Finally, a book good enough to be both a textbook and a reference on the Python language now exists." Michael Baxter, Linux Journal "Very well written. It is the clearest, friendliest book I have come across yet for explaining Python, and putting it in a wider context. It does not presume a large amount of other experience. It does go into some important Python topics carefully and in depth. Unlike too many beginner books, it never condescends or tortures the reader with childish hide-and-seek prose games. [It] sticks to gaining a solid grasp of Python syntax and structure." http://python.org bookstore Web site file:///D|/1/0132269937/main.html (1 von 4) [13.11.2007 16:22:22] Core Python Programming, Second Edition "[If ] I could only own one Python book, it would be Core Python Programming by Wesley Chun. This book manages to cover more topics in more depth than Learning Python but includes it all in one book that also more than adequately covers the core language. [If] you are in the market for just one book about Python, I recommend this book. You will enjoy reading it, including its wry programmer's wit. More importantly, you will learn Python. Even more importantly, you will find it invaluable in helping you in your day-to-day Python programming life. Well done, Mr. Chun!" Ron Stephens, Python Learning Foundation "I think the best language for beginners is Python, without a doubt. My favorite book is Core Python Programming." s003apr, MP3Car.com Forums "Personally, I really like Python. It's simple to learn, completely intuitive, amazingly flexible, and pretty darned fast. Python has only just started to claim mindshare in the Windows world, but look for it to start gaining lots of support as people discover it. To learn Python, I'd start with Core Python Programming by Wesley Chun." Bill Boswell, MCSE, Microsoft Certified Professional Magazine Online "If you learn well from books, I suggest Core Python Programming. It is by far the best I've found. I'm a Python newbie as well and in three months time I've been able to implement Python in projects at work (automating MSOffice, SQL DB stuff, etc.)." ptonman, Dev Shed Forums "Python is simply a beautiful language. It's easy to learn, it's cross-platform, and it works. It has achieved many of the technical goals that Java strives for. A one-sentence description of Python would be: 'All other languages appear to have evolved over time--but Python was designed.' And it was designed well. Unfortunately, there aren't a large number of books for Python. The best one I've run across so far is Core Python Programming." Chris Timmons, C. R. Timmons Consulting "If you like the Prentice Hall Core series, another good full-blown treatment to consider would be Core Python Programming. It addresses in elaborate concrete detail many practical topics that get little, if any, coverage in other books." Mitchell L Model, MLM Consulting "Core Python Programming is an amazingly easy read! The liberal use of examples helps clarify some of the more subtle points of the language. And the comparisons to languages with which I'm already familiar (C/C++/ Java) get you programming in record speed." Michael Santos, Ph.D., Green Hills Software file:///D|/1/0132269937/main.html (2 von 4) [13.11.2007 16:22:22] Core Python Programming, Second Edition The Complete Developer's Guide to PythonFully Updated for Python 2.5 New to Python? The definitive guide to Python development for experienced programmers ● Covers core language features thoroughly, including those found in the latest Python releases ● Learn advanced topics such as regular expressions, networking, multithreading, GUI, and Web/CGI ● Includes brand-new chapters on database, Internet, Jython, and COM Client programming ● Presents hundreds of code samples and practical exercises to strengthen your Python skills ● Python is an agile, robust, expressive, fully object-oriented, extensible, and scalable programming language. It combines the power of compiled languages with the simplicity and rapid development of scripting languages. In Core Python Programming, Second Edition, leading Python developer and trainer Wesley Chun helps you learn Python quickly and comprehensively so that you can immediately succeed with any Python project. Using practical code examples, Chun introduces all the fundamentals of Python programming: syntax, objects and memory management, data types, operators, files and I/O, functions, generators, error handling and exceptions, loops, iterators, functional programming, object-oriented programming and more. After you learn the core fundamentals of Python, he shows you what you can do with your new skills, delving into advanced topics, such as regular expressions, networking programming with sockets, multithreading, GUI development, Web/CGI programming and extending Python in C. This edition reflects major enhancements in the Python 2.x series, including 2.5 as well as capabilities set for future versions. It contains new chapters on database and Internet client programming, plus coverage of many new topics, including new-style classes, Java and Jython, Microsoft Office (Win32 COM Client) programming, and much more. Learn professional Python style, best practices, and good programming habits ● Gain a deep understanding of Python's objects and memory model as well as its OOP features, including ● those found in Python's new-style classes Build more effective Web, CGI, Internet, and network and other client/server applications ● Learn how to develop your own GUI applications using Tkinter and other toolkits available for Python ● Improve the performance of your Python applications by writing extensions in C and other languages, or ● enhance I/O-bound applications by using multithreading Learn about Python's database API and how to use a variety of database systems with Python, including ● MySQL, Postgres, and SQLite Core Python Programming delivers file:///D|/1/0132269937/main.html (3 von 4) [13.11.2007 16:22:22] Core Python Programming, Second Edition Systematic, expert coverage of Python's core features ● Powerful insights for developing complex applications ● Easy-to-use tables and charts detailing Python modules, operators, functions, and methods ● Dozens of professional-quality code examples, from quick snippets to full-fledged applications ● file:///D|/1/0132269937/main.html (4 von 4) [13.11.2007 16:22:22] Table of Contents Core Python Programming, Second Edition By Wesley J. Chun ............................................... Publisher: Prentice Hall Pub Date: September 18, 2006 Print ISBN-10: 0-13-226993-7 Print ISBN-13: 978-0-13-226993-3 Pages: 1120 Table of Contents | Index Copyright Praise for Core Python Programming Prentice Hall Core Series Preface Acknowledgments Part I: Core Python Chapter 1. Welcome to Python! Section 1.1. What Is Python? Section 1.2. Origins Section 1.3. Features Section 1.4. Downloading and Installing Python Section 1.5. Running Python Section 1.6. Python Documentation Section 1.7. Comparing Python Section 1.8. Other Implementations Section 1.9. Exercises Chapter 2. Getting Started Section 2.1. Program Output, the print Statement, and "Hello World!" Section 2.2. Program Input and the raw_input()Built-in Function Section 2.3. Comments Section 2.4. Operators Section 2.5. Variables and Assignment Section 2.6. Numbers Section 2.7. Strings Section 2.8. Lists and Tuples Section 2.9. Dictionaries Section 2.10. Code Blocks Use Indentation Section 2.11. if Statement Section 2.12. while Loop file:///D|/1/0132269937/toc.html (1 von 8) [13.11.2007 16:22:30] Table of Contents Section 2.13. for Loop and the range() Built-in Function Section 2.14. List Comprehensions Section 2.15. Files and the open() and file() Built-in Functions Section 2.16. Errors and Exceptions Section 2.17. Functions Section 2.18. Classes Section 2.19. Modules Section 2.20. Useful Functions Section 2.21. Exercises Chapter 3. Python Basics Section 3.1. Statements and Syntax Section 3.2. Variable Assignment Section 3.3. Identifiers Section 3.4. Basic Style Guidelines Section 3.5. Memory Management Section 3.6. First Python Programs Section 3.7. Related Modules/Developer Tools Section 3.8. Exercises Chapter 4. Python Objects Section 4.1. Python Objects Section 4.2. Standard Types Section 4.3. Other Built-in Types Section 4.4. Internal Types Section 4.5. Standard Type Operators Section 4.6. Standard Type Built-in Functions Section 4.7. Type Factory Functions Section 4.8. Categorizing the Standard Types Section 4.9. Unsupported Types Section 4.10. Exercises Chapter 5. Numbers Section 5.1. Introduction to Numbers Section 5.2. Integers Section 5.3. Double Precision Floating Point Numbers Section 5.4. Complex Numbers Section 5.5. Operators Section 5.6. Built-in and Factory Functions Section 5.7. Other Numeric Types Section 5.8. Related Modules Section 5.9. Exercises Chapter 6. Sequences: Strings, Lists, and Tuples Section 6.1. Sequences file:///D|/1/0132269937/toc.html (2 von 8) [13.11.2007 16:22:30] Table of Contents Section 6.2. Strings Section 6.3. Strings and Operators Section 6.4. String-Only Operators Section 6.5. Built-in Functions Section 6.6. String Built-in Methods Section 6.7. Special Features of Strings Section 6.8. Unicode Section 6.9. Related Modules Section 6.10. Summary of String Highlights Section 6.11. Lists Section 6.12. Operators Section 6.13. Built-in Functions Section 6.14. List Type Built-in Methods Section 6.15. Special Features of Lists Section 6.16. Tuples Section 6.17. Tuple Operators and Built-in Functions Section 6.18. Special Features of Tuples Section 6.19. Related Modules Section 6.20. *Copying Python Objects and Shallow and Deep Copies Section 6.21. Summary of Sequences Section 6.22. Exercises Chapter 7. Mapping and Set Types Section 7.1. Mapping Type: Dictionaries Section 7.2. Mapping Type Operators Section 7.3. Mapping Type Built-in and Factory Functions Section 7.4. Mapping Type Built-in Methods Section 7.5. Dictionary Keys Section 7.6. Set Types Section 7.7. Set Type Operators Section 7.8. Built-in Functions Section 7.9. Set Type Built-in Methods Section 7.10. Operator, Function/Method Summary Table for Set Types Section 7.11. Related Modules Section 7.12. Exercises Chapter 8. Conditionals and Loops Section 8.1. if Statement Section 8.2. else Statement Section 8.3. elif (aka else-if) Statement Section 8.4. Conditional Expressions (aka "the Ternary Operator") Section 8.5. while Statement Section 8.6. for Statement file:///D|/1/0132269937/toc.html (3 von 8) [13.11.2007 16:22:30] Table of Contents Section 8.7. break Statement Section 8.8. continue Statement Section 8.9. pass Statement Section 8.10. else Statement ... Take Two Section 8.11. Iterators and the iter() Function Section 8.12. List Comprehensions Section 8.13. Generator Expressions Section 8.14. Related Modules Section 8.15. Exercises Chapter 9. Files and Input/Output Section 9.1. File Objects Section 9.2. File Built-in Functions [open() and file()] Section 9.3. File Built-in Methods Section 9.4. File Built-in Attributes Section 9.5. Standard Files Section 9.6. Command-Line Arguments Section 9.7. File System Section 9.8. File Execution Section 9.9. Persistent Storage Modules Section 9.10. Related Modules Section 9.11. Exercises Chapter 10. Errors and Exceptions Section 10.1. What Are Exceptions? Section 10.2. Exceptions in Python Section 10.3. Detecting and Handling Exceptions Section 10.4. Context Management Section 10.5. *Exceptions as Strings Section 10.6. Raising Exceptions Section 10.7. Assertions Section 10.8. Standard Exceptions Section 10.9. *Creating Exceptions Section 10.10. Why Exceptions (Now)? Section 10.11. Why Exceptions at All? Section 10.12. Exceptions and the sys Module Section 10.13. Related Modules Section 10.14. Exercises Chapter 11. Functions and Functional Programming Section 11.1. What Are Functions? Section 11.2. Calling Functions Section 11.3. Creating Functions Section 11.4. Passing Functions file:///D|/1/0132269937/toc.html (4 von 8) [13.11.2007 16:22:30] Table of Contents Section 11.5. Formal Arguments Section 11.6. Variable-Length Arguments Section 11.7. Functional Programming Section 11.8. Variable Scope Section 11.9. *Recursion Section 11.10. Generators Section 11.11. Exercises Chapter 12. Modules Section 12.1. What Are Modules? Section 12.2. Modules and Files Section 12.3. Namespaces Section 12.4. Importing Modules Section 12.5. Features of Module Import Section 12.6. Module Built-in Functions Section 12.7. Packages Section 12.8. Other Features of Modules Section 12.9. Related Modules Section 12.10. Exercises Chapter 13. Object-Oriented Programming Section 13.1. Introduction Section 13.2. Object-Oriented Programming Section 13.3. Classes Section 13.4. Class Attributes Section 13.5. Instances Section 13.6. Instance Attributes Section 13.7. Binding and Method Invocation Section 13.8. Static Methods and Class Methods Section 13.9. Composition Section 13.10. Subclassing and Derivation Section 13.11. Inheritance Section 13.12. Built-in Functions for Classes, Instances, and Other Objects Section 13.13. Customizing Classes with Special Methods Section 13.14. Privacy Section 13.15. *Delegation Section 13.16. Advanced Features of New-Style Classes (Python 2.2+) Section 13.17. Related Modules and Documentation Section 13.18. Exercises Chapter 14. Execution Environment Section 14.1. Callable Objects Section 14.2. Code Objects Section 14.3. Executable Object Statements and Built-in Functions file:///D|/1/0132269937/toc.html (5 von 8) [13.11.2007 16:22:30]

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.