diff --git a/README.md b/README.md index e2d13c3..d27abd5 100644 --- a/README.md +++ b/README.md @@ -601,7 +601,7 @@ from dateutil.tz import UTC, tzlocal, gettz, resolve_imaginary ``` * **Use `'.weekday()'` to get the day of the week (Mon == 0).** * **`'fold=1'` means second pass in case of time jumping back for one hour.** -* **`'
= resolve_imaginary(
)'` fixes DTs that fall into missing hour.** +* **`' = resolve_imaginary()'` fixes DTs that fall into missing hour.** ### Now ```python @@ -915,8 +915,7 @@ from functools import lru_cache def fib(n): return n if n < 2 else fib(n-2) + fib(n-1) ``` - -* **In CPython recursion depth is limited to 1000 by default. To increase it use `'sys.setrecursionlimit()'`.** +* **CPython interpreter limits recursion depth to 1000 by default. To increase it use `'sys.setrecursionlimit()'`.** ### Parametrized Decorator **A decorator that accepts arguments and returns a normal decorator that accepts a function.** diff --git a/index.html b/index.html index b8af21b..e7b7686 100644 --- a/index.html +++ b/index.html @@ -656,7 +656,7 @@ shuffle(<list>)
  • Use '<D/DT>.weekday()' to get the day of the week (Mon == 0).
  • 'fold=1' means second pass in case of time jumping back for one hour.
  • -
  • '<DT> = resolve_imaginary(<DT>)' fixes DTs that fall into missing hour.
  • +
  • '<DTa> = resolve_imaginary(<DTa>)' fixes DTs that fall into missing hour.

Now

<D/DTn>  = D/DT.today()                     # Current local date or naive datetime.
 <DTn>    = DT.utcnow()                      # Naive datetime from current UTC time.
@@ -892,7 +892,7 @@ creature  = Creature(Point(0, 'sys.setrecursionlimit(<depth>)'.
+
  • CPython interpreter limits recursion depth to 1000 by default. To increase it use 'sys.setrecursionlimit(<depth>)'.
  • Parametrized Decorator

    A decorator that accepts arguments and returns a normal decorator that accepts a function.

    from functools import wraps