◐ Shell
clean mode source ↗

bpo-43322: Use consistent '#include' syntax in extn. tutorial by matthewhughes934 · Pull Request #24851 · python/cpython

There is a difference in C between these two formats. Are you suggesting this just for consistency or because you think the example is currently incorrect?

Purely for consistency. From what I understand the quotes will perform an implementation defined search then fallback to the (implementation defined) search method used by <> and I think in this case the distinction shouldn't be significant.

I think in general this looks something like "" searches around the source file with the #include directive and <> checks across some system paths, in this context I think the <> is more appropriate here, since I assume we're wanting users to build against the system CPython library, rather then e.g. cloning the repository and building there. But that's all implementation defined and I'm not sure how many compilers actually behave like that.