10 Tips for Pythonic Code

Published: 11 July 2016
on channel: JetBrains
60,765
778

One of the special concepts in Python is the idea of writing idiomatic code that is most aligned with the language features and ideals. In Python, we call this idiomatic code Pythonic. While this idea is easy to understand, it turns out to be fairly hard to make concrete.

In this webinar, Michael Kennedy from the Talk Python To Me podcast takes you on a tour of 10 of the more popular and useful code examples demonstrating examples of Pythonic code. In the examples, you'll first see non-Pythonic code and then the more natural Pythonic version.

Video Contents:

(1:03) What is Pythonic?
(2:43) Dictionaries for performance
(11:01) Memory efficiency with _slots_
(20:50) Merge dicts
(29:05) Yield and generator methods
(37:45) Lambda expressions
(42:04) Adding iteration to custom types
(47:26) Comprehensions and expressions
(58:01) JSON back and forth (files and web services)
(1:01:30) Slicing (collections and databases)
(1:05:56) yield + recursion

To learn more about PyCharm visit - https://www.jetbrains.com/pycharm/


On this page of the site you can watch the video online 10 Tips for Pythonic Code with a duration of hours minute second in good quality, which was uploaded by the user JetBrains 11 July 2016, share the link with friends and acquaintances, this video has already been watched 60,765 times on youtube and it was liked by 778 viewers. Enjoy your viewing!