The complete core language for existing programmers.
Dead Simple Python is a thorough introduction to every feature of the Python language for programmers who are impatient to write production code. Instead of revisiting elementary computer science topics, you ll dive deep into idiomatic Python patterns so you can write professional Python programs in no time.
After speeding through Python s basic syntax and setting up a complete programming environment, you ll learn to work with Python s dynamic data typing, its support for both functional and object-oriented programming techniques, special features like generator expressions, and advanced topics like concurrency. You ll also learn how to package, distribute, debug, and test your Python project.
Master how to:
Make Python's dynamic typing work for you to produce cleaner, more adaptive code. Harness advanced iteration techniques to structure and process your data. Design classes and functions that work without unwanted surprises or arbitrary constraints. Use multiple inheritance and introspection to write classes that work intuitively. Improve your code's responsiveness and performance with asynchrony, concurrency, and parallelism. Structure your Python project for production-grade testing and distribution
The most pedantically pythonic primer ever printed, Dead Simple Python will take you from working with the absolute basics to coding applications worthy of publication.Inhaltsverzeichnis
Introduction< BR> Part 1: The Python Environment< BR> Chapter 1: The Python Philosophy< BR> Chapter 2: Your Workbench< BR> Chapter 3: Syntax Crash Course< BR> Chapter 4: Project Structure and Imports< BR> Part 2: Essential Structures< BR> Chapter 5: Variables and Types< BR> Chapter 6: Functions and Lambdas< BR> Chapter 7: Objects and Classes< BR> Chapter 8: Errors and Exceptions< BR> Part 3: Data and Flow< BR> Chapter 9: Collections and Iteration< BR> Chapter 10: Generators and Comprehensions< BR> Chapter 11: Text IO and Context Managers< BR> Chapter 12: Binary and Serialization< BR> Part 4: Advanced Concepts< BR> Chapter 13: Inheritance and Mixins< BR> Chapter 14: Metaclasses and ABCs< BR> Chapter 15: Inspection and Generics< BR> Chapter 16: Asynchrony and Concurrency< BR> Chapter 17: Threading and Parallelism< BR> Part 5: Beyond the Code< BR> Chapter 18: Packaging and Distribution< BR> Chapter 19: Debugging and Analysis< BR> Chapter 20: Testing and Profiling< BR> Chapter 21: The Parting of the Ways< BR> Appendix A: Special Attributes and Methods< BR> Appendix B: Python Debugger (pdb) Commands< BR> Glossary