From c6b2b6fbfa71ad2e10b0d2aaefb704b02ecbfc78 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Mon, 3 Feb 2020 16:51:12 -0500 Subject: [PATCH] Change the warning in the jupyter notebook for creating content, regarding name collisions between method and property names, to not pick on the Mapping methods specifically. The problem is more general than that: stix objects have more methods than those. Instead of listing them all out, a more general statement is made, that accessing those attributes will result in a bound method, not a STIX property value. --- docs/guide/creating.ipynb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/guide/creating.ipynb b/docs/guide/creating.ipynb index 246f26d..6544e89 100644 --- a/docs/guide/creating.ipynb +++ b/docs/guide/creating.ipynb @@ -334,14 +334,13 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "-----\n", - "### Warning\n", - "Note that because these objects are designed to be usable as `Mapping`s, the attributes of that interface retain their mapping meanings and can't be used to access STIX object properties. This includes the attributes:\n", - "- keys\n", - "- values\n", - "- items\n", - "- get\n", - "-----" + "
\n", + "\n", + "**Warning**\n", + "\n", + "Note that there are several attributes on these objects used for method names. Accessing those will return a bound method, not the attribute value.\n", + "\n", + "
\n" ] }, {