Commit 2700f16
committed
docs: rewrite Part 2 built-in objects — deeper, source-accurate, fully illustrated
Rewrite the object / integer / list / dict / set chapters to be more
深入浅出 for Python engineers new to CPython internals: open each concept
from familiar Python behaviour, then dive into the C, verifying every
source claim against the local CPython v3.7.0 checkout.
- add a per-operation SVG diagram for list (append/insert/resize/remove),
dict (create/insert/lookup, combined-vs-split) and set (remove/resize)
- Chinese-ize the List/Dict/Set chapter titles and unify the section
heading style to「<对象>的<操作>」
- fix factual issues: PyNumberMethods field order; _PyObject_HEAD_EXTRA
is the Py_TRACE_REFS debug refchain (not the cyclic GC); the set probe
example key; and replace fabricated big-int output with real values
- relabel the object-category diagram in Chinese; fix the set insert
diagram; correct the two swapped stub chapter titles1 parent c8cbb32 commit 2700f16
21 files changed
Lines changed: 1393 additions & 1912 deletions
File tree
- .vitepress
- objects
- dict-object
- list-object
- long-object
- object
- set-object
- simple-interpreter
- str-object
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Loading
Loading
Loading
Loading
0 commit comments