Skip to content

Commit a376cac

Browse files
author
Bruno Alla
committed
Correct typo in the interpreter section
1 parent 2c0e457 commit a376cac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/the-interpreter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The Interpreter
22
===============
33

4-
Python is an interpreted language, similiar in the way to how Java operates, with bytecode. However, unlike Java, you will normally work with ``*.py`` files directly, instead of compiled bytecode files (``*.pyc``).
4+
Python is an interpreted language, similar in the way to how Java operates, with bytecode. However, unlike Java, you will normally work with ``*.py`` files directly, instead of compiled bytecode files (``*.pyc``).
55

66
To fire up the Python interpreter, open up your terminal/console application, and type ``python`` or ``python3`` (depending on your installation). You should see something that looks like this::
77

@@ -10,7 +10,7 @@ To fire up the Python interpreter, open up your terminal/console application, an
1010
Type "help", "copyright", "credits" or "license" for more information.
1111
>>>
1212

13-
This is known as the Python interpreter, and is a REPL (Read–Eval–Print Loop). This allows you to type Python code, import modules, and interact with code you've written without having to write files to disk, in an interactive manner. This interactive mode is one of Python's super-powers, compared some other programming lanuages.
13+
This is known as the Python interpreter, and is a REPL (Read–Eval–Print Loop). This allows you to type Python code, import modules, and interact with code you've written without having to write files to disk, in an interactive manner. This interactive mode is one of Python's super-powers, compared some other programming languages.
1414

1515
Running a Script
1616
----------------
@@ -24,7 +24,7 @@ This will tell Python to load and execute the script provided.
2424
Dependencies
2525
++++++++++++
2626

27-
Sometimes, a script will not run because it does not have the neccessary dependencies installed. You'll normally see this come across as a ``ModuleNotFoundError``, embedded within a confusing (if you're new) exception message::
27+
Sometimes, a script will not run because it does not have the necessary dependencies installed. You'll normally see this come across as a ``ModuleNotFoundError``, embedded within a confusing (if you're new) exception message::
2828

2929
Traceback (most recent call last):
3030
File "name-of-script.py", line 1, in <module>
@@ -75,7 +75,7 @@ Bytecode Trick
7575

7676
The second trick is ``PYTHONDONTWRITEBYTECODE``. If you set this environment variable (e.g. in your ``~/.bashrc`` file or similar), Python won't write ``*.pyc`` files to disk, which is great, because they are incredibly annoying.
7777

78-
I've been using this environment variable for 7+ years for development and have never had any problems becaue of it.
78+
I've been using this environment variable for 7+ years for development and have never had any problems because of it.
7979

8080
Interactive Mode Trick
8181
++++++++++++++++++++++

0 commit comments

Comments
 (0)