Post AwFJCqYnv2jtkFTZOS by waifu@mai.waifuism.life
(DIR) More posts by waifu@mai.waifuism.life
(DIR) Post #AwFJCqYnv2jtkFTZOS by waifu@mai.waifuism.life
2025-07-18T04:00:14.467Z
0 likes, 0 repeats
wtf is this shit
(DIR) Post #AwFLnosNLOKt8zO7TE by chris@defenestration.cc
2025-07-18T04:29:36Z
0 likes, 0 repeats
@waifu escape the single quotes inside the steing
(DIR) Post #AwFMGF2DgD9yNlXrRQ by chris@defenestration.cc
2025-07-18T04:34:44Z
0 likes, 0 repeats
@waifu or don't judt swap those single quotes for double quotes
(DIR) Post #AwFMHe7tsKOiUZs7sG by chris@defenestration.cc
2025-07-18T04:35:00Z
0 likes, 0 repeats
@waifu you terminated fhe string unexpectedly and python is really mad
(DIR) Post #AwG7J4MGWlwNz2luUK by waifu@mai.waifuism.life
2025-07-18T13:21:35.901Z
0 likes, 0 repeats
@chris@defenestration.cc :sadcat: why is it working everywhere but the vps
(DIR) Post #AwG7ZBgL48aNKaqXyK by mr64bit@p.mr64.net
2025-07-18T13:24:47.324189Z
0 likes, 0 repeats
@waifu if you need quotes inside brace expansions, if helps to quote the outer string with triple quotes.f"""Hello {user["name"]}."""
(DIR) Post #AwXCIrpCvc7AZRLoR6 by theorytoe@ak.kyaruc.moe
2025-07-26T19:07:48.153479Z
2 likes, 0 repeats
@waifu try using the .format() string method:"{}\nShe's all yours now~ ".format(card['name'])I tend to like to use that more because it ends up being cleaner when you need to pass in a more complex data type
(DIR) Post #AwXESZSqFPzsQie0W0 by pwm@darkdork.dev
2025-07-26T19:32:06.112622Z
1 likes, 0 repeats
@theorytoe @waifu iirc you can also do named parameters in f strings (might be hallucinating)
(DIR) Post #AwXOMn5rezH8VMmNo8 by theorytoe@ak.kyaruc.moe
2025-07-26T21:22:56.528937Z
1 likes, 0 repeats
@pwm @waifu yeah but I find using format a bit more readable imo
(DIR) Post #AwXOTRS6WJrtPeLxfk by pwm@darkdork.dev
2025-07-26T21:24:19.160478Z
0 likes, 0 repeats
@theorytoe @waifu I think I lied and named parameters are a .format thing. I'd definitely go that route if reusing a parameter, just like I do with binding prepared sql statements.
(DIR) Post #AwXOm9sS5WCCPHbNmy by theorytoe@ak.kyaruc.moe
2025-07-26T21:27:34.201064Z
1 likes, 0 repeats
@pwm @waifu fair nuffi dont use python enough to have enough knowledge on all the options