Skip to content

Rename argument "none" to a better name since it is very easy to missread it as None #181

Answered by arizvisa
Harding-Stardust asked this question in Q&A
Discussion options

You must be logged in to vote

Yep. Anytime you give None as a function parameter, it will remove the thing as opposed to just setting it to empty. This is used in things like tags, colors, types, variable names, etc.

With tags, you can assign an empty string to them. With colors, assigning the value 0 makes it black, whereas None removes the color. Variable names when set to None make it use the default variable name.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arizvisa
Comment options

Answer selected by Harding-Stardust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #179 on December 06, 2023 22:35.