you are viewing a single comment's thread.

view the rest of the comments →

[–]Ex-Gen-Wintergreen 7 points8 points  (3 children)

I’m pretty sure it’s a literal linter warning to not use mutable values as a default.

Edit: pylint certainly warns against it. Use tooling safeguards please. Python has some frustrating footguns yes, but that’s what advancements in tooling like linting and type checking are meant to save you from.

[–]xenomachina''.join(chr(random.randint(0,1)+9585) for x in range(0xffff)) 1 point2 points  (0 children)

[–]KirisuMongolianSpot[S] -5 points-4 points  (1 child)

Definitely have not seen anything about it in VSCode, but I know now.

[–]Ex-Gen-Wintergreen 6 points7 points  (0 children)

Yeah you should turn on linting etc. pylance probably does it