This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients m.c.massok, ned.deily, ronaldoussoren
Date 2021-10-19.21:32:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634679123.41.0.0697213576192.issue45529@roundup.psfhosted.org>
In-reply-to
Content
That is expected behavior. "get" is a method of "dict".

>>> payload = {}
>>> dir(payload)
['__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__ior__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__ror__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']
>>> hasattr(payload, "keys")
True


https://docs.python.org/3/library/stdtypes.html#dict.get
History
Date User Action Args
2021-10-19 21:32:03ned.deilysetrecipients: + ned.deily, ronaldoussoren, m.c.massok
2021-10-19 21:32:03ned.deilysetmessageid: <1634679123.41.0.0697213576192.issue45529@roundup.psfhosted.org>
2021-10-19 21:32:03ned.deilylinkissue45529 messages
2021-10-19 21:32:03ned.deilycreate