وبلاگ بلیان

Core Python Programming (Prentice Hall Ptr Core Series)

معرفی کتاب «Core Python Programming (Prentice Hall Ptr Core Series)» نوشتهٔ Wesley J. Chun در سال 2001. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Core Python Programming (Prentice Hall Ptr Core Series)» در دستهٔ بدون دسته‌بندی قرار دارد.

\* New to Python? This is the developer's guide to Python development! \* Learn the core features of Python as well as advanced topics such as regular expressions, multithreaded programming, Web/Internet and network development, GUI development with Tk(inter) and more \* Also includes features found in the new Python 1.6 and 2.0 releases \* CD-ROM: Complete Python distributions (source code, documentation, and various binaries) plus all example scripts in the bookPython is an Internet and systems programming language that is soaring in popularity in today's fast-paced software development environment, and no wonder: it's simple (yet robust), object-oriented (yet can be used as a procedural language), extensible, scalable and features an easy to learn syntax that is clear and concise. Python combines the power of a compiled object language like Java and C++ with the ease of use and rapid development time of a scripting language. In fact, it's syntax is so easy to understand that you are more likely to pick it up faster than any of the other popular scripting languages in use today!In Core Python Programming, Internet software engineer and technical trainer Wesley Chun provides intermediate and experienced developers all they need to know to learn Python-fast. Like all Core Series books, Core Python Programming delivers hundreds of industrial-strength code snippets and examples, all targeted at professional developers who want to leverage their existing skills! In particular, Core Python Programming presents numerous interactive examples that can be entered into the Python interpreter right in front of you!Finally, we present a chapter that shows you step-by-step how to extend Python using C or C++. \* Python syntax and style \* Development and Run-time Environments \* Objects and Python memory management \* Standard data types, methods, and operators \* Loops and conditionals \* Files and Input/Output \* Exceptions and error handling \* Functions, scope, arguments, and functional programming \* Importing modules and module attributes \* Object-oriented Programming with classes, methods, and instances \* Callable Objects \* Extending PythonCoverage of the Python standard module library and client-server application development includes comprehensive introductions to the following topics in Python programming: \* Regular expressions \* TCP/IP and UDP/IP Network programming using sockets \* Operating system interface \* GUI development with Tk using Tkinter \* Multithreaded programming \* Interactive Web/CGI/Internet applications \* Executing code in a restricted environment \* Inheritance, type emulation, operator overloading, and delegation in an OOP environmentFinally, we provide an introduction to the new features introduced in Python 1.6. These include Unicode string support, the new function invocation syntax which lets the caller provide a tuple of positional arguments and/or a dictionary of keyword arguments, and the new string methods. We also provide a glimpse into features that will only be found in the newer 2.0 release.Every Core Series book: \* DEMONSTRATES how to write commercial-quality code \* FEATURES dozens of programs and examples! \* FOCUSES on the features and functions most important to real developers \* PROVIDES objective, unbiased coverage of cutting-edge technologies-no \* hype!Core Python Programming delivers: \* Coverage of the core parts of the Python language \* Real-world insights for developing Web/Internet, network, multithreaded and GUI applications \* Tables and charts detailing Python modules, built-in functions, operators, and attributes \* Code snippets to try live with Python's interactive interpreter, hammering the concepts home \* Extensive code examples-including several complete sample applicationsCD-ROM includes complete Python source code and documentation distributions for Unix/Linux along with binaries for Windows and Macintosh platforms plus source code for all examples in the book. Core Python -1 Core Python Programming 1 Table of Contents 5 Welcome to Python! 4 Style:Technical, Yet Easy Reading 13 Author's Experience with Python 14 Book Contents 15 Optional Sections 38 Conventions 39 Book Support 40 Acknowledgements 41 Part I: CORE PYTHON 44 Part I : Core Python 16 Chapter 1 —Welcome to Python! 17 1. Welcome to Python! 45 What Is Python? 46 History of Python 47 Features of Python 48 Obtaining Python 53 Obtaining Python 55 Installing Python 56 Running Python 58 Python Documentation 66 Comparing Python 67 JPython and Some Nomenclature 69 Exercises 70 Chapter 2 —Getting Started 18 2. Getting Started 72 Program Output, the print Statement and "Hello World!" 74 Program Input and the raw_input() Built-in Function 76 Comments 77 Operators 78 Variables and Assignment 81 Numbers 83 Strings 85 Lists and Tuples 87 Dictionaries 89 Code Blocks Use Indentation 90 if Statement 91 while Loop 93 for Loop and the range() Built-in Function 94 Files and the open() Built-in Function 97 Errors and Exceptions 99 Functions 100 Classes 102 Modules 106 Exercises 109 Chapter 3 —Syntax and Style 19 3. Syntax and Style 114 Statements and Syntax 115 Variable Assignment 119 Identifiers 123 Basic Style Guidelines 126 Memory Management 132 First Python Application 136 Exercises 142 Chapter 4 —Python Objects 20 4. Python Objects 144 Python Objects 145 Standard Types 147 Other Built-in Types 149 Internal Types 151 Standard Type Operators 155 Standard Type Built-in Functions 162 Categorizing the Standard Types 170 Unsupported Types 176 Exercises 178 Chapter 5 —Numbers 21 5. Numbers 180 Introduction to Numbers 181 Integers 183 Floating Point Real Numbers 185 Complex Numbers 186 Operators 189 Built-in Functions 198 Related Modules 207 Exercises 211 Chapter 6 —Sequences: Strings, Lists, and Tuples 22 6. Sequences: Strings, Lists, and Tuples 215 Sequences 217 Strings 224 Strings and Operators 227 String-only Operators 234 Built-in Functions 240 String Built-in Methods 242 Special Features of Strings 247 Related Modules 257 Summary of String Highlights 259 Lists 261 Operators 264 Built-in Functions 269 List Type Built-in Methods 273 Special Features of Lists 277 Tuples 286 Tuple Operators and Built-in Functions 289 Special Features of Tuples 291 Related Modules 296 *Shallow and Deep Copies 297 Exercises 302 Chapter 7 —Dictionaries 23 7. Dictionaries 308 Introduction to Dictionaries 309 Operators 314 Built-in Functions 316 Built-in Methods 321 Dictionary Keys 325 Exercises 331 Chapter 8 —Conditionals and Loops 24 8. Conditionals and Loops 335 if statement 336 else Statement 338 elif (a.k.a. else-if ) Statement 341 while Statement 343 for Statement 346 break Statement 352 continue Statement 354 pass Statement 356 else Statement... Take Two 358 Exercises 361 Chapter 9 —Files and Input/Output 25 9. Files and Input/Output 366 File Objects 367 File Built-in Function [ open() ] 368 File Built-in Methods 371 File Built-in Attributes 377 Standard Files 378 Command-line Arguments 380 File System 382 File Execution 391 Persistent Storage Modules 392 Related Modules 395 Exercises 397 Chapter 10 —Errors and Exceptions 26 10. Errors And Exceptions 402 What Are Exceptions? 404 Exceptions in Python 406 Detecting and Handling Exceptions 410 *Exceptions as Strings 426 *Exceptions as Classes 428 Raising Exceptions 432 Assertions 435 Standard Exceptions 437 *Creating Exceptions 439 Why Exceptions (Now)? 447 Why Exceptions at All? 449 Exceptions and the sys Module 450 Related Modules 452 Exercises 453 Chapter 11 —Functions 27 11. Functions 457 What Are Functions? 458 Calling Functions 461 Creating Functions 463 Passing Functions 466 Formal Arguments 469 Positional Arguments 470 Default Arguments 472 Why Default Arguments? 473 Default Function Object Argument Example 476 Variable-length Arguments 478 Non-keyword Variable Arguments (Tuple) 479 Keyword Variable Arguments (Dictionary) 481 Calling Functions with Variable Argument Objects 484 Functional Programming 486 Anonymous Functions and lambda 487 Built-in Functions: apply(), filter(), map(), reduce() 491 * apply() 492 Lines 1 - 4 496 Lines 6 - 7 497 Lines 9 - 28 498 Lines 30-41 499 filter() 502 map() 506 reduce() 513 Variable Scope 517 *Recursion 522 Exercises 524 Chapter 12 —Modules 28 12. Modules 528 What are Modules? 529 Modules and Files 530 Namespaces 533 Importing Modules 537 Importing Module Attributes 538 Module Built-in Functions 541 Packages 544 Other Features of Modules 547 Exercises 549 Chapter 13 —Classes and OOP 29 13. Classes and OOP 551 Introduction 553 Object-oriented Programming 562 Classes 567 Class Attributes 569 Instances 576 Instance Attributes 580 Binding and Method Invocation 590 Composition 595 Subclassing and Derivation 597 Inheritance 599 Built-in Functions for Classes, Instances, and Other Objects 606 Type vs. Classes/Instances 614 Customizing Classes with Special Methods 615 Privacy 630 Delegation 631 Related Modules and Documentation 641 Exercises 645 Chapter 14 —Execution Environment 30 14. Execution Environment 652 Callable Objects 654 Code Objects 662 Executable Object Statements and Built-in Functions 663 Executing Other (Python) Programs 676 Executing Other (Non-Python) Programs 679 Restricted Execution 686 Terminating Execution 691 Related Modules 695 Exercises 696 Part II : Advanced Topics 31 II: Advanced Topics 698 Chapter 15 —Regular Expressions 32 15. Regular Expressions 699 Introduction/Motivation 700 Special Symbols and Characters for REs 704 REs and Python 711 Regular Expression Adventures 728 Exercises 737 Chapter 16 —Network Programming with Sockets 33 16. Network Programming 741 Introduction 742 Sockets: Communication Endpoints 746 Network Programming in Python 749 Related Modules 762 Exercises 764 Chapter 17 —Multithreaded Programming 34 17. Multithreaded Programming 768 Introduction/Motivation 769 Threads and Processes 771 Threads and Python 773 thread Module 778 threading Module 784 Exercises 798 Chapter 18 —GUI Programming with Tkinter 35 18. GUI Programming with Tkinter 800 Introduction 801 Tkinter and Python Programming 803 Tkinter Examples 808 Related Modules and Other GUIs 819 Exercises 820 Chapter 19 —Web Programming 36 19. Web Programming 822 Introduction 823 Web Surfing with Python: Creating Simple Web Clients 827 Advanced Web Clients 837 CGI: Helping Web Servers Process Client Data 844 Building CGI Application 847 Advanced CGI 864 Web (HTTP) Servers 878 Related Modules 882 Exercises 886 Chapter 20 —Extending Python 37 20. Extending Python 891 Introduction/Motivation 892 Related Topics 909 Exercises 911 Appendix A. 926 Answers to Selected Exercises 912 Appendix B. 929 Other Reading and References 927 Other Printed References 930 Online References 931 Appendix C. 944 Python Operator Summary 942 Appendix D. 952 What's New in Python 2.0? 945 Core Python Programming - catalog information 953 A quick guide to everything anyone would want to know about the soaringly popular Internet programming language, Python. Provides an introduction to new features introduced in Python 1.6, and topics covered include regular expressions, extending Python, and OOP. The CD-ROM includes the source code for all of the examples in the text. Softcover.
دانلود کتاب Core Python Programming (Prentice Hall Ptr Core Series)