New submission from Mariano Anaya:
The example on which tries to create a method from the function's __get__
doesn't work for Python 3.5+. It would give this error:
TypeError: method expected 2 arguments, got 3
The 3rd parameter, needs to be removed.
--
assignee: docs@python
components: Documentation
messages: 294871
nosy: Mariano Anaya, docs@python
priority: normal
pull_requests: 1967
severity: normal
status: open
title: Descriptors HowTo: Example on function.__get__ needs update
versions: Python 3.5, Python 3.6, Python 3.7
___
Python tracker
<http://bugs.python.org/issue30530>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com