欧宝娱乐

Jump to ratings and reviews
Rate this book

Python 3 Object Oriented Programming

Rate this book
The book begins with the very foundations of OOP and then uses practical examples to show how to correctly implement Object Oriented Programming in Python. Many examples are taken from real-world projects. The book focuses on high-level design as well as the gritty details of the Python syntax. The provided exercises inspire the reader to think about his or her own code, rather than providing solved problems. If you're new to Object Oriented Programming techniques, or if you have basic Python skills and wish to learn in depth how and when to correctly apply Object Oriented Programming in Python, this is the book for you. If you are an object-oriented programmer for other languages, you too will find this book a useful introduction to Python, as it uses terminology you are already familiar with. Python 2 programmers seeking a leg up in the new world of Python 3 will also find the book beneficial, and you need not necessarily know Python 2.

404 pages, Kindle Edition

First published July 26, 2010

231 people are currently reading
448 people want to read

About the author

Dusty Phillips

16books9followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
82 (33%)
4 stars
104 (42%)
3 stars
47 (19%)
2 stars
11 (4%)
1 star
3 (1%)
Displaying 1 - 26 of 26 reviews
24 reviews
May 3, 2013
I'm an amateur programmer, and own several python books. I've tinkered with C++ in the past, but never felt I had a good handle on Object Oriented concepts (especially design patterns) until reading this book. Python is an excellent, relatively easy to use programming language, but I've found that instruction concerning object oriented concepts (and especially design patterns) which were based on other languages (predominantly Java or C++) didn't quite fit with Python. This book does an excellent job of explaining why that is and illustrating the proper application of object oriented concepts and design patterns within the context of Python.
Profile Image for Gert.
64 reviews1 follower
October 17, 2012
Clear book on OO in Python3. Strongly recommended.
Profile Image for Eric Mesa.
822 reviews24 followers
January 12, 2019
I've rarely done object-oriented programming in Pytnon and haven't done any serious OOP since undergrad, nearly 20 years ago (and in Java). i found this book to be very well written and a good way to become an expert in the Python way of doing OOP. I discovered new and more efficient ways to write functions I've been writing that should allow me to have more easily maintainable code.

What I like best about the way the book is written is that it's not written to be a textbook so the chapters don't end with silly exercises. Instead, each chapter ends first with a case study that explores the principles from the chapter and then a series of thought experiments the reader can perform. Better than all that - and something missing from lots of books and tutorials I've read in the past - the author always points out where her example code is not the best way to do something, but is being written this way to demonstrate the chapter's topics. It prevents the novice programmer from building off this example and thinking it's the best way to write the code.

I'd definitely recommend it, but make sure you already know how to program in Python because it doesn't spend the first couple chapters introducing the basics.
Profile Image for Isen.
253 reviews5 followers
October 7, 2020
Python 3: Object Oriented Programming covers a number of basic topics in OO programming in Python. The target audience seems to be a programmer who is a novice in both the principles of OO and Python, which on the one hand makes it for an easy read, but on the other hand it's hard to imagine why you would want to explain how to implement multiple inheritance to someone who has written their first Hello World. And if we assume the reader is more experienced, then much of the book is needless fluff.

I'll give it a three, because it's convenient to have this info all in one place, but I'm not sure whether it's more useful than just Googling it.
Profile Image for Maamoun Haj Najeeb.
28 reviews1 follower
June 10, 2023
Done
one of the most enjoyable book I've ever read in my life

the review will be in two languages [Arabic, English] starting with Arabic

賰鬲丕亘 乇丕卅毓 賵賷丨亘 毓賱賶 賰賱 賲胤賵乇 亘丕賷孬賵賳 兀賳 賷賯乇兀賴, 丨賯賷賯丞賸 賲丕 賵噩丿鬲賴 賲賳 鬲賮丕氐賷賱 賲賴賲丞 賮賷 賴匕丕 丕賱賰鬲丕亘 賱賲 兀噩丿 賱賴丕 賲孬賷賱丕賸 賵賱丕 賮賷 兀賷 丿賵乇丞 賲賳 丕賱丿賵乇丕鬲 丕賱賲賳鬲卮乇丞 毓賱賶 丕賱兀賳鬲乇賳鬲 (丕賱兀噩賳亘賷丞 賲賳賴丕 賵丕賱毓乇亘賷丞)

丕賱賰鬲丕亘 賲丐賱賮 賲賳 12 賮氐賱

丕賱賮氐賱 丕賱兀賵賱 亘丿兀 賮賷賴 丕賱賰丕鬲亘 亘丕賱丨丿賷孬 毓賳 賲亘丕丿卅 鬲氐賲賷賲 丕賱亘乇賲噩丞 丕賱卮賷卅賷丞 賱賰賳 賱賷爻 亘丕賱胤乇賷賯丞 丕賱賲毓賴賵丿丞, 鬲丨丿孬 丕賱賰丕鬲亘 毓賳 兀爻丕爻賷丕鬲 丕賱鬲氐賲賷賲 賲孬賱丕賸 丕賱賮乇賯 亘賷賳 丕賱inheritance 賵丕賱 composition

丕賱賮氐賱 丕賱孬丕賳賷 賰丕賳 毓賳 胤乇賷賯丞 鬲毓乇賷賮 丕賱 classes
賲毓 亘毓囟 丕賱兀賲孬賱丞

賱兀賰賵賳 氐乇賷丨丕賸 賱賲 賷賰賳 賴賳丕賰 鬲賵丕氐賱 噩賷丿 亘賷賳賷 賵亘賷賳賷 丕賱賰鬲丕亘 賮賷 賴匕賷賳 丕賱賮氐賱賷賳

賮賷 丕賱賮氐賱 丕賱孬丕賱孬 丕賱賰丕鬲亘 鬲丨丿孬 毓賳 丕賱胤乇賯 丕賱賮毓賸丕賱丞 賱丕爻鬲禺丿丕賲 禺氐丕卅氐 丕賱亘乇賲噩賷丞 丕賱卮賷卅賷丞 賲鬲賶 賳爻鬲毓賲賱 丕賱賵乇丕孬丞 賲鬲賶 賳爻鬲毓賲賱 丕賱 polymorphism
亘丿亍丕賸 賲賳 丕賱賮氐賱 丕賱孬丕賱孬 亘丿兀鬲 丕賱賲鬲毓丞

丕賱賮氐賱 丕賱乇丕亘毓 賵亘丿丕賷丞 丕賱賲鬲毓丞 丕賱丨賯賷賯賷丞 賵賮氐賱 賰丕賲賱 賷鬲丨丿孬 毓賳
- except handling
- how to build errors
- how to build your own errors

丕賱賮氐賱 丕賱禺丕賲爻 賴賵 丕賱兀賮囟賱 鬲丨丿孬 丕賱賰丕鬲亘 毓賳 丕賱賵賯鬲 丕賱氐丨賷丨 賱丕爻鬲禺丿丕賲 丕賱亘乇賲噩丞 丕賱卮賷卅賷丞 賮賱賷爻鬲 賰賱 丕賱賲卮丕賰賱 鬲丨鬲丕噩 廿賱賶 classes
賷賲賰賳 賵囟毓 賴匕丕 丕賱賮氐賱 鬲丨鬲 毓賳賵丕賳 丿賱賷賱 丕賱賲胤賵乇 賮賷 丕爻鬲禺丿丕賲 丕賱亘乇賲噩丞 丕賱卮賷卅賷丞 亘丕賱賵賯鬲 丕賱賲賳丕爻亘

丕賱賮氐賱 丕賱爻丕丿爻 賰丕賳 賲毓 鬲乇丕賰賷亘 丕賱亘賷丕賳丕鬲 丕賱兀爻丕爻賷丞 賮賷 亘丕賷孬賵賳 賵丕賱胤乇賷賯丞 丕賱氐丨賷丨丞 賱丕爻鬲禺丿丕賲賴丕 賮賷 丨賱 丕賱賲卮賰賱丕鬲

丕賱賮氐賱 丕賱爻丕亘毓 賰丕賳 丕賱丨丿賷孬 賮賷賴 毓賳 丕賱丿賵丕賱 丕賱噩丕賴夭丞 賮賷 亘丕賷孬賵賳 賵賰賷賮 兀賳 丕賱丿賵丕賱 賮賷 亘丕賷孬賵賳 賲丕賴賷 廿賱丕
first level objects

丕賱賮氐賱 丕賱孬丕賲賳 賵丕賱鬲丕爻毓 賰丕賳鬲 毓賳 兀賳賲丕胤 丕賱鬲氐賲賷賲 賱賲 兀賯乇兀 賴匕賷賳 丕賱賮氐賱賷賳 亘丕賱鬲賮丕氐賷賱 丕賱賰丕賲賱丞 賱兀賳 鬲氐賲賷賲 丕賱兀賳賲丕胤 兀賲乇 賲鬲賯丿賲
賱賰賳賳賷 丿乇爻鬲 decorators
賵賱賲 賷賰賳 丕賱卮乇丨 賵丕囟丨 亘丕賱賰鬲丕亘 賱賱兀賲丕賳丞 賱賰賳 丕賱兀賲孬賱丞 毓賱賶 賴匕丕 丕賱賳賲胤 賯賵賷丞

丕賱賮氐賱 丕賱毓丕卮乇 賰丕賳 毓賳 丕賱丕爻鬲禺丿丕賲 丕賱兀賲孬賱 賱賱爻賱丕爻賱 丕賱賳氐賷丞 賵丕賱鬲毓丕賲賱 賲毓 丕賱賲賱賮丕鬲 賮賷 亘丕賷孬賵賳, 賮氐賱 賲賮賷丿 賱賰賳 賱賷爻 亘賯賵丞 丕賱賮氐賵賱 丕賱爻丕亘賯丞

丕賱賮氐賱 丕賱丨丕丿賷 毓卮乇 賰丕賳 毓賳 丕禺鬲亘丕乇 丕賱亘乇丕賲噩 賵丕賱丿賵丕賱 毓丕丿鬲 丕賱賲鬲毓丞 賲毓 賴匕丕 丕賱賮氐賱 丕賱賰丕鬲亘 卮乇丨 孬賱丕孬 胤乇賯 賱賱丕禺鬲亘丕乇 亘賲丨鬲賵賶 噩賷丿 噩丿丕賸

丕賱賮氐賱 丕賱孬丕賳賷 毓卮乇 賰丕賳 毓賳 亘毓囟 賲賰鬲亘丕鬲 亘丕賷孬賵賳 賵賱賲 兀賰賲賱賴 賱兀賳 丕賱兀賮賰丕乇 賯丿賷賲丞 亘毓囟 丕賱卮賷亍

毓賱賶 丕賱毓賲賵賲 丕賱賰鬲丕亘 乇丕卅毓 賵兀賳氐丨 兀賷 卮禺氐 賷卮毓乇 亘兀賳 兀賮賰丕乇 丕賱亘乇賲噩丞 丕賱卮賷卅賷丞 睾賷乇 賲賰鬲賲賱丞 賱丿賷賴 亘兀賳 賷賯乇兀賴 爻賷氐丨丨 賱賰 丕賱賲賮丕賴賷賲 賵賷噩毓賱賰 鬲乇賶 丕賱兀賲賵乇 賲賳 賲賳馗賵乇 丕賾禺乇

賷毓賷亘 丕賱賰鬲丕亘 亘毓囟 丕賱兀賲孬賱丞 丕賱賯丿賷賲丞 賵匕賱賰 胤亘賷毓賷 賮丕賾禺乇 賳爻禺丞 賲賳 丕賱賰鬲丕亘 氐丿乇鬲 賮賷 丕賱毓丕賲 2017 兀賷 賲賳匕 爻鬲 爻賳賵丕鬲 賵亘丕賷孬賵賳 鬲鬲胤賵乇 亘爻乇毓丞 賰亘賷乇丞

鬲賯賷賷賲賷 4/5

賲賱丕丨馗丞 兀禺賷乇丞: 丕賱賱睾丞 丕賱廿賳賰賱賷夭賷丞 賮賷 丕賱賰鬲丕亘 賱賷爻鬲 氐毓亘丞 毓賱賶 丕賱毓賰爻 丕賱賰鬲丕亘 丕賳賰賱賷夭賷鬲賴 爻賱爻賱丞
Profile Image for Ray.
267 reviews
March 24, 2020
Picked this book up from NYT on the last day before the office was closed for covid-19.

This edition is about 10 years old so I'm sure it's missing some good stuff available in the newer one. However, I would say this was a solid intro to object oriented python.

It does have some good intermediate(ish) topics like when to use __init__ vs __new__, multiple inheritance, and general conventions in python code structure.

However, the real gold for me was in chapters 8/9 about python design patterns. It covered the standard patterns (observer, strategy, singleton, adapter, facade) in a helpful amount of detail and describes how they map specifically to python. One good example is the singleton which we can use __new__ to create but they also warn is considered an antipattern in python and doesn't often make sense.

The downside of this book?
Not all of the examples (or case studies) are great. Some are still very abstract and not too relatable for someone who hasn't used the pattern before.
Some of the examples of specific libraries, like xml parsers and GUIs, are pretty dated. But that's to be expected 10 years later.

Final thoughts:
Definitely not something a beginner programmer could pickup and easily gain a lot from. However, if you already know OO or Python fairly well this is an easy way to understand how they can work together.
Profile Image for Vincenzo De Sanctis.
14 reviews
September 14, 2018
Great writing style, simple, clear, with several examples. For beginners and advanced programmes. No boring reading experience! Suggested!
Profile Image for Andreas Kontokanis.
16 reviews3 followers
August 10, 2024
"Python 3 Object-Oriented Programming" begins with a promising start, offering a well-presented and informative introduction to object-oriented programming (OOP) in its first three chapters. These initial sections set high expectations by explaining OOP concepts clearly and effectively, making them accessible to both newcomers and those seeking to deepen their understanding of Python.

However, the book takes a disappointing turn after these initial chapters. The middle sections, which focus on data structures, feel misplaced and overly detailed for a book meant to concentrate on OOP and design patterns. If you're unfamiliar with these data structures, you need to study them first before tackling OOP. Conversely, if you are already familiar with them, their in-depth analysis seems unnecessary within this context.

As I progressed through the book, I couldn't help but imagine a conversation between the author and the editor:

Author: "I have a great idea for a book on Python OOP and design patterns. There's a vacuum in the market."
Editor: "Great idea, let's make it 500 pages."
Author: "But I can cover it well in 240."
Editor: "No, it needs more."


The result is a book that starts strong but becomes filled with fluff. The latter parts of the book, which should have been the most crucial, read like a rushed university lab assignment finished in one night. Important topics are glossed over, and the depth and clarity of the earlier chapters are sorely missing. It feels as though the author was pressured to meet a page count rather than deliver quality content throughout.

In conclusion, while "Python 3 Object-Oriented Programming" has potential and starts with promise, it ultimately falls short of delivering a comprehensive guide to OOP and design patterns in Python. There's undoubtedly a market for a well-executed book on this topic, but this one, unfortunately, does not meet the mark.
Profile Image for Alex.
5 reviews
April 26, 2020
That's a fantastic book! A person with any level of python/coding skills would appreciate it. It starts form very basics of OOP concepts like what a class and an object are. Then, it builds up to how to use classes in python, class inheritance and extending python data structures. Also, a big part of the book are design patterns, e.g. decorator, observer, adapter and facade to name some of them.

What I like about the book is that the author engagingly and utterly introduces each concept. He covers every chapter from an object oriented perspective and sometimes gives examples from his own software development experience. The book is full of elegant code snippets and awsome python tricks.

What I think might be improved in the book are the case studies at the end of the chapters. Some studies are great and very clear like the one about using k-nearest neighbors for an rgb color learning. However, some cases are not that great in terms of problem statement. Sometimes, I could not understand what the problem was until I read through the code. Anyways, all examples are good and I got all off them, just needed to spend some extra time on understanding what problem was about to be solved.

Note to the author: I'd be very interested to read your books on Concurrency and
Regular Expressions if you ever decide to write one :)
12 reviews1 follower
Read
August 2, 2019
All about OOP in Python. Start with what is OOP and what benefits it has and goes into details of implementing it in Python - MRO, magic methods, getter/setters, etc. Has a nice chapter on exception handling and # General stuff. Touches packaging briefly. There are also some implementation of popular design patterns
Profile Image for Constantine.
121 reviews2 followers
May 2, 2018
A great book for both advanced Python programmers and novices. It opens up a lot of information on object-oriented aspect and even a little about async. I found some little things that made my life easier with python and recon to read this if you are even fairly envolved in programming.
Profile Image for Guillermina.
16 reviews
December 20, 2024
"Test-driven development is fun. It allows us to build little puzzles to solve. Then we implement the code to solve the puzzles."

Fun, easy, useful, but comprehensive book. I feel ready to implement my first object-oriented program in Python.
Profile Image for Eduardo Fernandes.
11 reviews
November 2, 2019
Easy to read, easy to understand, thought very deep subjects and lots of practical examples.
I really enjoyed the reading and strongly recommend it.
This entire review has been hidden because of spoilers.
Profile Image for nicomanso.
4 reviews
December 29, 2019
I really love the amount of examples and real case scenario. It is a good book to start thinking in an OO way.
Profile Image for Chuck Alley.
11 reviews
January 16, 2021
Stunning social commentary, incredible insights into the heart of darkness, gripping reading cover to cover.
Profile Image for David.
26 reviews1 follower
October 11, 2021
Fantastic book. The kindle version lack quality though still a fantastic book
Profile Image for Leam Hall.
Author听7 books8 followers
October 13, 2021
Very good if you know some python and want to really get into OOP with it.
Profile Image for BCS.
218 reviews34 followers
January 29, 2017
If one thinks in terms of programming, then one will know that the picture on this book's cover is worth more than a thousand words. It truly expresses the idea of object-oriented programming in simple terms. The lush green vegetation, icy mountain top, and water reflection simply represent both real and abstract objects.

The author, Dusty Phillips, an open source programmer with over 15 years of programming experience with Python, produced a great piece of work in the world of Python programming - Python 3 Object-oriented Programming. This book simplified the complexities that beginner and intermediate programmers with a rusty understanding may face in using Python.

The book engages and absorbs the reader into the subject matter involving almost all the human senses. The writing style and tone are just perfect as beginners can truly feel at ease; for example, real world objects and scenarios are used to break down and eliminate the need for technical jargon, something which beginners find daunting. In addition, readers can happily have access to and download hundreds of source codes for free from the publisher's website. These source codes are of immense value and will surely delight both beginner and intermediate users.

The case study available at the end of every chapter is a beautiful concept that brings together all that has been learnt while reading each chapter. They are practical implementations of a real world situation or environment.

Most importantly, this book is a practical guide that walks one through problems, something that I didn鈥檛 expect and find truly marvellous.

In this second edition, it is evident that the author has invested both time and effort, and has listened to reader feedback to enhance this particular edition. The first edition of this book was good, but some aspects of it were not focus-oriented. Thus, this second edition displays more maturity and delivers more focused content on the subject matter. A new chapter on concurrency in this second edition is an excellent move I think, as most modern computing deals with multi-core processing.

This 460 page book is an excellent guide on learning Python 3 as well as aspiring to become proficient in it. It is also one of the few books out there that one will find truly practical and engaging.

Review by Kalum Priyanath Udagepola PhD, MSc,BSc,Sur.Dip.,Reg. Surv.,FBCS,FACS,CP,SMIEEE,GISP
Originally posted:
Profile Image for Julio Biason.
199 reviews28 followers
April 2, 2016
After a bunch of titles from Packt, I expected something that would be half OO, half Python 3. But I got a very happy surprise reading the book because it does really go intro OO, explaining from analysis to design to code and then slowly dwelving into Python around those topics.

Not only that, but instead of simply assuming his position is right, the author explores other possibilites and than moves back when something doesn't work -- kinda like does in .

In the end, even after I work with Python for 5+ years, I still learnt a few more things about using Python for OO development (and really got in agreement with the author when OO isn't necessary!)
Profile Image for Charles.
185 reviews16 followers
April 8, 2013
Seems like a decent book, but not exactly what I was looking for: something to allow an experienced PHP developer to pick up Python with a minimum of strain. Instead it seemed to assume some basic experience with Python and largely concentrated on the details and theory of specific object-oriented Python issues. So if that's your current need, it's probably quite useful, and I may find it something I need to refer to later as I get up to speed with the language.
Profile Image for Paul Childs.
183 reviews3 followers
Read
February 23, 2016
Used this book to fill in some of the gaps in my use of object-oriented programming in Python. I found it to be pretty useful in some areas where it cleared up misunderstandings that I had. It had a lot of good information for people like me that are still new to Python, and other information about design and concurrency that I am sure would be helpful to others, but not so much to me at this time.

The testing was also pretty helpful to me as well.
Displaying 1 - 26 of 26 reviews

Can't find what you're looking for?

Get help and learn more about the design.