<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1897" rel="nofollow">http://projects.scipy.org/numpy/ticket/1897</a> on 2011-07-07 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpaalasm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpaalasm">@jpaalasm</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierregm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierregm">@pierregm</a>.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import pickle; import numpy; numpy.__version__
'1.5.1'
&gt;&gt;&gt; ma = numpy.ma.MaskedArray([0, 0, 0], mask=True)
&gt;&gt;&gt; m = ma[0]
&gt;&gt;&gt; m
masked
&gt;&gt;&gt; pickle.dumps(m)
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python2.7/pickle.py&quot;, line 1374, in dumps
    Pickler(file, protocol).dump(obj)
  File &quot;/usr/lib/python2.7/pickle.py&quot;, line 224, in dump
    self.save(obj)
  File &quot;/usr/lib/python2.7/pickle.py&quot;, line 306, in save
    rv = reduce(self.proto)
  File &quot;/usr/lib/pymodules/python2.7/numpy/ma/core.py&quot;, line 5494, in __reduce__
    self.__getstate__())
  File &quot;/usr/lib/pymodules/python2.7/numpy/ma/core.py&quot;, line 5467, in __getstate__
    self._fill_value,
AttributeError: 'MaskedConstant' object has no attribute '_fill_value'
&gt;&gt;&gt; "><pre class="notranslate"><code class="notranslate">Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import pickle; import numpy; numpy.__version__
'1.5.1'
&gt;&gt;&gt; ma = numpy.ma.MaskedArray([0, 0, 0], mask=True)
&gt;&gt;&gt; m = ma[0]
&gt;&gt;&gt; m
masked
&gt;&gt;&gt; pickle.dumps(m)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/python2.7/pickle.py", line 1374, in dumps
    Pickler(file, protocol).dump(obj)
  File "/usr/lib/python2.7/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib/python2.7/pickle.py", line 306, in save
    rv = reduce(self.proto)
  File "/usr/lib/pymodules/python2.7/numpy/ma/core.py", line 5494, in __reduce__
    self.__getstate__())
  File "/usr/lib/pymodules/python2.7/numpy/ma/core.py", line 5467, in __getstate__
    self._fill_value,
AttributeError: 'MaskedConstant' object has no attribute '_fill_value'
&gt;&gt;&gt; 
</code></pre></div>
<p dir="auto">There is a decent amount of overlap in <a href="https://github.com/numpy/numpy/blob/main/doc/source/dev/index.rst#building-docs">documentation subsection of the dev/index page</a> and the more detailed <a href="https://github.com/numpy/numpy/blob/main/doc/source/docs/howto_build_docs.rst">documentation build instructions</a>.</p>
<p dir="auto">There may be an opportunity to reduce duplication here, e.g. by removing most of the details about building docs from dev/index and linking to the <code class="notranslate">howto_build_docs</code> article instead.</p>
<p dir="auto">Pinging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mukulikaa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mukulikaa">@Mukulikaa</a> since you've recently rewritten the latter document.</p>