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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30530>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to