Recent Posts

한 항목씩 흘려보내는 구슬 처리 통로

Python Tutorial / Process Data Lazily with Iterators and Generators

Distinguish iterable objects, iterators and generators, inspect partial consumption and evaluate lazy calculation, memory use and resource lifetime accurately.

이름 없는 필드별 도형을 정리한 데이터 상자

Python Tutorial / Create Data-Centered Classes with dataclass

Use dataclass fields and default factories, validate initial data and distinguish generated equality, frozen fields and serialization from application policy.

상속 계층과 여러 블록의 합성을 비교한 구조

Python Tutorial / Reuse Code with Inheritance and Composition

Compare inheritance with composition, preserve behavioral contracts and build a ledger that delegates to a replaceable fee policy.

검증 관문을 통과하는 데이터 블록

Python Tutorial / Control Object Updates with Methods and Properties

Use property setters to validate initial and later assignments, preserve state after rejection and avoid recursive setters and hidden expensive operations.

서로 다른 객체와 각자 가진 속성 서랍

Python Tutorial / Distinguish Instance Attributes from Class Attributes

Locate instance and class state, observe attribute shadowing and reproduce then fix a mutable list accidentally shared across instances.

하나의 설계도와 거기서 만들어진 두 객체

Python Tutorial / Group State and Behavior with Classes and Instances

Define a focused class, create independent instances and understand self, initialization and the limits of validation performed only at construction.

돋보기로 기계 내부를 살펴보는 디버깅 장면

Python Tutorial / Read Tracebacks and Diagnose Problems with Debugging and Logging

Read Python tracebacks, inspect state with a debugger and use logging levels and channels to diagnose reproducible failures without leaking sensitive details.

오류 장애물을 피하는 별도 경로와 다리

Python Tutorial / Handle Exceptions with try, except, else, finally and raise

Trace exception-handling paths, raise explicit validation errors and distinguish recoverable input failures from defects that should remain visible.

중첩된 상자 안에 구조적으로 담긴 데이터

Python Tutorial / Convert and Save JSON Data

Map JSON values to Python, save readable Unicode and distinguish valid JSON syntax from valid application data and strict numeric policies.

행과 열이 구분된 CSV 형태의 표 블록

Python Tutorial / Read and Write CSV Files

Use csv.DictReader and DictWriter with quoting and newline handling, convert numeric values and define header, error-reporting and spreadsheet-export policies.