Re-tagged blog posts

This commit is contained in:
Brandon Rozek 2022-01-02 14:24:29 -05:00
parent 209995c77b
commit 2a9c127365
186 changed files with 186 additions and 146 deletions

View file

@ -2,7 +2,7 @@
title: "NotImplemented"
date: 2019-10-27T23:35:17-04:00
draft: false
tags: [ "python" ]
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.