python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Remove/alter object reference in dictionary created with vars() or __dict__
I am working on a way to serialize complex objects into JSON. This includes objects that have other objects as attributes. I have run into a problem with my current approach that has piqued my interes...
Space Squid
Votes: 0
Answers: 0
Is there any workaround to call a superclass method in a subclass method with a different name?
I have a superclass defines several methods, and in the derived subclass class, (a) I want to keep these methods since they are still very useful, but I want to give them another name since (b) for th...

george andrew
Votes: 0
Answers: 1
How to make an object take and store an Array of arbitrary, but compile-time known size?
Background
For an embedded project, I want a class that takes a list of structs. This list is known at compile-time, so I shouldn't have to resort to dynamic memory allocation for this.
However, how d...
Compizfox
Votes: 0
Answers: 2
Python3.9. I am trying to write an exception but get this error:TypeError: catching classes that do not inherit from BaseException is not allowed
What should I do to print something and continue running after catching the exception? How to do the best practice on that?
I am writing unit tests but first of all tried to test wrong query to DB Pos...
Robert
Votes: 0
Answers: 1