--- id: python-none title: "Python None" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["NoneType", "파이썬 None"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["python", "programming", "w3schools", "none", "nonetype"] raw_sources: ["https://www.w3schools.com/python/python_none.asp"] applied_in: [] github_commit: "" --- # [[Python None]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) None is the sole instance of its own type (NoneType), evaluates to False in a boolean context, and should be compared with `is`/`is not` (identity) rather than `==`/`!=` (equality). [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`None`** β€” a special constant representing the absence of a value; data type `NoneType`. [S1] - **Single instance** β€” None is the only instance of NoneType. [S1] - **Comparison** β€” use `is` / `is not`, not `==`/`!=`, to check for None. [S1] - **Falsy** β€” `bool(None)` is False. [S1] - **Default function return** β€” a function with no explicit `return` returns None. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Assign and check type: `x = None; print(type(x)) # `. [S1] - Identity comparison: `if result is None: print("No result yet") else: print("Result is ready")`. [S1] - Truthiness: `print(bool(None)) # False`. [S1] - Implicit None return: `def myfunc(): x = 5; x = myfunc(); print(x) # None`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” Python Functions μ±•ν„°μ—μ„œ 이미 예고된 "return μ—†μœΌλ©΄ None"이 μ—¬κΈ°μ„œ μ •μ‹μœΌλ‘œ 닀뀄진닀. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Identity comparison with None (Python): ```python result = None if result is None: print("No result yet") ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.90 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[Python Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[Python Functions]], [[Python Operators Identity]], [[Python Booleans]] - **μ°Έμ‘° λ§₯락:** "κ°’ μ—†μŒ"을 ν‘œν˜„ν•˜λŠ” ν‘œμ€€ μƒμˆ˜ β€” is/is not 비ꡐ κ·œμΉ™μ΄ 핡심. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” Python None β€” https://www.w3schools.com/python/python_none.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Python None" page (Astra wiki-curation, P-Reinforce v3.1 format).