From 71cfec18a6bb4dad04237732cce8d54c19585581 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 20 Sep 2017 09:38:28 +0100 Subject: [PATCH] Add commentary around a potential conflict of method with property. --- volatility/framework/objects/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index 66544ffbe..f90fb3ca5 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -331,6 +331,8 @@ class Array(interfaces.objects.ObjectInterface, abc.Sequence): self._vol['count'] = self._check_type(count, int) self._vol['subtype'] = subtype + # This overrides the little known Sequence.count(val) that returns the number of items in the list that match val + # Changing the name would be confusing (since we use count of an array everywhere else), so this is more important @property def count(self): """Returns the count dynamically"""