diff --git a/README.md b/README.md index c884fe7..2abb5bf 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,11 @@ Dictionary ``` ```python -collections.defaultdict() # Creates a dictionary with default values of type. -collections.OrderedDict() # Creates ordered dictionary. -dict() # Initiates a dict from list of key/value pairs. -dict(zip(keys, values)) # Initiates a dict from two lists. +collections.defaultdict() # Creates a dictionary with default value of type. +collections.defaultdict(lambda: 1) # Creates a dictionary with default value 1. +collections.OrderedDict() # Creates ordered dictionary. +dict() # Initiates a dict from list of key/value pairs. +dict(zip(keys, values)) # Initiates a dict from two lists. {k: v for k, v in .items() if k in } # Filters a dict by keys. ``` @@ -641,6 +642,12 @@ while True: break ``` +### Recursion Limit +```python +>>> sys.getrecursionlimit() +1000 +>>> sys.setrecursionlimit(10000) +``` JSON ----