Talk: Elizaveta Shashkova - The Hidden Power of the Python Runtime

  Рет қаралды 5,680

PyCon US

PyCon US

Күн бұрын

Пікірлер: 9
@bhupeshimself
@bhupeshimself 4 жыл бұрын
This was a really great talk. Thanks to everyone who helped in bringing this up ✨👍
@elizavetashashkova893
@elizavetashashkova893 4 жыл бұрын
Thank you very much! :)
@sitronco
@sitronco 4 жыл бұрын
Thanks for your talk. It was a really interesting topic :)
@elizavetashashkova893
@elizavetashashkova893 4 жыл бұрын
Thank you for your kind words! :)
@NestiGX
@NestiGX 4 жыл бұрын
Great presentation :DD
@elizavetashashkova893
@elizavetashashkova893 4 жыл бұрын
Thank you! :)
@NestiGX
@NestiGX 4 жыл бұрын
I have a question regarding static type checkers. Tools like mypy, pyright, etc. are probably using functionalities mentioned by you in this presentation. I'm wondering how those tools could work, for example: I annotated my function like this "def fun(var: str) -> List[Dict[str, int]]". How can I check whether my function is returning that type or not? A simple type() call would only return information that variable is a list type. Also, we could probably gather full information about that variable only in run time, but yet those tools can analyze code without running the code.
@elizavetashashkova893
@elizavetashashkova893 4 жыл бұрын
Hi Mateusz! As far as I know, these tools use only static analysis. So they don't run the code, they just parse the source code, build abstract syntax tree and control flow graph and try to derive types basing on this information. And, as you absolutely correctly said, in Python you usually can't predict 100% of information about types without code execution (because of the language nature). That's why I love Runtime Tools so much - you always know all the information about variables and program state :)
@NestiGX
@NestiGX 4 жыл бұрын
Thank you a lot for explenation. ;)) Congratz on great presentation. I'm waiting for the next one :D
Talk: Conor Hoekstra - Beautiful Python Refactoring
30:05
PyCon US
Рет қаралды 24 М.
Talk: Anthony Shaw - Why is Python slow?
32:52
PyCon US
Рет қаралды 21 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Talk: Aly Sivji - If Statements are a Code Smell
30:38
PyCon US
Рет қаралды 13 М.
Talk: Harry Percival - Stop Using Mocks (for a while)
44:52
PyCon US
Рет қаралды 14 М.
Talk: Dustin Ingram - Static Typing in Python
21:50
PyCon US
Рет қаралды 17 М.
Talk: Trey Hunner - Comprehensible Comprehensions
32:40
PyCon US
Рет қаралды 9 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН