/srv/irclogs.ubuntu.com/2020/05/21/#smooth-operator.txt

Chipacagood morning all!08:09
jamChipaca, morning chipaca, how goes ?08:13
jambtw, I was quite impressed how much text you churned out08:13
Chipacajam: goes well! brain isn't booted yet but getting there08:16
jamChipaca, I have my coffee machine back, want the first cup ?08:16
Chipacajam: i got my coffee delivered! there's still last week's delivery missing but i'm back in stock at least08:17
Chipacajam: woke up in the night when it clicked that we could use charmcraft.yaml to have an 'install' section for the non-python reqs08:17
Chipaca*hand waving intensifies*08:17
jamno unicode jazz hands08:18
Chipaca๐Ÿ‘ no?08:18
jam"open hands" isn't quite jazz hands to me but good enough ๐Ÿ‘08:19
jamjazz hands aren't next to each other08:19
Chipaca"๐Ÿค—" is supposed to be "hugging face"08:19
Chipacabut "hugging face" is that face-hugger alien parasite thing08:19
Chipacaso no thanks08:19
jam"hugging face" isn't that choking someone?08:26
jamI know I don't usually hug with narrow hands08:26
* jam lunches08:59
* Chipaca is having way too much fun09:20
facubatistaMuy buenos dรญas a todos!10:48
Chipacafacubatista: ๐Ÿ‘‹ :-)10:58
Chipacawe're lying liars: we're not logging events when dispatch is in use :-( i'll file a bug11:44
facubatistaChipaca, Natalia is gmt+3, Moscow11:50
Chipacanatalia is also gmt-3, uruguay11:50
facubatista:)11:50
Chipacaa conspiracy of natalias11:50
facubatistamirrors!11:50
facubatistaspeaking of that, I'm no longer the one and only Facundo11:51
facubatista#eselacabose11:51
Chipacafacubatista: whaaaa11:53
Chipacafacubatista: sacrilege!11:54
facubatistaindeed11:54
Chipacafacubatista: and their irc nick is cooler than yours11:55
Chipacafacubatista: oh the shame11:55
facubatista:)11:55
* Chipaca goes to make lunch11:56
Chipacagrah16:33
Chipacaneed to take a break before testing the last bit :) and then some failing integration ones and then i'm done16:33
* Chipaca steps away for a while16:56
=== facundo__ is now known as facubatista
facubatistaChipaca, something I hate about pathlib.Path is that if you print its str(), it may be misleading (spaces in the middle, etc), but if you print its repr(), the whole "pathlib.Path" is shown... I end up doing "path: {!r}".format(str(path))17:47
* facubatista bb~1h18:25
Chipacafacubatista: I didn't understand why spaces in the middle would be misleading, but that's ok, you can be wrong :-p18:54
* facubatista is back19:34
facubatistaChipaca,19:35
facubatista>>> p1 = pathlib.Path("foo bar")19:35
facubatista>>> p2 = pathlib.Path("baz")19:35
facubatista>>> print(p1, p2)19:35
facubatistafoo bar baz19:35
facubatistaugly: >>> print("{!r} {!r}".format(p1, p2))19:36
facubatistaPosixPath('foo bar') PosixPath('baz')19:36
facubatistawhat I end up doing: >>> print("{!r} {!r}".format(str(p1), str(p2)))19:36
facubatista'foo bar' 'baz'19:36
Chipacafacubatista: y tho19:48
Chipacain what context is 'print(p1, p2)' something you'd actually want to do?19:48
facubatistaChipaca, it was an example19:49
Chipacaok19:49
facubatista            raise CommandError("the charm entry point was not found: {!r}".format(str(arg)))19:49
facubatistaChipaca, ^19:50
facubatistaChipaca, think for example if you called it like --entrypoint="mycharm.py "19:50
facubatistaof course the last space is a type19:51
facubatista*typo19:51
facubatista>>> print("the charm entry point was not found: {}".format(arg))19:52
facubatistathe charm entry point was not found: mycharm.py19:52
facubatista>>> print("the charm entry point was not found: {!r}".format(str(arg)))19:52
facubatistathe charm entry point was not found: 'mycharm.py '19:52
Chipacafacubatista: hmm. repr in this context is something that is almost but not always what you want for strings even19:52
facubatistaof course, I won't be using print, but logging it, but it's the same19:52
facubatistaChipaca, why I don't like it?19:53
facubatistas/like/want/19:53
Chipacafacubatista: consider what happens if you specify a filename that's not ascii, and you need it to be ascii19:55
Chipacafacubatista: repr won't help highlight the problem19:55
facubatistaChipaca, what do you mean "need it to be ascii"?19:55
Chipacae.g. "the filename must be a-z0-9: {!r}".format("ั€ะตะฐัะต")19:56
Chipacafacubatista: that won't say what the problem is in any way, for most users19:57
Chipacasome might though19:57
facubatistaChipaca, getting the pathlib.Path() in the middle won't improve that either19:59
facubatistaChipaca, you say to just use str() because there are corner cases that repr() won't be enought?19:59
facubatista*enough19:59
* facubatista is too tired to write properly 19:59
Chipacafacubatista: no, I'm saying that relying on repr() is sloppy :)20:00
Chipacafacubatista: the fact that it mostly, but not always, works for strings has made you think it's ok to do but it isn't really20:00
Chipacafacubatista: i'm not sure i'm making sense either20:00
Chipacait's been a long week and there's a whole 'nother day of it to go still20:01
facubatistaChipaca, I'd love to find a repr_posta_posta() :)20:03
facubatistaI don't want to start marking differently every non-ascii char, it would mess up the error message for people using mostly non-ascii stuff20:04
MarkMaglanawhoa i caught you guys still awake!20:11
MarkMaglana...right?20:12
MarkMaglanano?20:12
ChipacaMarkMaglana: "awake"20:25
MarkMaglanakina awake then?20:25
ChipacaMarkMaglana: fractionally awake20:28
ChipacaMarkMaglana: not actually working20:28
Chipacaat least, me20:28
Chipacafacu might be at it still20:28
MarkMaglanai just woke up at 4AM my time to check on my tomb raider download. so i won't be working either for an hour or two.20:28
facubatistaMarkMaglana, which tomb raider?20:38
MarkMaglanadon't laugh20:38
MarkMaglanathe first one of the reboot.20:39
facubatistaMarkMaglana, you're talking about the videogame or the movie?20:40
MarkMaglanathe videogame lol20:40
facubatistaah, jajaja20:40
* facubatista never played tomb raider20:41
facubatistaactually, I remember installed and tried one, like 300 or 400 years ago, and my HW was too slow for it, and I dropped it, never tried again20:42
MarkMaglanafacubatista i've been wanting to play this since it came out but with family duties it was impossible. also, i was too cheap to buy a powerful enough machine to handle the graphics until this year. so with all this lockdown and all i figured it'd be a good time lol.20:43
facubatista:D20:43
facubatistaMarkMaglana, enjoy it!20:43
MarkMaglanafacubatista: thanks!20:43
Chipacafacubatista: you should be able to play the original one on qemu on a raspberry pi20:46
Chipaca:)20:46
Chipacaanyway, i'm out20:47
Chipaca๐Ÿ‘‹20:47
MarkMaglana\o alrighty folks, i'll take it from here lol20:49
* facubatista eods21:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!