Tech News

제목builtin으로 파이썬의 모든것을 이해하기2021-10-12 09:43
작성자 Level 10

https://sadh.life/post/builtins/ 

- 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

댓글
자동등록방지
(자동등록방지 숫자를 입력해 주세요)