From ea08b37934e6459d0da93b191fd5a240a0667b6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= <inform@tiker.net>
Date: Mon, 5 Apr 2021 13:33:00 -0500
Subject: [PATCH] Explain method usage scenario for obj_array_vectorized_n_args

---
 pytools/obj_array.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pytools/obj_array.py b/pytools/obj_array.py
index 7dbd0d4..3803945 100644
--- a/pytools/obj_array.py
+++ b/pytools/obj_array.py
@@ -216,6 +216,8 @@ def obj_array_vectorize_n_args(f, *args):
 def obj_array_vectorized_n_args(f):
     # Unfortunately, this can't use partial(), as the callable returned by it
     # will not be turned into a bound method upon attribute access.
+    # This may happen here, because the decorator *could* be used
+    # on methods, since it can "look past" the leading `self` argument.
     # Only exactly function objects receive this treatment.
     #
     # Spec link:
-- 
GitLab