Doc: Modernize pure mode tutorial (pure.rst) with dual syntax tabs #7286
+558
−109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title: Doc: Modernize pure mode tutorial (pure.rst) with dual syntax tabs
Description:
This PR completes the modernization of the documentation structure in
docs/src/tutorial/pure.rstby converting all isolated code blocks and single.. literalinclude::references into the unified, dual-syntax.. tabs::structure (Pure Python vs. Traditional Cython).This change significantly improves the clarity and maintainability of the tutorial, allowing users to easily compare the Pure Python method with the traditional Cython equivalent side-by-side.
Key Changes:
.. tabs::structure..pyxfiles for nearly all Pure Python examples (e.g.,exceptval_syntax.pyx,type_hints.pyx,c_arrays.pyx).I have verified the build using
make htmllocally, and there are no warnings or errors related to the file structure.