Featured image of post [Python Cheatsheet] 04. Collections - list/tuple/set 패턴

[Python Cheatsheet] 04. Collections - list/tuple/set 패턴

list/tuple/set을 빠르게 선택하고 다루기 위한 치트시트입니다. 정렬·복사·언패킹, set 연산(교집합/합집합), 멤버십 성능 감각, 얕은 복사 함정까지 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 06. Control Flow - if/for/while 패턴

[Python Cheatsheet] 06. Control Flow - if/for/while 패턴

if/for/while 제어 흐름을 빠르게 쓰기 위한 치트시트입니다. truthy/falsy, enumerate/zip, loop-else, break/continue, match-case(선택)까지 실무에서 자주 쓰는 패턴과 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 07. Functions - 인자/리턴/*args/**kwargs

[Python Cheatsheet] 07. Functions - 인자/리턴/*args/**kwargs

함수 정의와 인자 패턴을 빠르게 쓰기 위한 치트시트입니다. 기본값 인자의 함정, *args/**kwargs, keyword-only/positional-only, 반환값 언패킹, 어노테이션/독스트링 기본까지 실전 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 10. Comprehensions & Generators

[Python Cheatsheet] 10. Comprehensions & Generators

컴프리헨션과 제너레이터를 빠르게 선택하기 위한 치트시트입니다. list/dict/set comprehension, generator expression, yield, next, 메모리 관점에서의 선택 기준과 대표 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 11. Errors & Exceptions - try/raise 패턴

[Python Cheatsheet] 11. Errors & Exceptions - try/raise 패턴

예외 처리를 빠르게 설계/작성하기 위한 치트시트입니다. try/except/else/finally, raise/raise from, 예외 계층과 커스텀 예외, 자원 정리(with)와 로깅 연결까지 실전 패턴을 정리합니다.

Featured image of post [Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

[Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

파일 입출력과 경로 처리를 빠르게 하기 위한 치트시트입니다. pathlib로 경로 다루기, open()의 encoding/newline, 텍스트·바이너리 모드, 안전한 읽기/쓰기(with) 패턴과 흔한 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 15. venv & pip - 환경/의존성 기본

[Python Cheatsheet] 15. venv & pip - 환경/의존성 기본

가상환경과 패키지 설치를 빠르게 정리하는 치트시트입니다. venv 생성/활성화, pip install/upgrade, requirements.txt 관리, 재현 가능한 설치 습관과 흔한 환경 꼬임을 최소 체크리스트로 정리합니다.

Featured image of post [Python Cheatsheet] 20. dataclasses - default_factory/frozen 패턴

[Python Cheatsheet] 20. dataclasses - default_factory/frozen 패턴

dataclasses를 빠르게 적용하기 위한 치트시트입니다. @dataclass 기본, field(default_factory), frozen/slots, 비교/정렬 옵션, 불변 객체로 모델링하는 패턴과 mutable default 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 35. JSON & CSV - 읽기/쓰기/인코딩

[Python Cheatsheet] 35. JSON & CSV - 읽기/쓰기/인코딩

JSON/CSV를 빠르게 읽고 쓰기 위한 치트시트입니다. json.load/dump 옵션(ensure_ascii/indent), DictReader/DictWriter, newline/encoding 주의점, 흔한 데이터 타입 이슈를 실전 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 37. datetime - timezone/파싱/포맷

[Python Cheatsheet] 37. datetime - timezone/파싱/포맷

datetime을 안전하게 다루기 위한 치트시트입니다. naive/aware 구분, timezone(UTC) 기본, ISO 파싱/포맷, 타임존 변환, 흔한 버그 포인트(로컬타임/서머타임)를 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 39. Regex - 안전하게 쓰는 최소 패턴

[Python Cheatsheet] 39. Regex - 안전하게 쓰는 최소 패턴

정규표현식을 안전하게 쓰기 위한 치트시트입니다. re.search/match/findall/sub, 그룹/이름그룹, greedy vs non-greedy, flags, raw string, 과도한 백트래킹 회피 등 실무 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 57. Logging & Debugging - traceback 읽기

[Python Cheatsheet] 57. Logging & Debugging - traceback 읽기

로깅과 디버깅을 빠르게 정리하는 치트시트입니다. logging 기본 설정, logger 사용 패턴, 예외 로깅(exception), traceback 읽는 법, breakpoint/pdb 활용(선택)과 실무 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 59. Testing - unittest/pytest 관점

[Python Cheatsheet] 59. Testing - unittest/pytest 관점

테스트를 빠르게 시작하기 위한 치트시트입니다. Arrange-Act-Assert, pytest 스타일 assert, unittest 기본, fixture/parameterize 개념, mock의 최소 사용 원칙과 실무에서 자주 깨지는 포인트를 정리합니다.