logoalt Hacker News

commandersakitoday at 2:14 PM1 replyview on HN

Yeah, so what happens when you have an option with a '-' in it that isn't valid as a variable name (I know what happens). It's just stupid.


Replies

coldteatoday at 4:00 PM

The same thing you'd do yoursef if you wanted to assign it to a namesake local variable even if it was in a dict to begin with: you'd make the dash an underscore.

show 1 reply