@@ -186,14 +186,14 @@ objects, they have a type, they can be passed as function arguments, they may
186186have methods and properties. In this understanding, Python is an
187187object-oriented language.
188188
189- However, unlike Java, Python do not impose object-oriented programming as the
189+ However, unlike Java, Python does not impose object-oriented programming as the
190190main programming paradigm. It is perfectly viable for a Python project to not
191191be object-oriented, i.e. to use no or very few class definitions, class
192192inheritance, or any other mechanisms that are specific to object-oriented
193193programming.
194194
195195Moreover, as seen in the modules _ section, the way Python handles modules and
196- namespaces gives the developer a natural way to ensure
196+ namespaces gives the developer a natural way to ensure the
197197encapsulation and separation of abstraction layers, both being the most common
198198reasons to use object-orientation. Therefore, Python programmers have more
199199latitude to not use object-orientation, when it is not required by the business
@@ -208,8 +208,8 @@ In some architectures, typically web applications, multiple instances of Python
208208processes are spawned to respond to external requests that can
209209happen at the same time. In this case, holding some state into instantiated
210210objects, which means keeping some static information about the world, is prone
211- to concurrency problems or race-conditions. Sometime between the initialization of the
212- state of an object, usually done with the __init__() method, and the actual use
211+ to concurrency problems or race-conditions. Sometimes, between the initialization of
212+ the state of an object ( usually done with the __init__() method) and the actual use
213213of the object state through one of its methods, the world may have changed, and
214214the retained state may be outdated. For example, a request may load an item in
215215memory and mark it as read by a user. If another request requires the deletion
@@ -257,7 +257,7 @@ The Python language provides a simple yet powerful syntax called 'decorators'.
257257A decorator is a function or a class that wraps (or decorate) a function
258258or a method. The 'decorated' function or method will replace the original
259259'undecorated' function or method. Because functions are first-class objects
260- in Python it can be done 'manually' but using the @decorator syntax is
260+ in Python, it can be done 'manually', but using the @decorator syntax is
261261clearer and thus preferred.
262262
263263.. code-block :: python
0 commit comments