!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

456 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.151 Servers

Load older messages


SenderMessageTime
6 Jun 2024
@jade_:matrix.orgjade_

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_:matrix.orgjade_this assert throws19:08:10
@jade_:matrix.orgjade_that's uh, absurd19:08:20
@jade_:matrix.orgjade_omg19:08:28
@raitobezarius:matrix.orgraitobezariusi don't think rstrip works with multiple characters19:08:29
@k900:0upti.meK900Yeah19:08:34
@jade_:matrix.orgjade_nah thats not the issue19:08:37
@jade_:matrix.orgjade_strings are immutable19:08:41
@k900:0upti.meK900Oh19:08:44
@k900:0upti.meK900Yeah19:08:45
@raitobezarius:matrix.orgraitobezariusalso ture19:08:47
@raitobezarius:matrix.orgraitobezarius * also true19:08:50
@jade_:matrix.orgjade_but yes strip does work with multiple chars19:08:56
@raitobezarius:matrix.orgraitobezariusah?19:09:02
@raitobezarius:matrix.orgraitobezariusdamn i feel like i never made it work this way19:09:07
@k900:0upti.meK900It works19:09:09
@k900:0upti.meK900It just doesn't work the way you think it does19:09:14
@jade_:matrix.orgjade_image.png
Download image.png
19:09:20
@k900:0upti.meK900 .rstrip("abc") works like .rstrip(["a", "b", "c"]) and it strips any of those characters 19:09:35
@k900:0upti.meK900That's one of the weird Python strings-are-just-iterables things19:10:20
@k900:0upti.meK900Also btw I have way too much experience with cursed Python19:11:10
@k900:0upti.meK900So if you need cursed Python help, hit me up19:11:15
@jade_:matrix.orgjade_anyone wanna review a small pile of release engineering? :D https://gerrit.lix.systems/c/lix/+/141019:46:51
@qyriad:katesiria.orgQyriadOnce we figure out why buildbot is down >.<19:54:04
@raitobezarius:matrix.orgraitobezarius

Jun 06 19:29:42 buildbot systemd[1]: postgresql.service: systemd-oomd killed 11 process(es) in this unit.

20:02:09
@jade_:matrix.orgjade_oh boy20:02:16
@jade_:matrix.orgjade_big ouchie20:02:24
@raitobezarius:matrix.orgraitobezariuswe have 32GB of RAM on the machine20:02:34
@raitobezarius:matrix.orgraitobezariusI can bump it to 64GB of RAM20:02:37
@jade_:matrix.orgjade_we should really make buildbot more killable and shove some guaranteed ram at postgres20:02:39

Show newer messages


Back to Room ListRoom Version: 10