Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
전문가를 위한 파이썬(2판)
by
루시아누 하말류
,
강권학
November 2024
Beginner to intermediate
1064 pages
25h 21m
Korean
Hanbit Media, Inc.
Content preview from
전문가를 위한 파이썬(2판)
521
13
장
인터페이스, 프로토콜, 추상 베이스 클래스
Iterator
Iterator
는
Iterable
을 상속한다. 이에 관해서는
17
장에서 자세히 설명한다.
Callable, Hashable
이 두
ABC
는 컬렉션은 아니지만,
collections.abc
가 파이썬 표준 라이브러리 안에서
ABC
를 정의한 최초의 패키지며, 이 두 모듈은 여기에 포함할 가치가 있다고 생각했다. 이
두
ABC
는 객체가 호출 가능형이거나 해시 가능형인지 검사할 수 있게 해준다.
호출 가능한
객체인지
알아보려면
insinstance
(
obj, Callable
)
보다는 내장
함수
callable(obj
)
로 검사하는 게 더 편하다.
insinstance(
obj, Hashable
)
가
False
를 반환하면
obj
가 해시 가능한 객체가 아님을 확신
할 수 있지만,
True
를 반환하더라도 위양성일 수 있다. 다음 글상자를 참조하라.
Hashable
과
Iterable
형인지
isinstance
()
로 검사할 때의 오해
isinstance()
나
issubclass()
로
Hashable
과
Iterable
ABC
에 대해 검사한 결과를 오
해하기 쉽다.
isisntance(obj, Hashable)
이
True
를 반환한다면,
obj
가
__hash__()
메서드
를 구현했다는 것만을 의미한다. 그러나 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
전문가를 위한 리액트
테자스 쿠마르
데이터로 전문가처럼 말하기
칼 올친
개발자를 위한 머신러닝&딥러닝
로런스 모로니
고성능 파이썬(2판)
오현석, 미샤 고렐릭, 이안 오스발트
Publisher Resources
ISBN: 9791169211772