Mike Frysinger

Results 280 comments of Mike Frysinger

i don't think the code is obfuscated so much as it was written decades ago when coding standards were significantly different. advice on the original implementation is pretty much lost...

it means v6.0.0 is broken on apache-2.4 as the error log shows. the broken change doesn't exist in the 5.x series, it was merged into the 6.x series. so it's...

on the other hand, you can't break more what is already broken

commit 157944b77422b3af61f7c3ff9557387940275cd9 fixed it for me with 2.4.54

this has come up in Google with people trying to slice off the last element: ``` config="${@: -1}" ``` technically the lint warning is incorrect here, although from a style...

when it comes to variable assignment, the distinction doesn't matter. but when it comes to arguments, it does, although shellcheck doesn't flag this. ``` #!/bin/bash set -- [ "${@:2:1}" =...

maybe something like: ```python def visit_expr(self, node): if not isinstance(node.value, astroid.Call): return func = node.value.func try: cls = next(func.infer()) except astroid.InferenceError: return if not isinstance(cls, astroid.ClassDef): return if any(x for...

while i agree that it's a bit of an anti-pattern, i've seen it more than once e.g. instantiating a "run" or "main" object just to call the main method on...

to put into concrete terms, if we started down the path of providing pixel converters, how many would we want to support? i don't know if there's a list somewhere...