MCPcopy Index your code
hub / github.com/ipython/ipython / _group_flush

Method _group_flush

IPython/lib/backgroundjobs.py:256–266  ·  view source on GitHub ↗

Flush a given job group Return True if the group had any elements.

(self,group,name)

Source from the content-addressed store, hash-verified

254 return True
255
256 def _group_flush(self,group,name):
257 """Flush a given job group
258
259 Return True if the group had any elements."""
260
261 njobs = len(group)
262 if njobs:
263 plural = {1:''}.setdefault(njobs,'s')
264 print('Flushing %s %s job%s.' % (njobs,name,plural))
265 group[:] = []
266 return True
267
268 def _status_new(self):
269 """Print the status of newly finished jobs.

Callers 1

flushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected