@ -54,7 +54,7 @@
< body >
< header >
< aside > March 8 , 2022< / aside >
< aside > March 12 , 2022< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / header >
@ -228,7 +228,7 @@ to_exclusive = <range>.stop
< iter> = repeat(< el> [, times]) < span class = "hljs-comment" > # Returns element endlessly or 'times' times.< / span >
< iter> = cycle(< collection> ) < span class = "hljs-comment" > # Repeats the sequence endlessly.< / span >
< / code > < / pre >
< pre > < code class = "python language-python hljs" > < iter> = chain(< coll_1> , < coll_2> [, ...]) < span class = "hljs-comment" > # Empties collections in order.< / span >
< pre > < code class = "python language-python hljs" > < iter> = chain(< coll_1> , < coll_2> [, ...]) < span class = "hljs-comment" > # Empties collections in order (figuratively) .< / span >
< iter> = chain.from_iterable(< collection> ) < span class = "hljs-comment" > # Empties collections inside a collection in order.< / span >
< / code > < / pre >
< pre > < code class = "python language-python hljs" > < iter> = islice(< coll> , to_exclusive) < span class = "hljs-comment" > # Only returns first 'to_exclusive' elements.< / span >
@ -583,7 +583,7 @@ to_exclusive = <range>.stop
< div > < h3 id = "arithmetics" > Arithmetics< / h3 > < pre > < code class = "python language-python apache hljs" > < D/DT> = < D/DT> ± < TD> < span class = "hljs-comment" > # Returned datetime can fall into missing hour.< / span >
< TD> = < D/DTn> - < D/DTn> < span class = "hljs-comment" > # Returns the difference, ignoring time jumps.< / span >
< TD> = < DTa> - < DTa> < span class = "hljs-comment" > # Ignores time jumps if they share tzinfo object.< / span >
< TD> = < TD> * < real> < span class = "hljs-comment" > # Also: < TD> = abs(< TD> ) and < TD> = < TD> ±% < TD> < / span >
< TD> = < TD> * < real> < span class = "hljs-comment" > # Also: < TD> = abs(< TD> ) and < TD> = < TD> ±% < TD> . < / span >
< float> = < TD> / < TD> < span class = "hljs-comment" > # How many weeks/years there are in TD. Also '//'.< / span >
< / code > < / pre > < / div >
@ -2885,7 +2885,7 @@ $ pyinstaller script.py --add-data '<path>:.' <span class="hljs-comment">
< footer >
< aside > March 8 , 2022< / aside >
< aside > March 12 , 2022< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / footer >