diff --git a/README.md b/README.md index 7803a6f..b9997af 100644 --- a/README.md +++ b/README.md @@ -1260,7 +1260,6 @@ class MySequence: * **It's a richer interface than the basic sequence.** * **Extending it generates iter(), contains(), reversed(), index(), and count().** * **Unlike `'abc.Iterable'` and `'abc.Collection'`, it is not a duck type. That is why `'issubclass(MySequence, collections.abc.Sequence)'` would return False even if MySequence had all the methods defined.** - ```python class MyAbcSequence(collections.abc.Sequence): def __init__(self, a): @@ -1378,8 +1377,7 @@ except (, ...) as : ```python raise raise () -raise () -raise (, ...) +raise ( [, ...]) ``` #### Re-raising caught exception: @@ -1407,9 +1405,9 @@ BaseException | +-- ZeroDivisionError # Raised when dividing by zero. +-- AttributeError # Raised when an attribute is missing. +-- EOFError # Raised by input() when it hits end-of-file condition. - +-- LookupError # Raised when a look-up on a sequence or dict fails. + +-- LookupError # Raised when a look-up on a collection fails. | +-- IndexError # Raised when a sequence index is out of range. - | +-- KeyError # Raised when a dictionary key is not found. + | +-- KeyError # Raised when a dictionary key or set element is not found. +-- NameError # Raised when a variable name is not found. +-- OSError # Failures such as “file not found” or “disk full”. | +-- FileNotFoundError # When a file or directory is requested but doesn't exist. @@ -1467,7 +1465,7 @@ Input ``` * **Trailing newline gets stripped.** * **Prompt string is printed to the standard output before reading input.** -* **Raises EOFError when user hits EOF or input stream gets exhausted.** +* **Raises EOFError when user hits EOF (ctrl-d) or input stream gets exhausted.** Command Line Arguments diff --git a/index.html b/index.html index d2c9b24..359c2ce 100644 --- a/index.html +++ b/index.html @@ -1293,8 +1293,7 @@ LogicOp = Enum('LogicOp', {Raising Exceptions
raise <exception>
 raise <exception>()
-raise <exception>(<el>)
-raise <exception>(<el>, ...)
+raise <exception>(<el_1> [, ...])
 

Re-raising caught exception:

except <exception>:
@@ -1316,9 +1315,9 @@ LogicOp = Enum('LogicOp', {80, depth=
 
  • Trailing newline gets stripped.
  • Prompt string is printed to the standard output before reading input.
  • -
  • Raises EOFError when user hits EOF or input stream gets exhausted.
  • +
  • Raises EOFError when user hits EOF (ctrl-d) or input stream gets exhausted.
  • #Command Line Arguments

    import sys
     script_name = sys.argv[0]