You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
contain the root `toctree` directive.
5
5
6
6
.. meta::
7
-
:description: An opinionated guide to the Python programming language and a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
7
+
:description: An opinionated guide to the Python programming language and a best practice handbook for the installation, configuration, and usage of Python on a daily basis.
8
8
9
9
10
10
#################################
@@ -17,15 +17,15 @@ Greetings, Earthling! Welcome to The Hitchhiker's Guide to Python.
17
17
`fork us on GitHub <https://github.com/realpython/python-guide>`_!
18
18
19
19
This handcrafted guide exists to provide both novice and expert Python
20
-
developers a best practice handbook to the installation, configuration, and
20
+
developers a best practice handbook for the installation, configuration, and
21
21
usage of Python on a daily basis.
22
22
23
23
This guide is **opinionated** in a way that is almost, but not quite, entirely
24
24
*unlike* Python's official documentation. You won't find a list of every Python web framework
25
25
available here. Rather, you'll find a nice concise list of highly recommended
26
26
options.
27
27
28
-
.. note:: The use of **Python 3** is *highly* preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.
28
+
.. note:: The use of **Python 3** is *highly* recommended over Python 2. Consider upgrading your applications and infrastructures if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.
29
29
—*Kenneth Reitz*
30
30
31
31
Let's get started! But first, let's make sure you know where your towel is.
Copy file name to clipboardExpand all lines: docs/starting/which-python.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Recommendations
31
31
***************
32
32
33
33
34
-
.. note:: The use of **Python 3** is *highly* preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.
34
+
.. note:: The use of **Python 3** is *highly* recommended over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.
Copy file name to clipboardExpand all lines: docs/writing/logging.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The :mod:`logging` module has been a part of Python's Standard Library since
10
10
version 2.3. It is succinctly described in :pep:`282`. The documentation
11
11
is notoriously hard to read, except for the `basic logging tutorial`_.
12
12
13
-
As an alternative, `loguru <https://github.com/Delgan/loguru>`_ provides an approach to logging nearly as simple as using a simple ``print`` statement.
13
+
As an alternative, `loguru <https://github.com/Delgan/loguru>`_ provides an approach for logging, nearly as simple as using a simple ``print`` statement.
14
14
15
15
Logging serves two purposes:
16
16
@@ -59,7 +59,7 @@ using the ``__name__`` global variable: the :mod:`logging` module creates a
59
59
hierarchy of loggers using dot notation, so using ``__name__`` ensures
60
60
no name collisions.
61
61
62
-
Here is an example of best practice from the `requests source`_ -- place
62
+
Here is an example of the best practice from the `requests source`_ -- place
63
63
this in your ``__init__.py``:
64
64
65
65
.. code-block:: python
@@ -83,7 +83,7 @@ application environment.
83
83
There are at least three ways to configure a logger:
84
84
85
85
- Using an INI-formatted file:
86
-
- **Pro**: possible to update configuration while running using the
86
+
- **Pro**: possible to update configuration while running, using the
87
87
function :func:`logging.config.listen` to listen on a socket.
88
88
- **Con**: less control (e.g. custom subclassed filters or loggers)
89
89
than possible when configuring a logger in code.
@@ -94,13 +94,13 @@ There are at least three ways to configure a logger:
94
94
- **Con**: less control than when configuring a logger in code.
95
95
- Using code:
96
96
- **Pro**: complete control over the configuration.
97
-
- **Con**: modifications require a change to source code.
97
+
- **Con**: modifications require a change to the source code.
98
98
99
99
100
100
Example Configuration via an INI File
101
101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
102
103
-
Let us say the file is named ``logging_config.ini``.
103
+
Let us say that the file is named ``logging_config.ini``.
104
104
More details for the file format are in the `logging configuration`_
0 commit comments