[python] isinstance 함수
isinstance를 궁금하게 된 계기는 drf views.py를 조사하게 된 것이 계기였다. def exception_handler(exc, context): """ Returns the response that should be used for any given exception. By default we handle the REST framework `APIException`, and also Django's built-in `Http404` and `PermissionDenied` exceptions. Any unhandled exceptions may return `None`, which will cause a 500 error to be raised. """ if isinstance(exc, ..
파이썬
2021. 8. 4. 15:13
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 알고리즘
- docker-compose
- PostgreSQL
- 면접
- Pattern
- 그래프
- env
- headers
- setattr
- Java
- postgres
- dockerignore
- 파이썬
- 2021 KAKAO BLIND RECRUITMENT
- 프로그래머스
- django
- Command Line
- Spring
- Celery
- 백준
- thread
- 카카오
- BFS
- docker
- Collections
- Python
- 자바
- ubuntu
- Linux
- DRF
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함