| 6 Jun 2024 |
jade_ | having a bit of a moment:
print(type(notes))
print(repr(notes))
notes.rstrip('\n\t ')
assert not notes.endswith('\n')
| 19:08:08 |
jade_ | this assert throws | 19:08:10 |
jade_ | that's uh, absurd | 19:08:20 |
jade_ | omg | 19:08:28 |
raitobezarius | i don't think rstrip works with multiple characters | 19:08:29 |
K900 | Yeah | 19:08:34 |
jade_ | nah thats not the issue | 19:08:37 |
jade_ | strings are immutable | 19:08:41 |
K900 | Oh | 19:08:44 |
K900 | Yeah | 19:08:45 |
raitobezarius | also ture | 19:08:47 |
raitobezarius | * also true | 19:08:50 |
jade_ | but yes strip does work with multiple chars | 19:08:56 |
raitobezarius | ah? | 19:09:02 |
raitobezarius | damn i feel like i never made it work this way | 19:09:07 |
K900 | It works | 19:09:09 |
K900 | It just doesn't work the way you think it does | 19:09:14 |
jade_ |  Download image.png | 19:09:20 |
K900 | .rstrip("abc") works like .rstrip(["a", "b", "c"]) and it strips any of those characters | 19:09:35 |
K900 | That's one of the weird Python strings-are-just-iterables things | 19:10:20 |
K900 | Also btw I have way too much experience with cursed Python | 19:11:10 |
K900 | So if you need cursed Python help, hit me up | 19:11:15 |
jade_ | anyone wanna review a small pile of release engineering? :D https://gerrit.lix.systems/c/lix/+/1410 | 19:46:51 |
Qyriad | Once we figure out why buildbot is down >.< | 19:54:04 |
raitobezarius |
Jun 06 19:29:42 buildbot systemd[1]: postgresql.service: systemd-oomd killed 11 process(es) in this unit.
| 20:02:09 |
jade_ | oh boy | 20:02:16 |
jade_ | big ouchie | 20:02:24 |
raitobezarius | we have 32GB of RAM on the machine | 20:02:34 |
raitobezarius | I can bump it to 64GB of RAM | 20:02:37 |
jade_ | we should really make buildbot more killable and shove some guaranteed ram at postgres | 20:02:39 |