What is a class in Python?
I've been learning a bit more Python, going through a Udemy course to expand my skills a little. One of the programs the course guides you to make is a little dictionary, but it currently only...
I've been learning a bit more Python, going through a Udemy course to expand my skills a little. One of the programs the course guides you to make is a little dictionary, but it currently only runs once and then quits.
I'd like to adapt it to use a nice TUI that keeps itself open until the user specifies they want to quit, using something along the lines of npyscreen. However, this library uses classes, and that's not something I'm yet familiar with. I'd rather have an understanding of what classes are, how they work, and why to use them before I take the plunge and start fiddling around with npyscreen (although I'd be interested to hear if you think that I should Just Do It instead).
Can anyone give or point me towards a good explanation of the what, how, and why of Python classes? Or better yet, a tutorial that will give me something to write and play with to figure out how it all fits together?
Thanks!
I'm angry at the moment. Angry because despite my workplace making a big noise about how they care about our wellbeing, and will do whatever they can to ensure the health of their staff, they don't give one solitary fuck about me.
I've been in discussions with HR and my manager to try to move onto fixed hours rather than a rotating shift pattern, because I feel like the inconsistency in hours is playing havoc with my mental state. Not being able to have any consistency in routine because by the time I've settled into a sleep schedule for the week, it's the weekend and I'm onto a different pattern for the week after. I was told yesterday that it's not possible to put me onto fixed hours because it's unfair to the rest of the team, and besides, shift patterns are commonplace at IT service desks across the world. As if that somehow makes it OK.
To cap it all, we're expected to be on a video call all day every day, for the sake of "team cohesion" and "learning and development," where really it's just an exercise in not trusting us to actually be there and working. It's stressing me the fuck out. I'm not allowed to turn the volume down because my team leader gets shitty if I don't respond to a question within 10 seconds, so I have to listen to their inane conversations and the whining of at least two laptop fans. It's not like being in the office where you can just about tune it out into background noise. It's blaring out of my laptop for 8 hours straight. It's got me properly on edge. I can't get out of it, and if I'm more than a minute late in joining at the start of my day or after lunch, I get a snide message from my team leader about it. I refuse to put my camera on, so I get sarcastic comments about that at least twice a week. It's such a bullshit idea, and they've dropped all pretence about it being for anything other than "to see what we're doing."
Fortunately I've spoken to my GP, and been given a sick note for 2 weeks to try to destress and take some time to recentre myself. I'm really hoping that helps. I'm planning to leave my job and go back to uni this year, but September seems like an awfully long way away right now.