• Skip to primary navigation
  • Skip to content
  • Skip to footer
myers.io
      Dale Myers

      Dale Myers

      Software Engineer at Microsoft, currently working on Outlook for iOS

      • Edinburgh, UK
      • Email
      • Keybase
      • Twitter
      • GitHub
      • LinkedIn

      Type validation in Python using decorators

      less than 1 minute read

      So in Python you generally do test driven development to make sure that you don’t get weird type errors. Sometimes, however, it’s good to be alerted immediately, so I’ve made a small decorator which can check for types of arguments as follows:

      Tags: decorators, python, types

      Updated: October 25, 2013

      Twitter Facebook LinkedIn
      Previous Next

      You May Also Enjoy

      Debugging Python HTTP(S) Requests

      5 minute read

      Debugging Python HTTP Requests

      The tools that power Outlook

      14 minute read

      I’ve been responsible for the developer tooling for Outlook iOS for 6 years now. Back when I started, we had just a single Bash script that covered everythin...

      Debugging Timer Triggers in Azure Functions

      less than 1 minute read

      It’s relatively easy to figure out that VS Code is a great editor for developing and debugging Azure Functions. You’ll have also no doubt figured out that fo...

      What is the Purpose of a Lock File for Package Managers?

      3 minute read

      Whatever language and package manager you use, be it Ruby Gems, CocoaPods, NPM, Cargo, etc. there’s a good chance that if you have a file specifying your dep...

      • Terms & Conditions
      • Feed
      © 2024 Dale Myers. Powered by Jekyll & Minimal Mistakes.