It's a little #clearer what's going on here if you put it this way:
>>> b = []
>>> b.append(b)
>>> b
[[...]]
>>> b is b[0]
True
So all you've done is create a #list, and then #append (not extend) that list to itself. Since `a` and `a[0]` are the same #object, the `in` test will return True either way.
#clearer #list #append #object
@libreoffice It would be cool if you could design a strictly #append-only file format for documents, so that a #document consists of a sequence of #blocks that can be independently #hashed/#notarised. PDFs sort of work this way. At the moment, docs tend to get completely rewritten with every edit, meaning you lose #traceability to previous versions. You could achieve the same outcome by just appending the previous doc as an attachment to the current one, but that would get extremely inefficient as the number of edits increases.
#append #document #blocks #hashed #traceability
And another #append to the #introduction:
More thing(s) about which I want/need to learn more:
#append #introduction #openwrt