From 35aab5daf8d472d081094e75eed9308258d82180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 4 Jan 2021 08:58:50 +0100 Subject: [PATCH] Enum --- README.md | 2 +- index.html | 2 +- pdf/remove_links.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a28169..118a6d1 100644 --- a/README.md +++ b/README.md @@ -1336,7 +1336,7 @@ from functools import partial LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r), 'OR' : partial(lambda l, r: l or r)}) ``` -* **Another solution in this particular case is to use built-in functions and\_() and or\_() from the module [operator](#operator).** +* **Another solution in this particular case is to use functions and\_() and or\_() from the module [operator](#operator).** Exceptions diff --git a/index.html b/index.html index f801fae..ed40691 100644 --- a/index.html +++ b/index.html @@ -1290,7 +1290,7 @@ LogicOp = Enum('LogicOp', {operator. +
  • Another solution in this particular case is to use functions and_() and or_() from the module operator.
  • #Exceptions

    Basic Example

    try:
         <code>
    diff --git a/pdf/remove_links.py b/pdf/remove_links.py
    index 36c27b6..2ad1bc8 100755
    --- a/pdf/remove_links.py
    +++ b/pdf/remove_links.py
    @@ -14,7 +14,7 @@ MATCHES = {
         'Objects returned by the itertools module, such as count, repeat and cycle.': 'Objects returned by the itertools module, such as count, repeat and cycle (p. 3).',
         'Generators returned by the generator functions and generator expressions.': 'Generators returned by the generator functions (p. 4) and generator expressions (p. 11).',
         'File objects returned by the open() function, etc.': 'File objects returned by the open() function (p. 22), etc.',
    -    'Another solution in this particular case is to use built-in functions and_() and or_() from the module operator.': 'Another solution in this particular case is to use built-in functions and_() and or_() from the module operator (p. 31).',
    +    'Another solution in this particular case is to use functions and_() and or_() from the module operator.': 'Another solution in this particular case is to use functions and_() and or_() from the module operator (p. 31).',
         'Functions report OS related errors by raising either OSError or one of its subclasses.': 'Functions report OS related errors by raising OSError or one of its subclasses (p. 23).',
         'Bools will be stored and returned as ints and dates as ISO formatted strings.': 'Bools will be stored and returned as ints and dates as ISO formatted strings (p. 9).',
         'Asyncio module also provides its own Queue, Event, Lock and Semaphore classes.': 'Asyncio module also provides its own Queue, Event, Lock and Semaphore classes (p. 30).',