
Supercharged Python: Take Your Code to the Next Level, 1st edition
- Brian Overland |
- John Bennett |
Title overview
Supercharged Python is written for people who've learned the fundamentals of the language but want to take their skills to the next level.
After a quick review of Python, the book covers: advanced list and string techniques; all the ways to handle text and binary files; financial applications; advanced techniques for writing classes; generators and decorators; and how to master packages such as NumPy (Numeric Python) to supercharge your applications!
- Use profilers and 'magic methods' to code like a pro
- Harness the power of regular expressions to process text quickly with a single statement
- Take advantage of 22 coding shortcuts, along with performance tips, to save time and optimize your code
- Create really useful classes and objects, for games, simulations, money, mathematics, and more
- Use multiple modules to build powerful apps while avoiding the 'gotchas'
- Import packages to dramatically speed up statistical operations - by as much as 100 times!
- Refer to the five-part language reference to look up fine points of the language
- Breaks advanced topics down to their essentials, illustrating them with simple examples and practical exercises
- Covers runtime efficiency, lambda functions, regex, binary operators, advanced data formatting, packages, Django, graphics, magic methods, binary files, and more
- Deepens your insight by illuminating design decisions and tricks behind each language feature
- Includes challenging projects to showcase Python’s power
Table of contents
- Chapter 1: Review of the Fundamentals
- Chapter 2: Advanced String Capabilities
- Chapter 3: Advanced List Capabilities
- Chapter 4: Shortcuts, Command Line, and Packages
- Chapter 5: Formatting Text Precisely
- Chapter 6: Regular Expressions, Part I
- Chapter 7: Regular Expressions, Part II
- Chapter 8: Text and Binary Files
- Chapter 9: Classes and Magic Methods
- Chapter 10: Decimal, Money, and Other Classes
- Chapter 11: The Random and Math Packages
- Chapter 12: The “numpy” (Numeric Python) Package
- Chapter 13: Advanced Uses of “numpy”
- Chapter 14: Multiple Modules and the RPN Example
- Chapter 15: Getting Financial Data off the Internet
- Appendix A Python Operator Precedence Table
- Appendix B Built-In Python Functions
- Appendix C Set Methods
- Appendix D Dictionary Methods
- Appendix E Statement Reference
Author bios
John Bennett was formerly a senior software engineer at Proximity Technology, Franklin Electronic Publishing, and Microsoft Corporation. More recently, he has developed new programming languages using Python as a prototyping tool. He has worked on a variety of software projects, including a handheld spellchecker and East Asian handwriting recognition software. He holds nine U.S. patents.