From 6118d70bd447910f58a858dc343c7a6f16a8f6c6 Mon Sep 17 00:00:00 2001 From: David Mascharka Date: Sat, 9 May 2020 21:30:55 -0700 Subject: [PATCH] Fix minor typos in Module 4 intro --- Python/module_4.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/module_4.rst b/Python/module_4.rst index 021a2c97..0251813f 100644 --- a/Python/module_4.rst +++ b/Python/module_4.rst @@ -2,7 +2,7 @@ Module 4: Object Oriented Programming ===================================== In this module, we will come to see that Python is an object-oriented language. That is, the language is all about defining different types of objects that encapsulate data, and that possess functions that permit users to access and manipulate this data. Our tour through `the essentials of Python `_ and `the essentials of NumPy `_ brought us into contact with various types of objects, such as the :code:`int`, :code:`str`, :code:`list`, :code:`tuple`, :code:`dict`, and the :code:`numpy.ndarray`, to name a few. We have seen that these different types of objects have starkly different functionality from one another. We will study the syntax and constructs for creating and interacting with objects in Python. Ultimately, will find our skill sets as Python-users much fuller and more sophisticated having understood object-oriented programming in Python. -We being this module by establishing some key terminology for discussing object-oriented programming, drawing attention to the important fact that the terms 'class' and 'type' mean the same thing in modern Python. Next, we study the syntax for defining a class, and take time to distinguish between the resulting class object and the subsequent class instances that can then be created. Having defined our first custom class of object, we then study the syntax for defining class-methods, which permits us add customized functionality to our class. Further, we will introduce ourselves to Python's reserved special methods, which empower us to fully interface our class with the Python's protocols for behaving like a sequence, an iterable, a function, etc. We conclude this module with a brief discussion of the concept of inheritance, which is a mechanism by which a new class can inherit attributes from an existing class. +We begin this module by establishing some key terminology for discussing object-oriented programming, drawing attention to the important fact that the terms 'class' and 'type' mean the same thing in modern Python. Next, we study the syntax for defining a class, and take time to distinguish between the resulting class object and the subsequent class instances that can then be created. Having defined our first custom class of object, we then study the syntax for defining class-methods, which permits us to add customized functionality to our class. Further, we will introduce ourselves to Python's reserved special methods, which empower us to fully interface our class with Python's protocols for behaving like a sequence, an iterable, a function, etc. We conclude this module with a brief discussion of the concept of inheritance, which is a mechanism by which a new class can inherit attributes from an existing class. .. toctree:: :maxdepth: 2