diff --git a/README.md b/README.md index a4cafad..35ae208 100644 --- a/README.md +++ b/README.md @@ -1331,6 +1331,7 @@ class (Enum): ``` * **If there are no numeric values before auto(), it returns 1.** * **Otherwise it returns an increment of the last numeric value.** +* **Accessing a member named after a reserved keyword causes SyntaxError.** ```python = . # Returns a member. diff --git a/index.html b/index.html index b85fdc7..9340cbf 100644 --- a/index.html +++ b/index.html @@ -1147,6 +1147,7 @@ Hello World!
  • If there are no numeric values before auto(), it returns 1.
  • Otherwise it returns an increment of the last numeric value.
  • +
  • Accessing a member named after a reserved keyword causes SyntaxError.
<member> = <enum>.<member_name>                 # Returns a member.
 <member> = <enum>['<member_name>']              # Returns a member or raises KeyError.