وبلاگ بلیان

Python Developer's Handbook (Developer's Library)

معرفی کتاب «Python Developer's Handbook (Developer's Library)» نوشتهٔ André dos Santos Lessa، منتشرشده توسط نشر Sams Publishing در سال 2000. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Python Developer's Handbook (Developer's Library)» در دستهٔ بدون دسته‌بندی قرار دارد.

Annotation The Python Developer's Handbook is designed to expose experienced developers to Python and its uses. Beginning with a brief introduction to the language and its syntax, the book moves quickly into more advanced programming topics, including embedding Python, network programming, GUI toolkits, JPython, Web development, Python/C API, and more. Python is an interpreted, object-oriented programming language. Its syntax is simple and easy to learn, and it encourages programmers to write and think clearly. The Python Developer's Handbook is carefully written, well-organized introduction to this powerful, fast-growing programming language for experienced developers Python Developer's Handbook - Sams Dec 2000 -1 Python Developer's Handbook 1 About the Author 12 Acknowledgments 13 Tell Us What You Think! 15 Introduction 2 Table of Contents 5 Part I: Basic Programming 16 1. Introduction 17 Introduction to Python 18 Why Use Python? 22 Main Technical Features 26 Python Distribution 30 Installing and Configuring Python 33 Python and Other Languages 40 Patches and Bugs List 44 PSA and the Python Consortium 46 Summary 50 2. Language Review 52 Language Review 53 The Shell Environment 54 Programs 60 Built-In Data Types 70 Operators 82 Expressions 87 Control Statements 103 Data Structures 107 Functions and Procedures 119 Modules and Packages 129 Input and Output 137 File Handling 145 Summary 151 Code Example 153 3. Python Libraries 160 Python Libraries 161 Python Services 164 types 169 UserDict 170 UserList 171 operator 172 traceback 174 linecache 175 pickle 176 cPickle 177 copy_reg 178 shelve 179 copy 180 marshal 182 imp 183 parser 185 symbol 186 token 187 keyword 188 tokenize 189 pyclbr 190 code 191 codeop 192 pprint 193 repr 194 py_compile 195 compileall 196 dis 198 new 199 site 200 user 201 __builtin__ 202 __main__ 203 The String Group 204 Miscellaneous 212 Generic Operational System 217 Optional Operational System 228 Debugger 233 Profiler 234 Internet Protocol and Support 235 Internet Data Handling 239 Restricted Execution 244 Multimedia 245 Cryptographic 247 UNIX Specific 249 SGI IRIX Specific 255 Sun OS Specific 257 MS Windows Specific 258 Macintosh Specific 259 Undocumented Modules 260 Summary 267 4. Exception Handling 270 Exception Handling 271 Standard Exceptions (Getting Help from Other Modules) 277 Raising Exceptions 281 Catching Exceptions 290 try/finally 294 Creating User-defined Exceptions 296 The Standard Exception Hierarchy 299 Summary 306 Code Examples 307 5. Object-Oriented Programming 311 Object-Oriented Programming 312 An Introduction to Python OOP 314 Python Classes and Instances 319 Methods Handling 329 Special Methods 333 Inheritance 341 Polymorphism 346 Encapsulation 350 Metaclasses 354 Summary 358 Code Examples 360 Part II: Advanced Programming 367 6. Extending and Embedding Python 368 Extending and Embedding Python 369 The Python/C API 372 Extending 375 Compiling and Linking Extension Modules 395 SWIG—The Simple Wrapper Interface Generator 405 Other Wrappers 410 Embedding 412 Summary 420 Code Examples 423 7. Objects Interfacing and Distribution 428 Object Interfacing and Distribution 429 Interfacing Objects 431 Introduction to COM Objects 432 Implementing COM Objects in Python 441 Distributing Objects with Python 466 Summary 478 Code Examples 481 8. Working with Databases 489 Working with Databases 490 Flat Databases 492 DBM (Database Managers) Databases 496 Object Serialization and Persistent Storage 507 The ODBC Module 515 ADO (ActiveX Data Objects) 521 Using SQL 524 Python DB API 535 Summary 550 9. Other Advanced Topics 553 Other Advanced Topics 554 Manipulating Images 555 Working with Sounds 561 Restricted Execution Mode 570 Scientific Computing 574 Regular Expressions 582 Threads 591 Summary 598 Code Examples 600 Part III: Network Programming 604 10. Basic Network Background 605 Networking 606 Networking Concepts 607 HTTP 625 Accessing URLs 638 FTP 643 SMTP/POP3/IMAP 647 Newsgroups—Telnet and Gopher 651 Summary 655 11. Web Development 658 Web Development 659 Configuring Web Servers for Python/CGI Scripts 661 Third-Party Internet Applications 669 Other Applications 677 Site Management Tools 682 Summary 690 12. Scripting Programming 693 Web Programming 694 An Introduction to CGI 696 The cgi Module 699 Creating, Installing, and Running Your Script 704 Python Active Scripting 732 Summary 741 13. Data Manipulation 743 Parsing and Manipulating Data 744 XML Processing 745 XML-RPC 766 XDR Data Exchange Format 769 Handling Other Markup Languages 777 MIME Parsing and Manipulation 796 Generic Conversion Functions 815 Summary 824 Part IV: Graphical Interfaces 828 14. Python and GUIs 829 Python GUI Toolkits 830 The Tkinter Module 833 Overview of Other GUI Modules 835 Designing a Good Interface 850 Summary 852 15. Tkinter 854 Introduction to Tcl/Tk 855 Tkinter 857 Geometry Management 864 Handling Tkinter Events 872 Tkinter Widgets 881 Designing Applications 922 PMW—Python Mega Widgets 930 Tkinter Resources 932 Summary 934 Part V: Developing with Python 937 Part V 936 16. Development Environment 938 Building Python Applications 939 Development Strategy 940 Integrated Development Environments 954 IDLE 955 Pythonwin 976 Summary 991 17. Development Tools 992 The Development Process of Python Programs 993 Compiling Python 994 Editing Code 1001 Python Scripts 1006 Generating an Executable Python Bytecode 1012 Interpreter 1015 Debugging the Application 1021 Profiling Python 1031 Distributing Python Applications 1047 Summary 1052 Part VI: Python and Java 1055 Chapter 18 1054 18. JPython 1056 Welcome to JPython 1057 Java Integration 1062 Downloading and Installing JPython 1065 The Interpreter 1071 The JPython Registry 1074 Creating Graphical Interfaces 1078 Embedding 1081 jpythonc 1084 Running JPython Applets 1088 Summary 1091 Part VII: Appendixes 1092 Appendix A. Python/C API 1093 Python/C API 1094 The Very High Level Layer 1107 Reference Counting 1111 Exception Handling 1114 Standard Exceptions 1120 Utilities 1122 Abstract Objects Layer 1128 Concrete Objects Layer 1143 Initialization, Finalization, and Threads 1173 Memory Management 1188 Defining New Object Types 1193 Appendix B. Running Python on Specific Platforms 1198 Python on Win32 Systems 1199 Python on MacOS Systems 1204 Python on UNIX Systems 1209 Other Platforms 1212 Appendix C. Python Copyright Notices 1215 Python 2.0 License Information 1216 Python's Copyright Notice (version 1.6) 1218 Copyright Notice (until version 1.5.2) 1221 Copyright notice of the profile and pstate Modules 1223 Copyright Notice of JPython with OROMatcher 1225 Copyright Notice of JPython without OROMatcher 1228 Appendix D. Migrating to Python 2.0 1231 Python 1.6 or Python 2.0. Which One to Choose? 1232 New Development Process 1233 Enhancements 1235 Expected Code Breaking 1239 Front Matter 1241 Index - Symbols 1244 Index - B 1267 Index - C 1274 Index - D 1292 Index - E 1302 Index - F 1312 Index - G 1326 Index - H 1332 Index - I 1337 Index - J 1348 Index - K 1350 Index - L 1352 Index - M 1359 Index - N 1385 Index - O 1390 Index - P 1400 Index - Q 1421 Index - R 1422 Index - S 1430 Index - T 1454 Index - U 1462 Index - V 1468 Index - W 1472 Index - X 1479 Index - Y 1481
دانلود کتاب Python Developer's Handbook (Developer's Library)