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판)
538
3
부
클래스와 프로토콜
하나만 선언한
Sized
같은
ABC
며, 그 클래스들은 그러한 특별 메서드명만 검사할 뿐이다. 특
별한 역할이 있으니
__len__
이라는 이름의 메서드는 여러분이 기대하는 일을 할 것이라고 확
신할 수 있다. 그렇지만 특별 메서드와 핵심
ABC
영역에서도 그런 가정을 하는 것은 위험하
다. 예를 들어 매핑은
__len__(
)
,
__getitem__(
)
,
__iter__(
)
메서드를 구현하지만, 정
수 오프셋이나 슬라이스로 항목을 읽을 수 없으므로
Sequence
의 서브타입이라고 간주하지 않
는다. 그래서
abc.Sequence
(
https://fpy.li/13-29
)
는
__subclasshook__(
)
을 구현하지
않는다.
여러분이나 필자가 작성할
ABC
의 경우에는
__subclasshook__(
)
을 훨씬 더 믿을 수 없을
것이다. 필자는
load(
)
,
pick(
)
,
inspect(
)
,
loaded(
)
를 구현하거나 상속한
Spam
이라는
이름의 클래스가
Tombola
로 작동할 것이라고 믿지 않는다.
Spam
을
Tombola
로부터 상속하거
나, 적어도
Tombola.register(Spam
)
으로 등록해 프로그래머가 그 사실을 약속하면 믿을지
도 모르겠다. 물론 여러분이 작성한
__subclasshook__(
)
메서드가 ...
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