Am 05.03.23 um 15:35 schrieb aapost:
I have run in to this a few times and finally reproduced it. Whether it
is as expected I am not sure since it is slightly on the user, but I can
think of scenarios where this would be undesirable behavior.. This
occurs on 3.11.1 and 3.11.2 using debian 12
New submission from Frank B :
The docs say "Test whether the set is a proper subset of other" for both set <
other and set > other built-in functions.
Is that a misprint? How could it be both?
For the <= and >= operators it properly reverses the order so one says:
Test
Ok; this is a bit esoteric.
So finally is executed regardless of whether an exception occurs, so states the
docs.
But, I thought, if I return from my function first, that should take
precedence.
au contraire
Turns out that if you do this:
try:
failingthing()
except FailException:
return
Ok; thanks for the underscore and clarification. Just need to adjust my
thinking a bit.
--
https://mail.python.org/mailman/listinfo/python-list