From 271fe2a0f8ee24a64855d459ebe0f9852a378f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 12 Mar 2022 11:59:40 +0100 Subject: [PATCH] Iterator, Datetime --- README.md | 4 ++-- index.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0fea7d3..3539f53 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ from itertools import count, repeat, cycle, chain, islice ``` ```python - = chain(, [, ...]) # Empties collections in order. + = chain(, [, ...]) # Empties collections in order (figuratively). = chain.from_iterable() # Empties collections inside a collection in order. ``` @@ -657,7 +657,7 @@ from dateutil.tz import UTC, tzlocal, gettz, datetime_exists, resolve_imaginary = ± # Returned datetime can fall into missing hour. = - # Returns the difference, ignoring time jumps. = - # Ignores time jumps if they share tzinfo object. - = * # Also: = abs() and = ±% + = * # Also: = abs() and = ±% . = / # How many weeks/years there are in TD. Also '//'. ``` diff --git a/index.html b/index.html index 8442484..1a7795f 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -228,7 +228,7 @@ to_exclusive = <range>.stop <iter> = repeat(<el> [, times]) # Returns element endlessly or 'times' times. <iter> = cycle(<collection>) # Repeats the sequence endlessly. -
<iter> = chain(<coll_1>, <coll_2> [, ...])  # Empties collections in order.
+
<iter> = chain(<coll_1>, <coll_2> [, ...])  # Empties collections in order (figuratively).
 <iter> = chain.from_iterable(<collection>)  # Empties collections inside a collection in order.
 
<iter> = islice(<coll>, to_exclusive)       # Only returns first 'to_exclusive' elements.
@@ -583,7 +583,7 @@ to_exclusive   = <range>.stop
 

Arithmetics

<D/DT>   = <D/DT>  ± <TD>                   # Returned datetime can fall into missing hour.
 <TD>     = <D/DTn> - <D/DTn>                # Returns the difference, ignoring time jumps.
 <TD>     = <DTa>   - <DTa>                  # Ignores time jumps if they share tzinfo object.
-<TD>     = <TD>    * <real>                 # Also: <TD> = abs(<TD>) and <TD> = <TD> ±% <TD>
+<TD>     = <TD>    * <real>                 # Also: <TD> = abs(<TD>) and <TD> = <TD> ±% <TD>.
 <float>  = <TD>    / <TD>                   # How many weeks/years there are in TD. Also '//'.
 
@@ -2885,7 +2885,7 @@ $ pyinstaller script.py --add-data '<path>:.'