auto: 2026-11-18 07:18 (ESD_LAPTOP)

This commit is contained in:
2026-11-18 07:18:10 +09:00
parent 4ad80c02ae
commit 296ec60eec
23 changed files with 439 additions and 179 deletions
+16 -1
View File
@@ -96,8 +96,23 @@ def _live(key: str) -> Any:
return whole.index.get(key[:2], {}).get(key)
def _carried(whole: Any, key: str) -> dict | None:
"""색인이 실어 온 문서(사본 셈 색인 `M02_Item_Bundle.Index.docs` · 감싼 색인 안쪽까지)."""
for _ in range(8):
own = vars(whole) if hasattr(whole, "__dict__") else {}
if key in (own.get("docs") or {}):
return own["docs"][key]
whole = own.get("_whole")
if whole is None:
return None
return None
def doc_of(whole: Any, key: str) -> dict | None:
"""키 하나의 문서 — 값 사본 줄 = 지금 M01 줄이면 M01 문서 · 다르면 그 줄 변환 · 없으면 None."""
"""키 하나의 문서 — 색인이 실어 온 사본 문서 › 값 사본 줄 = 지금 M01 줄이면 M01 문서 · 다르면 그 줄
변환 · 없으면 None."""
if (got := _carried(whole, str(key))) is not None:
return cp.deepcopy(got)
try:
row = whole.logic(key)
except _ERR: