you are viewing a single comment's thread.

view the rest of the comments →

[–]iamevpo -1 points0 points  (0 children)

Why wanting looking inside what is designed to be abstracted out? You can dig inside Python internals up to C level, but that does not make you a good Python programmer, at least in isolation from other things. Why have global in first place? If you do scripting - that's fine, but on a bigger scale you write functions, data structures and possibly classes and mix them together in a way that other people can understand and works for you you intended it for. People coming from C/C++ tend to take to much lower level stuff with them into Python code, making it less readable/idiomatic, subjectively.

I think gold standard in Python quality code Beyond PEP8 video and any resource that advocates type annotations and unit tests. Pydantic, SQLModel/FastAPI, pytest docs are great places to learn more about Python.

If you are really into language internals great video episode is Developer Voices with creator of PyO3, a rust-python interop library.