Added tags

This commit is contained in:
Brandon Rozek 2020-02-16 17:46:18 -05:00
parent bca1f711a5
commit aa4280542b
50 changed files with 67 additions and 48 deletions

View file

@ -2,6 +2,7 @@
title: "NotImplemented"
date: 2019-10-27T23:35:17-04:00
draft: false
tags: [ "python" ]
---
Let's say you overwrite the `__mul__` operator in a class in Python, but you don't want the function to be called for all kinds of input. You can specify the type by just returning `NotImplemented` for types you don't want.