# builtin으로 파이썬의 모든 것을 이해하기

> Clean Markdown view of GeekNews topic #5180. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=5180](https://news.hada.io/topic?id=5180)
- GeekNews Markdown: [https://news.hada.io/topic/5180.md](https://news.hada.io/topic/5180.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-10-12T09:21:01+09:00
- Updated: 2021-10-12T09:21:01+09:00
- Original source: [sadh.life](https://sadh.life/post/builtins/)
- Points: 23
- Comments: 1

## Topic Body

- builtins 모듈에 있는 내장 객체들을 하나씩 설명하는 방식으로, 파이썬을 이해하도록 구성한 글

- L.E.G.B. Scope 룰 이란

- dir(__builtins__)

ㅤ→ 66개의 내장 Exception 클래스들

ㅤ→ 5개의 상수 : True, False, None, Ellipsis, NotImplemented

ㅤ→ 전역 변수 : __spec__ , __loader__ , __debug__등

ㅤ→ compile, exec, val : 코드 작동 방식

ㅤ→ globals and locals : 모든 것이 저장되는 곳

ㅤ→ input and print : 빵과 버터

ㅤ→ str, bytes, int, bool, float and complex: 5개의 Primitives

ㅤ→ object: 모든것의 기초

ㅤ→ type: 클래스 팩토리

ㅤ→ hash and id: equality 의 기본

ㅤ→ dir and vars: 모든 것이 dictionary

ㅤ→ hasattr, getattr, setattr and delattr: 속성 도우미

ㅤ→ super: 상속의 힘

ㅤ→ property, classmethod and staticmethod: 메소드 데코레이터

ㅤ→ list, tuple, dict, set and frozenset: 컨테이너들

ㅤ→ bytearray and memoryview: 더 좋은 Byte 인터페이스

ㅤ→ bin, hex, oct, ord, chr and ascii: 기초 변환

ㅤ→ format: 쉬운 텍스트 변환

ㅤ→ any and all

ㅤ→ abs, divmod, pow and round: 수학의 기초

ㅤ→ isinstance and issubclass: 런타입 타입 체킹

ㅤ→ callable and duck typing basics

ㅤ→ sorted and reversed: 시퀀스 변경

ㅤ→ map and filter: Functional primitives

ㅤ→ len, max, min and sum: Aggregate 함수들

ㅤ→ iter and next: 고급 iteration

ㅤ→ range, enumerate and zip: 편리한 iteration

ㅤ→ slice

ㅤ→ breakpoint: 내장 디버깅

ㅤ→ open: File I/O

ㅤ→ repr: 개발자 편의성

ㅤ→ help, exit and quit: site builtins

ㅤ→ copyright, credits, license: 또 다른 site builtins

## Comments



### Comment 7253

- Author: xguru
- Created: 2021-10-12T09:22:01+09:00
- Points: 2

파이썬을 내부에서부터 이해시키는데 설명이 쉽고 깔끔한, 굉장히 독특한 글이네요.
