-
lovetox
mesonium: or does not create a boolean, look up how the or operator works in python
-
mesonium
yes, I should have checked the possible return values of cpu_count...
-
lovetox
But the return value is not relevant to how the or operator works
-
lovetox
It says, if bool(left) is False, return right, else left
-
mesonium
https://realpython.com/python-or-operator/#non-boolean-contexts > The rule of thumb is still that the result of your Boolean expressions is the first true operand or the last in the line. None evaluates to False, so None or 4 becomes 4?
-
lovetox
Correct
-
lovetox
But also 0
-
lovetox
Or empty String is also False, many values convert to false
-
mesonium
Alright, makes sense. Thanks. You always learn something new ;)
-
lovetox
Yeah took me multiple years to look that up
-
mesonium
:D
-
lovetox
That's why I asked now, and it's of course different in other langs
-
procrastinator
hello, i'm experiencing a crash on gajim while pasting urls and sending
-
procrastinator
it happens immediately when i press enter, so i assume some preview thing is the culprit
-
procrastinator
it only happens with things that are previewable, right now it was a mp4 url
-
procrastinator
let me see if i'm on the latest branch
-
procrastinator
updated to git master
-
mesonium
something is wrong: when I've started Gajim, procrastinator's messages were correctly fetched as they have ended up in the DB and their last message is shown as a stub in the chat list, but the messages themselves are not shown in this muc right now.
-
mesonium
okay upon re-opening the chat, the messages are there
-
mesonium
> hello, i'm experiencing a crash on gajim while pasting urls and sending procrastinator, that means you got a stacktrace? ↺
-
procrastinator
no, i start gajim fromt the wm so i don't have it
-
procrastinator
i should redirect it's stderr/stdout to a file...
-
mesonium
how do you know it crashed? There's no crash report dialog? can you run Gajim with `-v` in a terminal?
-
procrastinator
ok
-
procrastinator
mesonium: when i hit enter (not always reproducable) after pasting a link, the process just disappears
-
procrastinator
so i assume that's a crash
-
procrastinator
restartting gajim
-
bot
lovetox pushed 1 commits to branch gajim/master feat: Generate previews with multiple processes - https://dev.gajim.org/gajim/gajim/-/commit/e4c0a70b1bc61048b31bfa11fff12eb7abac9e95
-
bot
wurstsalat pushed 1 commits to branch gajim/master cfix: Preview: Don't hide controls if original is not downloaded yet - https://dev.gajim.org/gajim/gajim/-/commit/c839268b5ba2360be8d36fd16090d9ea96dae104
-
bot
wurstsalat pushed 1 commits to branch gajim/master cfix: Preview: Fix signature and error logging; add assertions - https://dev.gajim.org/gajim/gajim/-/commit/9e9e94b8d0793271680f273678a02a6d9370a7f2
-
bot
lovetox pushed 1 commits to branch gajim/master cq: Preview: Fix type errors - https://dev.gajim.org/gajim/gajim/-/commit/c3a68259319e2c74978b97bd244958087e5dcd5b
-
bot
lovetox pushed 2 commits to branch gajim/master change: Remove legacy config code and migration - https://dev.gajim.org/gajim/gajim/-/commit/16d5daed649f48ee8e3c91652d97fc8fafa89f09 refactor: Remove file transfer proxy module - https://dev.gajim.org/gajim/gajim/-/commit/c67b4a3bbb62ee2e0aa16ec5d7abba08aff2d3d8