Looking for a good introduction to object oriented programming with Python

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Aug 5 20:53:01 CEST 2012


On 05/08/2012 19:43, Ifthikhan Nazeem wrote:
[top posting fixed]
>
> On Sun, Aug 5, 2012 at 8:28 PM, Mark Lawrence <breamoreboy at yahoo.co.uk>wrote:
>
>> On 05/08/2012 19:04, Jean Dubois wrote:
>>
>>> On 5 aug, 02:11, shearich... at gmail.com wrote:
>>>
>>>> One reason you may be having difficulty is that unlike some languages
>>>> (C++/Java) object-orientation is not a be all and end all in Python, in
>>>> fact you could work with Python for a long time without really 'doing it'
>>>> at all (well other than calling methods/properties on existing API's).
>>>> Having said that here's what I would suggest ...
>>>>
>>>> Could do worse than this :
>>>>
>>>> http://www.diveintopython.net/**object_oriented_framework/**index.html<http://www.diveintopython.net/object_oriented_framework/index.html>
>>>>
>>>>   This example seems to tell you need the concept of dictionaries to
>>> explain object oriented programming, is this really necessary?
>>>
>>>> and this
>>>>
>>>> http://docs.python.org/**tutorial/classes.html<http://docs.python.org/tutorial/classes.html>
>>>>
>>> Unfortunately, the trouble with this explanation is exactly what made
>>> me ask the original question: it starts from concepts in c++ making it
>>> very hard to understand for someone who does not know that language
>>> already.
>>>
>>>>
>>>> read together.
>>>>
>>>> Judging by your question this is a probably a little advanced for now
>>>> but you could bookmark it for the future:
>>>>
>>>> http://www.catonmat.net/blog/**learning-python-design-**
>>>> patterns-through-.<http://www.catonmat.net/blog/learning-python-design-patterns-through-.>
>>>> ..
>>>>
>>>> Here's the corresponding PDF to go with the video:
>>>>
>>>> http://assets.en.oreilly.com/**1/event/45/Practical%20Python%**
>>>> 20Patterns.<http://assets.en.oreilly.com/1/event/45/Practical%20Python%20Patterns.>
>>>> ..
>>>>
>>> Can someone here on this list give a trivial example of what object
>>> oriented programming is, using only Python?
>>>
>>> thanks in advance
>>> Jean
>>>
>>>
>> Try this http://www.voidspace.org.uk/**python/articles/OOP.shtml<http://www.voidspace.org.uk/python/articles/OOP.shtml>???
>>
>> --
>> Cheers.
>>
>> Mark Lawrence.
>>
>> --
>> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>>
>
> I would recommend Bruce Eckel's Thining in Python. Check it out here
> http://www.mindview.net/Books/TIPython/
>
>

I'd forgotten about that so thanks for the reminder.

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list