summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Taylor <juliantaylor108@gmail.com>2014-10-12 18:20:29 +0200
committerJulian Taylor <juliantaylor108@gmail.com>2014-10-12 18:20:29 +0200
commit2ba94e726c7adf5b6ea7f2e49aadb78fe8b1d7ba (patch)
tree231a06864c2dbf33f8ebd2fd937875e41be3c42b
parent4c4595b2487002162e6ce5e6dd8a9c778e3d7c30 (diff)
parentade76b0035496ad0239b5236688fa51d4a4e592e (diff)
downloadnumpy-2ba94e726c7adf5b6ea7f2e49aadb78fe8b1d7ba.tar.gz
Merge pull request #5176 from larsmans/memmap-doc
DOC: core: contents of newly allocated space in memmap
-rw-r--r--numpy/core/memmap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index b1c96ee29..4b10f361c 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -111,6 +111,11 @@ class memmap(ndarray):
certain size depending on the platform. This size is always < 2GB
even on 64-bit systems.
+ When a memmap causes a file to be created or extended beyond its
+ current size in the filesystem, the contents of the new part are
+ unspecified. On systems with POSIX filesystem semantics, the extended
+ part will be filled with zero bytes.
+
Examples
--------
>>> data = np.arange(12, dtype='float32')