Added a warning to creating.ipynb about Mapping attributes: they

can't be used to access STIX object properties.
master
Michael Chisholm 2020-01-29 16:01:15 -05:00
parent 176cb980a2
commit 1cadeaa1c6
1 changed files with 19 additions and 5 deletions

View File

@ -330,6 +330,20 @@
"indicator.name" "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", "cell_type": "markdown",
"metadata": {}, "metadata": {},
@ -1110,21 +1124,21 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3", "display_name": "Python 2",
"language": "python", "language": "python",
"name": "python3" "name": "python2"
}, },
"language_info": { "language_info": {
"codemirror_mode": { "codemirror_mode": {
"name": "ipython", "name": "ipython",
"version": 3 "version": 2
}, },
"file_extension": ".py", "file_extension": ".py",
"mimetype": "text/x-python", "mimetype": "text/x-python",
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython2",
"version": "3.6.7" "version": "2.7.15"
} }
}, },
"nbformat": 4, "nbformat": 4,