8000 Merge pull request #5176 from larsmans/memmap-doc · numpy/numpy@2ba94e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ba94e7

Browse files
committed
Merge pull request #5176 from larsmans/memmap-doc
DOC: core: contents of newly allocated space in memmap
2 parents 4c4595b + ade76b0 commit 2ba94e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numpy/core/memmap.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ class memmap(ndarray):
111111
certain size depending on the platform. This size is always < 2GB
112112
even on 64-bit systems.
113113
114+
When a memmap causes a file to be created or extended beyond its
115+
current size in the filesystem, the contents of the new part are
116+
unspecified. On systems with POSIX filesystem semantics, the extended
117+
part will be filled with zero bytes.
118+
114119
Examples
115120
--------
116121
>>> data = np.arange(12, dtype='float32')

0 commit comments

Comments
 (0)
0