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

Method iterupgrade

numpy/lib/_iotools.py:752–762  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

750 return self.upgrade(value)
751
752 def iterupgrade(self, value):
753 self._checked = True
754 if not hasattr(value, '__iter__'):
755 value = (value,)
756 _strict_call = self._strict_call
757 try:
758 for _m in value:
759 _strict_call(_m)
760 except ValueError:
761 self._do_upgrade()
762 self.iterupgrade(value)
763
764 def update(self, func, default=None, testing_value=None,
765 missing_values='', locked=False):

Callers 1

genfromtxtFunction · 0.80

Calls 1

_do_upgradeMethod · 0.95

Tested by

no test coverage detected