classification
Title: classmethod change in 3.9 needs better documentation
Type: behavior Stage:
Components: Documentation Versions: Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, iritkatriel
Priority: normal Keywords:

Created on 2021-01-05 15:07 by iritkatriel, last changed 2021-01-05 15:07 by iritkatriel.

Messages (1)
msg384404 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-01-05 15:07
The change in issue 19072 broke our code where a decorator assumes that __get__ is only called for instance methods.

It might be worth adding this to What's new in 3.9.

Also in the documentation:
https://docs.python.org/3/library/functions.html#classmethod
It implies that before 3.9 it was not possible to wrap, but it was possible, it just behaved differently.
History
Date User Action Args
2021-01-05 15:07:33iritkatrielcreate