Jump to ratings and reviews
Rate this book

Pythonic Programming: Tips for Becoming an Idiomatic Python Programmer

Rate this book
Make your good Python code even better by following proven and effective pythonic programming tips. Avoid logical errors that usually go undetected by Python linters and code formatters, such as frequent data look-ups in long lists, improper use of local and global variables, and mishandled user input. Discover rare language features, like rational numbers, set comprehensions, counters, and pickling, that may boost your productivity. Discover how to apply general programming patterns, including caching, in your Python code. Become a better-than-average Python programmer, and develop self-documented, maintainable, easy-to-understand programs that are fast to run and hard to break.

Python is one of the most popular and rapidly growing modern programming languages. With more than 200 standard libraries and even more third-party libraries, it reaches into the software development areas as diverse as artificial intelligence, bioinformatics, natural language processing, and computer vision. Find out how to improve your understanding of the spirit of the language by using one hundred pythonic tips to make your code safer, faster, and better documented.

This programming style manual is a quick reference of helpful hints and a random source of inspiration. Choose the suitable data structures for searching and sorting jobs and become aware of how a wrong choice may cause your application to be completely ineffective. Understand global and local variables, class and instance attributes, and information-hiding techniques. Create functions with flexible interfaces. Manage intermediate computation results by caching them in files and memory to improve performance and reliability. Polish your documentation skills to make your code easy for other programmers to understand. As a bonus, discover Easter eggs cleverly planted in the standard library by its developers.

Polish, secure, and speed-up your Python applications, and make them easier to maintain by following pythonic programming tips.

What You Need:

You will need a Python interpreter (ideally, version 3.4 or above) and the standard Python library that usually comes with the interpreter.

150 pages, Paperback

Published November 2, 2021

3 people are currently reading
22 people want to read

About the author

Dmitry Zinoviev

25 books7 followers
Dmitriy is full professor of Mathematics & Computer Science in Suffolk University / Boston

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
2 (11%)
4 stars
8 (44%)
3 stars
5 (27%)
2 stars
3 (16%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Héctor Iván Patricio Moreno.
426 reviews22 followers
September 24, 2022
Es un libro que tiene 100 consejos par escribir código más "Pythonico", lo que sea que eso signifique, algo que el autor tampoco puede definir sino que dice que simplemente se siente. Lo compré justamente porque pensé que me iba a dar tips para escribir mejor código específicamente con Python: más entendible, que se pueda cambiar mejor y que perdure en el tiempo. Esto lo logra parcialmente porque sus tips son muuuy variados y siento que los temas que abarca lo hace someramente.

Aprendí peculiaridades de Python y algunas técnicas nuevas para resolver problemas como el atender procesos que se tarden demasiado. Encontré usos justificados del módulo pickle.

Además, creo que el nivel para el que este libro está promocionado, está un poco fuera de lugar: lo considero un libro para principiantes por su sencillez, pero aún así todos tenemos mucho que aprender. Me llevo nuevo conocimiento de Python que aplicar en mi día a día, recomendado si estás trabajando sobre este lenguaje todos los días.
600 reviews11 followers
December 9, 2024
A lot of good tips, but over all I had higher hopes.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.