• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: July 13th, 2023

help-circle




  • It should also be noted that if the vast majority of people do nothing special on their taxes and just accept the government’s assessment, then that leaves a much smaller group of people to be audited. And a much larger portion of those people will be those who are trying to weasel their way out of paying their share. Right now, with the IRS being criminally underfunded, they only focus on low hanging fruit, the small fries. With those people being boiler plater auto-accepting tax payers, that would mean the IRS has no reason to audit them and can focus on the big boys where the real cheats are. That’s another big reason we do not have that sort of system and why the IRS is currently so underfunded (despite every dollar spent on the IRS generating between 5 and 9 dollars in revenue from tax fraud/evasion). Those kinds of people pay to make sure it doesn’t happen.




  • I saw you already solved your own issue. Just want to make sure you understand what the actual issue was and why.

    In order to use a class/function, such as Light(), the interpreter running your script needs to know what that class/function does. To do that, either you need to have defined it in your code (like you did with your main function) or you need to have imported it from from a another source like lifxlan where it is defined. In your original script, you imported the class LifxLAN, though as you discovered, you forgot to import the class Light as well. I’m assuming those are classes, btw, from both context and the fact that they follow the python naming convention (functions and variables are all_lower_case, Classes are CapitalizedWords, and CONSTANTS are ALL_CAPS)

    Additionally, instead of importing each class, you could have also imported the entirety of the lifxlan library by changing your import statement to import lifxlan. I’m not recommending you do that. It’s not best practice to import more than you need and it can cause issues if what you’re importing is not just a library but also executes code. But, if you did import the whole library, that would have imported all of the classes and functions in lifxlan including both LifexLAN and Light. You could then create objects of those classes or call those functions by prefixing the library name to their name. For example, lifxlan.Light().