From 9a1938214251291c89fe865348b78a2b87dbadb7 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 22 Nov 2021 22:11:12 +1100 Subject: [PATCH] docs: Fix a few typos There are small typos in: - 10_clusters/primes/README.md - 11_less_ram/getsizeof/asizeof.py Fixes: - Should read `arguments` rather than `argments`. - Should read `stepping` rather than `steping`. - Should read `determines` rather than `deterimines`. - Should read `argument` rather than `argment`. --- 10_clusters/primes/README.md | 2 +- 11_less_ram/getsizeof/asizeof.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/10_clusters/primes/README.md b/10_clusters/primes/README.md index efa49c7..ec867a7 100644 --- a/10_clusters/primes/README.md +++ b/10_clusters/primes/README.md @@ -2,7 +2,7 @@ primes.py - basic code to show prime calculation primes_timed.py - show how long each call to test n takes, plots blue/red output primes_processes.py - control nbr processes and size of data blocks that are sent to control execution speed -primes2.py - show that checking for even nbrs helps, steping by 2 is a big improvement, only dereference the external library once, move the sqrt until after the early exit +primes2.py - show that checking for even nbrs helps, stepping by 2 is a big improvement, only dereference the external library once, move the sqrt until after the early exit primes_queue1.py - use a Process and a Queue to send work out primes_queue2.py - use a map_async (not a map) and a Queue to distribute work diff --git a/11_less_ram/getsizeof/asizeof.py b/11_less_ram/getsizeof/asizeof.py index 2864e17..e1a31e9 100644 --- a/11_less_ram/getsizeof/asizeof.py +++ b/11_less_ram/getsizeof/asizeof.py @@ -163,7 +163,7 @@ class objects to be treated like dict. C typedef of digit used in multi-precision int (or long) objects. The size of digit in bytes can be obtained in Python from the int (or long) __itemsize__ attribute. - Function leng (rather _len_int) below deterimines the + Function leng (rather _len_int) below determines the number of digits from the int (or long) value. [4] These definitions and other assumptions are rather arbitrary @@ -2134,7 +2134,7 @@ def adict(*classes): def asized(*objs, **opts): '''Return a tuple containing an Asized instance for each - object passed as positional argment using the following + object passed as positional argument using the following options. align=8 -- size alignment @@ -2171,7 +2171,7 @@ def asized(*objs, **opts): def asizeof(*objs, **opts): '''Return the combined size in bytes of all objects passed - as positional argments. + as positional arguments. The available options and defaults are the following. @@ -2244,7 +2244,7 @@ def asizeof(*objs, **opts): def asizesof(*objs, **opts): '''Return a tuple containing the size in bytes of all objects - passed as positional argments using the following options. + passed as positional arguments using the following options. align=8 -- size alignment all=False -- use GC objects and referents