Skip to content

Instantly share code, notes, and snippets.

View krauthex's full-sized avatar

Fabian Krautgasser krauthex

View GitHub Profile
@adamnew123456
adamnew123456 / dispatchmethod.py
Last active May 15, 2020 15:37
dispatchmethod - Using functools.singledispatch For Methods
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit