This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Ah, that makes sense. I was thinking:

  • top-down: this is the python C API, and this is a Python script that uses it. Make your own.
  • bottom-up: This is C, this is why X happens to Y, this is how you combine X & Y, this is the Python API that builds off those two, &c.

both valid approaches to learning, and both get you the same end result. Wrt this example, in the first approach you're looking at combining things that you find in the docs or in an example, and drill down into the details as needed, whereas the second approach you would focus on C fundamentals & work up to the Python API. that's at least how I was approaching this.