As the documentation states [docs],
In user defined base classes, abstract methods should raise this exception when they require derived classes to override the method, or while the class is being developed to indicate that the real implementation still needs to be added.
Note that although the main stated use case this error is the indication of abstract methods that should be implemented on inherited classes, you can use it anyhow you’d like, like for indication of a TODO
marker.
Related Posts:
- Are static class variables possible in Python?
- What is a mixin, and why are they useful?
- What is the meaning of single and double underscore before an object name?
- How to sort a list of objects based on an attribute of the objects?
- How to implement a binary search tree in Python?
- Python function overloading
- Meaning of @classmethod and @staticmethod for beginner?
- Explaining Python’s ‘__enter__’ and ‘__exit__’
- What is a mixin, and why are they useful?
- “public” or “private” attribute in Python ? What is the best way?
- What does ‘super’ do in Python? – difference between super().__init__() and explicit superclass __init__()
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- Check if a given key already exists in a dictionary
- ValueError: setting an array element with a sequence
- ‘python’ is not recognized as an internal or external command [duplicate]
- Find the current directory and file’s directory [duplicate]
- Finding the index of an item in a list
- How do I get the row count of a Pandas DataFrame?
- python : comma in print as “\t”
- How can I randomly select an item from a list?
- Python Error: AttributeError: __enter__ [duplicate]
- How to plot a histogram using Matplotlib in Python with a list of data?
- Convert pandas dataframe to NumPy array
- Fastest way to check if a value exists in a list
- TypeError: can’t multiply sequence by non-int of type ‘str’
- Error:cannot convert float NaN to integer in pandas
- What does the % sign mean in coding?
- Replacing column values in a pandas DataFrame
- How can I count the occurrences of a list item?
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- matplotlib error – no module named tkinter
- AttributeError: module ‘urllib3’ has no attribute ‘urlopen’ in python
- How to download a file over HTTP?
- filedialog, tkinter and opening files
- How do I get the row count of a Pandas DataFrame?
- Python: Open file in zip without temporarily extracting it
- Installing tensorflow with anaconda in windows
- Plotting multiple different plots in one figure using Seaborn
- What does “unsqueeze” do in Pytorch?
- Delete an element from a dictionary
- Change figure size and figure format in matplotlib
- How can I concatenate str and int objects?
- Python Calling Function from Another File
- error: Unable to find vcvarsall.bat
- pg_config executable not found
- error: Failed to load the native TensorFlow runtime
- How do I check if a list is empty?
- List files ONLY in the current directory
- Exit codes in Python
- how can I translate efficiently a Java code to python?
- ImportError: No module named ‘encodings’
- how does \r (carriage return) work in Python
- Creating a Pandas DataFrame from a Numpy array: How do I specify the index column and column headers?
- Overflow Error in Python’s numpy.exp function
- Python can’t find module in the same folder
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- split python source code into multiple files?
- How can I read pdf in python?
- Error: nodename nor servname provided, or not known (python sockets)
- How can I splice a string?
- How to declare array of zeros in python (or an array of a certain size)
- How to convert string to byte array in Python
- gaierror: [Errno 8] nodename nor servname provided, or not known (with macOS Sierra)
- Converting int to bytes in Python 3
- Plot a horizontal line using matplotlib
- Gaussian fit for Python
- Python sockets error TypeError: a bytes-like object is required, not ‘str’ with send function
- Error NameError: name ‘np’ is not defined
- How to open a file for both reading and writing?
- Pipenv: Command Not Found
- Mapping over values in a python dictionary
- “WindowsError: [Error 2] The system cannot find the file specified” is not resolving
- ImportError: cannot import name np_utils
- Different meanings of brackets in Python
- typeerror ‘builtin_function_or_method’ object has no attribute ‘__getitem__’
- Python, Matplotlib, subplot: How to set the axis range?
- Creating files and directories via Python
- Python dictionary from an object’s fields
- Split a python list into other “sublists” i.e smaller lists
- Official abbreviation for: import scipy as sp/sc
- Colon (:) in Python list index [duplicate]
- Call Python function from JavaScript code
- Plot a histogram such that the total area of the histogram equals 1
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- How to change legend size with matplotlib.pyplot
- An equivalent function to matplotlib.mlab.bivariate_normal
- Ignore .pyc files in git repository
- MovieWriter ffmpeg unavailable; trying to use class ‘matplotlib.animation.PillowWriter’ instead
- How can I access global variable inside class in Python
- Sorting arrays in NumPy by column
- How to open html file?
- In Python, is there an elegant way to print a list in a custom format without explicit looping?
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Does tkinter have a table widget?
- Releasing memory in Python
- Text progress bar in terminal with block characters
- Extracting specific selected columns to new DataFrame as a copy
- How to read a CSV file from a URL with Python?
- How to print both strings in a dictionary in Python
- Python: OSError: [Errno 2] No such file or directory: ”