Comment

Comment by CraigJPerry

I wouldn’t recommend a book, instead i’d give you a couple of challenges, each of these is <1-2 hours in isolation:

    1. Explain to me like i’m 5,  what exactly __slots__ is for? Write me some demo code to illustrate - the reason i’d set this challenge is because you’d come out the other side knowing how objects work and how it’s more or less dicts all the way down (to be clear, slots is an exception to the dicts all the way down view which is why i think its a good example to get stuck into)
    2. Write me some demo code that explains the purpose of locals()
    3. Teach me how to use dis.dis(), explain to me what each possible opcode means
    4. Explain to me how to use pdb, include conveniences like breakpoint() in your explanation
    5. Show me 3x working examples of calling a c function from python. Explain the different approaches you took
If you can nail these 5 questions, I’d feel pretty confident betting on you knowing enough python to be able to take on something really advanced like modifying the supported grammar of jinja for example.
parent CraigJPerry 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton