HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
James Powell: So you want to be a Python expert? | PyData Seattle 2017

PyData · Youtube · 13 HN points · 3 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention PyData's video "James Powell: So you want to be a Python expert? | PyData Seattle 2017".
Youtube Summary
www.pydata.org

PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.

PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.

0:00 About PyData and being proficient in Python
4:09 Important features of Python and audience survey
7:40 Data model methods
10:14 __init__ method
11:15 __repr__ method
12:17 __add__ method
15:51 __len__ method
18:42 __call__ method
20:50 Metaclasses and the problem of writing safe library code
27:00 Contraints on the library code using assert
32:33 Compile-time vs run time executable code
34:42 Disassembling class code and using __build_class__
40:26 Constraining library code with the metaclass pattern
47:22 Introducing decorators
49:07 Code inspection
57:36 Writing a timer function
59:42 Decorator syntactic sugar
1:03:00 Writing a ntimes decorator
1:06:32 Wrapping functions into class
1:10:51 Eager execution
1:14:02 __iter__ and __next__ methods
1:17:40 yield and the Generator syntax
1:20:35 Coroutines and interleaving
1:24:35 Context Managers
1:25:30 Setup and teardown of resources
1:28:38 Applying to SQL transactions
1:30:10 __enter__ and __exit__ methods
1:32:30 Links between generators and context managers
1:36:02 Refactoring the SQL query code
1:37:52 Wrapping up
1:40:04 Opinions on writing clear code in Python
1:48:18 Q&A

S/o to https://github.com/mycaule for the video timestamps!

Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: https://github.com/numfocus/YouTubeVideoTimestamps
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
I recommend any of the talks by James Powell at PyData. For example this one https://youtu.be/cKPlPJyQrt4

Edit: maybe this one on Numpy may be more relevant: https://youtu.be/u2yvNw49AX4

Apr 06, 2021 · 1 points, 0 comments · submitted by mfi
I don't even use python. But this python expert video was absolutely amazing done by a true pro. James Powell

https://www.youtube.com/watch?v=cKPlPJyQrt4

I work professionally in C/C++ and the instances I needed to use Python I always felt like I was missing the core understanding of the language and was writing C in a different syntax.

I found James Powell's PyData 2017 talk "So you want to be a Python expert?" (https://www.youtube.com/watch?v=cKPlPJyQrt4) to be incredible at helping me to gain that core understanding of the language. It's legitimately the best technical talk I think I've seen and I can't recommend it highly enough.

marios
I'd recommend any Python talk by Raymond Hettinger (Python core developer). The content is top notch, and he is also very good at delivering it.
Nov 02, 2019 · 11 points, 0 comments · submitted by tomrod
Jan 13, 2019 · 1 points, 0 comments · submitted by FrankDixon
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.