Skip to main content
8 events
when toggle format what by license comment
Jun 24, 2020 at 22:36 comment added ljrk @Peilonrayz Ah, I guessed something like that but was too tired and don't have enough python skill to dig deeper :) I'll update my answer then!
Jun 24, 2020 at 20:01 comment added Peilonrayz @larkey Yeah I noticed that after posting but during changing to string.Formatter. I thought I'd added it here, but I didn't. The fix is quite simple really (sel_i == (i - 1)) because I got the precedence wrong.
Jun 24, 2020 at 19:58 comment added ljrk At least on my machine this fails to highlight the correct 'machine' (see asciinema.org/a/jOrs6moLiwB2Vf2QI6pFaPLWh?t=7). I found the faulty code and reverted it in my answer below.
Jun 23, 2020 at 23:49 history edited Peilonrayz CC BY-SA 4.0
Improve answer.
Jun 23, 2020 at 18:18 comment added Peilonrayz @Reinderien Indeed. I am trying to to start to mark 'problematic' suggestions. I'm hoping that acknowledging that it's a source for confrontation will help reduce the amount of confrontation I get when a user disregards the advice :)
Jun 23, 2020 at 18:14 comment added Reinderien Potential religious war - Based on the (infamous?) relegation of reduce to functools and the reasoning for that change, I think you, most of the Python community and I are on the right side of history when it comes to discouraging map.
Jun 23, 2020 at 17:33 history edited Peilonrayz CC BY-SA 4.0
Made a mistake
Jun 23, 2020 at 17:20 history answered Peilonrayz CC BY-SA 4.0