Skip to content

Commit 3ade20b

Browse files
committed
add remaining metadata
1 parent 403dc56 commit 3ade20b

File tree

11 files changed

+70
-1
lines changed

11 files changed

+70
-1
lines changed

Python/Module4_OOP/Applications_of_OOP.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Applications of object-oriented programming, Difficulty: Medium, Category: Section
18+
:keywords: summary, tutorial, python shopping list, object oriented, method, attribute
19+
```
20+
1521
# Applications of Object Oriented Programming
1622

1723
We have spent a considerable amount of time learning about the syntax and definitions of classes, class objects, instances, and methods. Let's take a moment to gather our knowledge and create a useful class. This will help develop a sense for the ways in which object oriented programming can be useful for us. We will try to take care to make some recommendations when one should and shouldn't define their own classes.

Python/Module4_OOP/Brief_Review.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Brief review of object oriented programming, Difficulty: Easy, Category: Tutorial
18+
:keywords: class definition, simple, examples, overview, init, initialize, type, object
19+
```
20+
1521
<!-- #region -->
1622
## A Brief Summary of Terms and Concepts
1723

Python/Module4_OOP/ClassDefinition.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: The rules for defining classes in python, Difficulty: Easy, Category: Section
18+
:keywords: class definition, scope, class object, attribute, method
19+
```
20+
21+
1522
<!-- #region -->
1623
# Defining a New Class of Object
1724

Python/Module4_OOP/ClassInstances.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Class instances versus objects, Difficulty: Medium, Category: Section
18+
:keywords: instance, class creation, init, self, isinstance
19+
```
20+
1521
<!-- #region -->
1622
# Instances of a Class
1723

Python/Module4_OOP/Inheritance.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Class inheritance, Difficulty: Easy, Category: Section
18+
:keywords: inherit, object oriented, overwrite, sub class, issubclass
19+
```
20+
1521
<!-- #region -->
1622
# Inheritance
1723
A final topic for us to discuss in this introduction to object oriented programming is the concept of inheritance. Working with inheritance provides powerful abstractions and elegant code re-use - it permits a class to inherit and build off of the attributes of another class.

Python/Module4_OOP/Introduction_to_OOP.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Introducing object oriented programming in python, Difficulty: Easy, Category: Section
18+
:keywords: class, type, creation, definition, intro, overview, basics, meaning
19+
```
20+
1521
<!-- #region -->
1622
# Introduction to Object Oriented Programming
1723

Python/Module4_OOP/Methods.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: The different kinds of class methods, Difficulty: Medium, Category: Section
18+
:keywords: instance, class method, static method, property, abstract method, class funtion
19+
```
20+
1521
<!-- #region -->
1622
# Methods
1723

Python/Module4_OOP/Special_Methods.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Controlling behavior with special methods, Difficulty: Medium, Category: Section
18+
:keywords: dunder method, special method, operator overload, repr, getitem, custom syntax, __init__
19+
```
20+
1521
<!-- #region -->
1622
# Special Methods
1723
In this section, we will learn about a variety of instance methods that are reserved by Python, which affect an object's high level behavior and its interactions with operators. These are known as special methods. `__init__` is an example of a special method; recall that it controls the process of creating instances of a class. Similarly, we will see that `__add__` controls the behavior of an object when it is operated on by the `+` symbol, for example. In general, the names of special methods take the form of `__<name>__`, where the two underscores preceed and succeed the name. Accordingly, special methods can also be referred to as "dunder" (double-underscore) methods. Learning to leverage special methods will enable us to design elegant and powerful classes of objects.

Python/Module5_OddsAndEnds/Modules_and_Packages.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Understanding imports modules and packages, Difficulty: Easy, Category: Section
18+
:keywords: custom package, module, script, import, setup, pip, conda, relative import, absolute import
19+
```
20+
1521
<!-- #region -->
1622
# Import: Modules and Packages
1723

Python/Module5_OddsAndEnds/WorkingWithFiles.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jupyter:
1212
name: python3
1313
---
1414

15+
```raw_mimetype="text/restructuredtext"
16+
.. meta::
17+
:description: Topic: Working with aths and files, Difficulty: Medium, Category: Section
18+
:keywords: open file, read file, pathlib, join directory, context manager, close file, rb, binary file, utf-8, encoding, pickle, numpy, load, archive, npy, npz, pkl, glob, read lines, write, save
19+
```
20+
1521
# Working with Files
1622
This section will discuss the best practices for writing Python code that involves reading from and writing to files. We will learn about the built-in `pathlib.Path` object, which will help to ensure that the code that we write is portable across operating systems (OS) (e.g. Windows, MacOS, Linux). We will also be introduced to a *context manager*, `open`, which will permit us to read-from and write-to a file safely; by "safely" we mean that we will be assured that any file that we open will eventually be closed properly, so that it will not be corrupted even in the event that our code hits an error. Next, we will learn how to "glob" for files, meaning that we will learn to search for and list files whose names match specific patterns. Lastly, we will briefly encounter the `pickle` module which allows us to save (or "pickle") and load Python objects to and from your computer's file system.
1723

0 commit comments

Comments
 (0)