diff --git a/README.md b/README.md index fa9a89a..6e342a9 100644 --- a/README.md +++ b/README.md @@ -2159,7 +2159,7 @@ Operator **Module of functions that provide the functionality of operators. Functions are ordered by operator precedence, starting with least binding.** ```python import operator as op - = op.not_() # not (or/and bind even less) + = op.not_() # or, and, not (or/and missing) = op.eq/ne/lt/le/gt/ge/contains/is_(, ) # ==, !=, <, <=, >, >=, in, is = op.or_/xor/and_(, ) # |, ^, & = op.add/sub/mul/truediv/floordiv/mod(, ) # +, -, *, /, //, % @@ -2795,7 +2795,7 @@ img.putdata([(int(h), 255, 255) for h in hues]) img.convert('RGB').save('test.png') ``` -#### Adds noise to a PNG image and displays it: +#### Adds noise to the PNG image and displays it: ```python from random import randint add_noise = lambda value: max(0, min(255, value + randint(-20, 20))) diff --git a/index.html b/index.html index 361b333..23c5836 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -1781,7 +1781,7 @@ CompletedProcess(args=['bc', pickable. Queues must be sent using executor's 'initargs' and 'initializer' parameters.

#Operator

Module of functions that provide the functionality of operators. Functions are ordered by operator precedence, starting with least binding.

import operator as op
-<bool> = op.not_(<obj>)                                         # not (or/and bind even less)
+<bool> = op.not_(<obj>)                                         # or, and, not (or/and missing)
 <bool> = op.eq/ne/lt/le/gt/ge/contains/is_(<obj>, <obj>)        # ==, !=, <, <=, >, >=, in, is
 <obj>  = op.or_/xor/and_(<int/set>, <int/set>)                  # |, ^, &
 <obj>  = op.add/sub/mul/truediv/floordiv/mod(<obj>, <obj>)      # +, -, *, /, //, %
@@ -2284,7 +2284,7 @@ img.convert('RGB').save(Adds noise to a PNG image and displays it:
from random import randint
+

Adds noise to the PNG image and displays it:

from random import randint
 add_noise = lambda value: max(0, min(255, value + randint(-20, 20)))
 img = Image.open('test.png').convert('HSV')
 img.putdata([(add_noise(h), s, v) for h, s, v in img.getdata()])
@@ -2928,7 +2928,7 @@ $ deactivate                  # Deactivates the activ