New answers tagged

1

I think this is a strange use of the path library: "/" + path.join('sys', 'class', 'leds', 'system76_acpi::kbd_backlight') + '/' It would be clearer as a single string, given that we don't need portability to non-Linux hosts: '/sys/class/leds/system76_acpi::kbd_backlight/'


2

Namespaces... ... are not for creating taxonomies. They are there to avoid name collisions. Also the chosen module alias for argparse seems strange. It's name is derived from argument parser so, if any, the obvious abbreviation should be ap. However, it might be better to just import the needed names, instead of creating taxonomies, since there are no name ...


Top 50 recent answers are included