توضیحاتی در مورد کتاب Dive Into Python
نام کتاب : Dive Into Python
عنوان ترجمه شده به فارسی : شیرجه رفتن به پایتون
سری :
ناشر : Apress
سال نشر : 2004
تعداد صفحات : 328
ISBN (شابک) : 9781430207009 , 1430207000
زبان کتاب : German
فرمت کتاب : pdf
حجم کتاب : 1 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
فهرست مطالب :
Table of Contents......Page 2
Dive Into Python......Page 7
1.2. Python on Windows......Page 8
1.3. Python on Mac OS X......Page 9
1.5. Python on RedHat Linux......Page 11
1.7. Python Installation from Source......Page 12
1.8. The Interactive Shell......Page 13
1.9. Summary......Page 14
2.2. Declaring Functions......Page 15
2.3. Documenting Functions......Page 16
2.4. Everything Is an Object......Page 17
2.5. Indenting Code......Page 19
2.6. Testing Modules......Page 20
3.1. Introducing Dictionaries......Page 21
3.2. Introducing Lists......Page 23
3.3. Introducing Tuples......Page 28
3.4. Declaring variables......Page 29
3.5. Formatting Strings......Page 31
3.6. Mapping Lists......Page 32
3.7. Joining Lists and Splitting Strings......Page 34
3.8. Summary......Page 35
4.1. Diving In......Page 37
4.2. Using Optional and Named Arguments......Page 38
4.3. Using type, str, dir, and Other Built-In Functions......Page 39
4.4. Getting Object References With getattr......Page 42
4.5. Filtering Lists......Page 44
4.6. The Peculiar Nature of and and or......Page 45
4.7. Using lambda Functions......Page 47
4.8. Putting It All Together......Page 49
4.9. Summary......Page 51
5.1. Diving In......Page 53
5.2. Importing Modules Using from module import......Page 55
5.3. Defining Classes......Page 56
5.4. Instantiating Classes......Page 59
5.5. Exploring UserDict: A Wrapper Class......Page 60
5.6. Special Class Methods......Page 62
5.7. Advanced Special Class Methods......Page 65
5.8. Introducing Class Attributes......Page 66
5.9. Private Functions......Page 68
5.10. Summary......Page 69
6.1. Handling Exceptions......Page 70
6.2. Working with File Objects......Page 72
6.3. Iterating with for Loops......Page 76
6.4. Using sys.modules......Page 78
6.5. Working with Directories......Page 80
6.6. Putting It All Together......Page 83
6.7. Summary......Page 84
7.2. Case Study: Street Addresses......Page 87
7.3. Case Study: Roman Numerals......Page 89
7.4. Using the {n,m} Syntax......Page 91
7.5. Verbose Regular Expressions......Page 94
7.6. Case study: Parsing Phone Numbers......Page 95
7.7. Summary......Page 99
8.1. Diving in......Page 100
8.2. Introducing sgmllib.py......Page 104
8.3. Extracting data from HTML documents......Page 106
8.4. Introducing BaseHTMLProcessor.py......Page 108
8.5. locals and globals......Page 110
8.6. Dictionary-based string formatting......Page 113
8.7. Quoting attribute values......Page 114
8.8. Introducing dialect.py......Page 115
8.9. Putting it all together......Page 117
8.10. Summary......Page 119
9.1. Diving in......Page 121
9.2. Packages......Page 127
9.3. Parsing XML......Page 129
9.4. Unicode......Page 131
9.5. Searching for elements......Page 135
9.6. Accessing element attributes......Page 137
9.7. Segue......Page 138
10.1. Abstracting input sources......Page 139
10.2. Standard input, output, and error......Page 142
10.3. Caching node lookups......Page 146
10.5. Creating separate handlers by node type......Page 147
10.6. Handling command-line arguments......Page 149
10.7. Putting it all together......Page 152
10.8. Summary......Page 154
11.1. Diving in......Page 155
11.2. How not to fetch data over HTTP......Page 157
11.3. Features of HTTP......Page 158
11.4. Debugging HTTP web services......Page 159
11.5. Setting the User-Agent......Page 161
11.6. Handling Last-Modified and ETag......Page 162
11.7. Handling redirects......Page 165
11.8. Handling compressed data......Page 169
11.9. Putting it all together......Page 171
11.10. Summary......Page 173
12.1. Diving In......Page 174
12.2. Installing the SOAP Libraries......Page 175
12.3. First Steps with SOAP......Page 177
12.4. Debugging SOAP Web Services......Page 178
12.5. Introducing WSDL......Page 179
12.6. Introspecting SOAP Web Services with WSDL......Page 180
12.7. Searching Google......Page 182
12.8. Troubleshooting SOAP Web Services......Page 185
12.9. Summary......Page 188
13.1. Introduction to Roman numerals......Page 189
13.3. Introducing romantest.py......Page 190
13.4. Testing for success......Page 193
13.5. Testing for failure......Page 195
13.6. Testing for sanity......Page 196
14.1. roman.py, stage 1......Page 199
14.2. roman.py, stage 2......Page 202
14.3. roman.py, stage 3......Page 205
14.4. roman.py, stage 4......Page 208
14.5. roman.py, stage 5......Page 211
15.1. Handling bugs......Page 214
15.2. Handling changing requirements......Page 216
15.3. Refactoring......Page 222
15.4. Postscript......Page 225
15.5. Summary......Page 227
16.1. Diving in......Page 229
16.2. Finding the path......Page 230
16.3. Filtering lists revisited......Page 232
16.4. Mapping lists revisited......Page 234
16.5. Data-centric programming......Page 235
16.6. Dynamically importing modules......Page 236
16.7. Putting it all together......Page 237
16.8. Summary......Page 240
17.2. plural.py, stage 1......Page 241
17.3. plural.py, stage 2......Page 243
17.4. plural.py, stage 3......Page 245
17.5. plural.py, stage 4......Page 246
17.6. plural.py, stage 5......Page 248
17.7. plural.py, stage 6......Page 249
17.8. Summary......Page 252
18.1. Diving in......Page 253
18.2. Using the timeit Module......Page 255
18.3. Optimizing Regular Expressions......Page 256
18.4. Optimizing Dictionary Lookups......Page 259
18.5. Optimizing List Operations......Page 262
18.6. Optimizing String Manipulation......Page 264
18.7. Summary......Page 266
Appendix A. Further reading......Page 267
Appendix B. A 5-minute review......Page 274
Appendix C. Tips and tricks......Page 288
Appendix D. List of examples......Page 295
Appendix E. Revision history......Page 308
Appendix F. About the book......Page 320
G.1. Applicability and definitions......Page 321
G.3. Copying in quantity......Page 322
G.4. Modifications......Page 323
G.8. Translation......Page 324
G.11. How to use this License for your documents......Page 325
H.B. Terms and conditions for accessing or otherwise using Python......Page 326