memesearch
Python Function Cannot Be Overridden

Python Function Cannot Be Overridden

Download Find similar pictures
Text on the meme
How to prevent a function from being overridden in python [duplicate] This question already has answers here: Making functions non-overridable Is there a way to make a class function unoverridable? something like java’s final keyword, i.e. any overriding class cannot override that method. python overriding final 4 Answers You could put a comment in there to the effect of: # We'll fire you if you override this method. It's surprising how well low-tech solutions like this work in practice.
What it means

A Stack Overflow screenshot shows a programmer asking how to make a Python class method impossible to override, similar to Java’s final keyword. The answer jokingly suggests adding a comment threatening to fire anyone who overrides it, poking fun at the surprising effectiveness of workplace pressure as a low-tech solution. EN: A Stack Overflow screenshot shows a programmer asking how to make a Python class method impossible to override, similar to Java’s final keyword. The answer jokingly suggests adding a comment threatening to fire anyone who overrides it, poking fun at the surprising effectiveness of workplace pressure as a low-tech solution.

Objects
Tags
Source
Template
Stack Overflow screenshot
Type
image
Size
800×530 · 51.6 KiB
Mood
sarcastic
Language
en
Added