I cut my teeth on 2.2-2.4 and remember getting my hand slapped when 2.4 landed and I used a decorator for the first time.
It was to allow only certain HTTP verbs on a controller function. A pattern adopted by most Python web frameworks today.
It was to allow only certain HTTP verbs on a controller function. A pattern adopted by most Python web frameworks today.
happy python programmer since 1.5, currently maintaining a code base in 3.7, happy about 3.8.