We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb98231 commit ee4b7eaCopy full SHA for ee4b7ea
numpy/_core/_ufunc_config.py
@@ -174,10 +174,16 @@ def setbufsize(size):
174
175
Examples
176
--------
177
- >>> np.setbufsize(4096)
+ When exiting a `numpy.errstate` context manager the bufsize is restored:
178
+
179
+ >>> with np.errstate():
180
+ ... np.setbufsize(4096)
181
+ ... print(np.getbufsize())
182
+ ...
183
8192
- >>> np.getbufsize()
184
4096
185
+ >>> np.getbufsize()
186
+ 8192
187
188
"""
189
old = _get_extobj_dict()["bufsize"]
0 commit comments