From 1cadeaa1c628fedee8461cf8d54efdf7d6386278 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Wed, 29 Jan 2020 16:01:15 -0500 Subject: [PATCH] Added a warning to creating.ipynb about Mapping attributes: they can't be used to access STIX object properties. --- docs/guide/creating.ipynb | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/docs/guide/creating.ipynb b/docs/guide/creating.ipynb index 92a3336..246f26d 100644 --- a/docs/guide/creating.ipynb +++ b/docs/guide/creating.ipynb @@ -330,6 +330,20 @@ "indicator.name" ] }, + { + "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", + "-----" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -1110,21 +1124,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 2", "language": "python", - "name": "python3" + "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 3 + "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.7" + "pygments_lexer": "ipython2", + "version": "2.7.15" } }, "nbformat": 4,