python-distilled icon indicating copy to clipboard operation
python-distilled copied to clipboard

9.15.x typos

Open wildekat opened this issue 2 years ago • 0 comments

9.15.9 "Go a directory with a collection of files" Should read: Go to a directory

9.15.11 "copious amounts of information is available" are available ?

9.15.15 dead return statement:

elif pathname.is_dir():
    return sum(path.stat().st_size
	       for path in pathname.rglob('*')
	       if path.is_file())
    return pathname.stat().st_size

9.15.21

>>> import struct
>>> data = struct.pack('>HIff', 123, 456, 1.23, 4.56)
>>> data
b'\x00{\x00\x00\x00-?\x9dp\xa4@\x91\xeb\x85'

the actual value of data is

b'\x00{\x00\x00\x01\xc8?\x9dp\xa4@\x91\xeb\x85'

wildekat avatar Mar 06 '23 15:03 wildekat