|
![]() |
|||
|
||||
OverviewPython Essential Reference, Second Edition, is the definitive guide to the Python programming language. Designed for programmers, it covers the core language, more than 100 modules in the standard library, and the techniques used to extend Python with compiled procedures in C or C++. Coverage expands upon and clarifies existing Python documentation - especially for advanced topics, including operating system interfaces, threads, network programming, and Unicode. Concise, to the point, and extensively indexed, readers will find this volume packed with information not previously available in any other single reference source. Updated for Python 2.1, it is a must-have for any serious programmer wanting to develop advanced Python applications. As a comprehensive reference to the Python programming language, this book will help you: *Learn about the features in Python 2.0 and 2.1 *Master the details of Python types, operators, and the execution model *Discover the details of Unicode and internationalization support *Learn the details of operating system interfaces, threads, and network-programming modules *Build C/C++ extensions to Python *Make effective use of the Python library *Find the information you need to start developing advanced Python applications Full Product DetailsAuthor: David BeazleyPublisher: Pearson Education (US) Imprint: Sams Publishing Edition: 2nd edition Dimensions: Width: 15.20cm , Height: 2.20cm , Length: 22.90cm Weight: 0.549kg ISBN: 9780735710917ISBN 10: 0735710910 Pages: 416 Publication Date: 28 June 2001 Audience: College/higher education , Tertiary & Higher Education Replaced By: 9780672328626 Format: Paperback Publisher's Status: Out of Print Availability: Out of stock ![]() Table of Contents1. A Tutorial Introduction. Running Python. Variables and Arithmetic Expressions. Conditionals. File Input and Output. Strings. Lists and Tuples. Loops. Dictionaries. Functions. Classes. Exceptions. Modules. 2. Lexical Conventions and Syntax. Line Structure and Indentation. Identifiers and Reserved Words. Literals. Operators, Delimiters, and Special Symbols. Documentation Strings. 3. Types and Objects. Terminology. Object Identity and Type. Reference Counting and Garbage Collection. References and Copies. Special Methods Performance and Memory Considerations. 4. Operators and Expressions. Operations on Numbers. Operations on Sequences. Operations on Dictionaries. Augmented Assignment. The Attribute (.) Operator. Type Conversion. Unicode Strings. Boolean Expressions and Truth Values. Object Equality and Identity. Order of Evaluation. Conditionals. Loops. 5. Control Flow. Exceptions. Defining New Exceptions. Assertions and _ _debug_ _. Functions. 6. Functions and Functional Programming. Parameter Passing and Return Values. Scoping Rules. Recursion. The apply() Function. The lambda Operator. map(), zip(), reduce(), and filter(). List Comprehensions. eval(), exec, execfile(), and compile(). The class statement. 7. Classes and Object-Oriented Programming. Class Instances. Reference Counting and Instance Destruction. Inheritance. Polymorphism. Information Hiding. Operator Overloading. Classes, Types, and Membership Tests. 8. Modules and Packages. Modules. The Module Search Path. Module Loading and Compilation. Module Reloading. Packages. 9. Input and Output. Reading Options and Environment Variables. Files. Standard Input, Output, and Error. The print Statement. Persistence. Unicode I/O. Interpreter Options and Environment. 10. Execution Environment. Interactive Sessions. Launching Python Applications. Site Configuration Files. Enabling Future Features. Program Termination. A. The Python Library. Built-in Functions and Exceptions. Mathematics. String Handling. Data Management and Object Persistence. Operating System Services. Threads. Network Programming. Internet Data Handling and Encoding. Restricted Execution. Miscellaneous Modules. The Python Debugger. The Python Profiler. Undocumented Modules. B. Extending and Embedding Python. Enabling Optional Modules. Compilation of Extensions. Converting Data from Python to C. Converting Data from C to Python. Error Handling. Reference Counting. Calling Python from C. Abstract Object Layer. Low-Level Functions on Built-in Types. Defining New Types. Special Methods for Types. Threads. Embedding. Extension Building Tools. C. Summary of Changes. Python 1.6. Python 2.0. Python 2.1. Index.ReviewsAuthor InformationDavid M. Beazley is the developer of SWIG, a popular software package for integrating C programs with interpreted languages including Python, Perl, and Tcl. He has been actively involved with the Python community since 1996 and is currently working on projects related to mixed-mode debugging of scripting language extensions. Dave spent seven years working in the Theoretical Physics Division at Los Alamos National Laboratory, where he helped pioneer the use of Python with high-performance simulation software running on parallel computers. He is currently an assistant professor in the Department of Computer Science at the University of Chicago, where he enjoys tormenting students with insane programming projects in operating systems, networks, and compilers courses. He can be reached at beazley@cs.uchicago.edu. Tab Content 6Author Website:Countries AvailableAll regions |