Stub Code
Stubs are exception to these code smell rules. These are placeholders for future code, such as functions or classes that have yet to be implemented.
Instead of using a pass statement such as:
| |
Which when run will do nothing, instead use raise NotImplementedError
statement.
| |
This will warn you whenever your program calls a stub function or method accident.
#Stub #Beyond the Basic Stuff With Python #Python #Al Sweigart