مشخصات کتاب
-
Steven F. Lott
-
2010
-
انگلیسی
-
5575
-
434
-
0
Mastering Object-oriented Python
About casino Blackjack 10
Playing the game 10
Blackjack player strategies 11
Object design for simulating Blackjack 12
Performance – the timeit module 12
Testing – unittest and doctest 13
Unit testing and technology spikes 15
Docstrings – RST markup and documentation tools 16
The IDE question 17
About special method names 18
Summary 19
Part 1: Pythonic Classes via Special Methods
Chapter 1: The __init__() Method 25
The implicit superclass – object 25
The base class object __init__() method 26
Implementing __init__() in a superclass 27
Using __init__() to create manifest constants 28
Leveraging __init__() via a factory function 30
Faulty factory design and the vague else clause 31
Simplicity and consistency using elif sequences 32
Simplicity using mapping and class objects 33
Two parallel mappings 34
Mapping to a tuple of values 34
The partial function solution 34
Fluent APIs for factories 35
Foundations of Python Network Programming
نویسنده: Brandon Rhodes John Goerzen
زبان: انگلیسی