summaryrefslogtreecommitdiff
path: root/docs/library/ustruct.rst
diff options
context:
space:
mode:
authorTom McDermott <spon@wattwatchers.com.au>2019-08-05 21:09:14 +1000
committerDamien George <damien@micropython.org>2021-07-06 14:59:50 +1000
commitc1f74b300548912f92edb4ae004dc486e0b7c8bf (patch)
tree55ba0f0a20dbe7f7c9021ca1d95db2f3b5716081 /docs/library/ustruct.rst
parentd934f8c8a8bb896595a6b976126222b438f383ea (diff)
docs/library: Warn that ustruct doesn't handle spaces in format strings.
And also add a test to capture the CPython difference.
Diffstat (limited to 'docs/library/ustruct.rst')
-rw-r--r--docs/library/ustruct.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/library/ustruct.rst b/docs/library/ustruct.rst
index 357d622b2..bfcd84e2d 100644
--- a/docs/library/ustruct.rst
+++ b/docs/library/ustruct.rst
@@ -12,6 +12,11 @@ Supported format codes: ``b``, ``B``, ``h``, ``H``, ``i``, ``I``, ``l``,
``L``, ``q``, ``Q``, ``s``, ``P``, ``f``, ``d`` (the latter 2 depending
on the floating-point support).
+.. admonition:: Difference to CPython
+ :class: attention
+
+ Whitespace is not supported in format strings.
+
Functions
---------