Skip to content
Advertisement

Tag: sealed

Python’s equivalent of .Net’s sealed class

Does python have anything similar to a sealed class? I believe it’s also known as final class, in java. In other words, in python, can we mark a class so it can never be inherited or expanded upon? Did python ever considered having such a feature? Why? Disclaimers Actually trying to understand why sealed classes even exist. Answer here (and

Advertisement