--- id: python-sets-methods title: "Python Sets Methods" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["Set Methods", "파이썬 셋 메서드"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["python", "programming", "w3schools", "sets", "methods"] raw_sources: ["https://www.w3schools.com/python/python_sets_methods.asp"] applied_in: [] github_commit: "" --- # [[Python Sets Methods]] ## 🎯 한 줄 통찰 (One-line insight) Every set-algebra method has a matching operator shortcut (`&` for intersection, `|` for union, `-` for difference, `^` for symmetric difference), letting the same operation be written either way. [S1] ## 🧠 핵심 개념 (Core concepts) - **Mutation methods** — `add()`, `clear()`, `discard()`, `pop()`, `remove()`, `update()` (`|=`). [S1] - **Algebra methods with operator shortcuts** — `intersection()` (`&`), `intersection_update()` (`&=`), `union()` (`|`), `difference()` (`-`), `difference_update()` (`-=`), `symmetric_difference()` (`^`), `symmetric_difference_update()` (`^=`). [S1] - **Comparison methods** — `isdisjoint()` (no shortcut), `issubset()` (`<=`/`<`), `issuperset()` (`>=`/`>`). [S1] - **`copy()`** — returns a copy of the set. [S1] ## 📖 세부 내용 (Details) 이 문서는 이전 챕터들(Add/Remove/Join)에서 개별적으로 다룬 셋 메서드 전체와 각각의 연산자 단축형을 하나의 표로 정리한 레퍼런스 챕터다. [S1] ## ⚖️ 모순 및 업데이트 (Contradictions & updates) 소스에서 모순되는 정보는 발견되지 않음. ## 🛠️ 적용 사례 (Applied in summary) 현재 발견된 실제 적용 사례가 없습니다 — 셋 메서드를 빠르게 찾아볼 때 참조하는 요약 레퍼런스다. [S1] ## 💻 코드 패턴 (Code patterns) 소스에 실행 코드 예시 없음 (메서드/연산자 단축형 표 위주의 레퍼런스형 챕터). ## ✅ 검증 상태 및 신뢰도 - **상태:** draft - **검증 단계:** conceptual - **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body) - **신뢰 점수:** 0.88 - **중복 검사 결과:** 신규 생성 (New discovery) ## 🔗 지식 그래프 (Knowledge Graph) - **상위/루트:** [[Python Tutorial]] - **관련 개념:** [[Python Sets]], [[Python Sets Join]], [[Python Frozenset]] - **참조 맥락:** 셋 메서드 전체와 연산자 단축형 요약 — 필요한 메서드를 찾을 때 참조. ## 📚 출처 (Sources) - [S1] W3Schools — Python - Set Methods — https://www.w3schools.com/python/python_sets_methods.asp ## 📝 변경 이력 (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Python - Set Methods" page (Astra wiki-curation, P-Reinforce v3.1 format).