C. · @cazabon
142 followers · 2876 posts · Server mindly.social

@foo

It's a little 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 , and then (not extend) that list to itself. Since `a` and `a[0]` are the same , the `in` test will return True either way.

#clearer #list #append #object

Last updated 1 year ago

Stitch · @asterism
44 followers · 1229 posts · Server ni.hil.ist
James Edward · @jamesedward
3 followers · 45 posts · Server tilde.zone

@libreoffice It would be cool if you could design a strictly -only file format for documents, so that a consists of a sequence of that can be independently /#notarised. PDFs sort of work this way. At the moment, docs tend to get completely rewritten with every edit, meaning you lose 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

Last updated 2 years ago

GenghisKen Coar · @GenghisKen
16 followers · 62 posts · Server ruby.social

And another to the :

More thing(s) about which I want/need to learn more:

#append #introduction #openwrt

Last updated 2 years ago