MCPcopy Create free account
hub / github.com/numpy/numpy / conv

Function conv

numpy/lib/tests/test_loadtxt.py:475–480  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

473 already_read = 0
474
475 def conv(x):
476 nonlocal already_read
477 if already_read > 4999:
478 raise ValueError("failed half-way through!")
479 already_read += 1
480 return sentinel
481
482 txt = StringIO("x\n" * 10000)
483

Callers 2

tobytes_firstFunction · 0.50
genfromtxtFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected