[Python-Dev] PEP 544: Protocols (original) (raw)
Ivan Levkivskyi levkivskyi at gmail.com
Mon Mar 20 20:28:45 EDT 2017
- Previous message (by thread): [Python-Dev] PEP 544: Protocols
- Next message (by thread): [Python-Dev] __del__ is not called after creating a new reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 21 March 2017 at 00:23, Barry Warsaw <barry at python.org> wrote:
On Mar 20, 2017, at 01:00 PM, Ivan Levkivskyi wrote:
[SNIP] IIUC, the Python 3 way to spell this is with a decorator.
Thanks, I will update this.
[SNIP] (also, since this is Python 3, do you really need to inherit from object?)
Indeed.
-- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170321/70dfeec3/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 544: Protocols
- Next message (by thread): [Python-Dev] __del__ is not called after creating a new reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]