Re:Why does `True == False is False` evaluate to False in Py...
by throwaway_pdp09 on Tuesday May 05, 2020 @10:44AM
(#23080533)
Interesting idea. I can see that end(1) would work though it's bringing in a lot of machinery just for a little thing (though if we looked harder that might generalise to other situations enough to make it viable).
Alternatively you could do the same with a method I think, something like
y.end[1]
although y.fromEnd[...] might be more mnemonic. I don't see that y[len - 1] could work in this scheme, but whatever.
Alternatively you could do the same with a method I think, something like
although y.fromEnd[...] might be more mnemonic. I don't see that y[len - 1] could work in this scheme, but whatever.I like yer thinking!