GitHub

@@ -139,9 +139,6 @@ In fact, a package is just a directory containing

139139

1. possibly some compiled code that can be accessed by Python (e.g., functions compiled from C or FORTRAN code)

140140

1. a file called `__init__.py` that specifies what will be executed when we type `import package_name`

141141142-

In fact, you can find and explore the directory for NumPy on your computer

143-

easily enough if you look around.

144-145142

You can check the location of your `__init__.py` for NumPy in python by running the code:

146143147144

```{code-block} ipython

@@ -280,7 +277,7 @@ x

280277281278

Here `append()` is what's called a *method*, which is a function "attached to" an object---in this case, the list `x`.

282279283-

We'll learn all about methods later on in {doc}`Object Oriented Programming <oop_intro>`, but just to give you some idea,

280+

We'll learn all about methods {doc}`later on <oop_intro>`, but just to give you some idea,

284281285282

* Python objects such as lists, strings, etc. all have methods that are used to manipulate the data contained in the object.

286283

* String objects have [string methods](https://docs.python.org/3/library/stdtypes.html#string-methods), list objects have [list methods](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists), etc.

Read the original on github.com ↗