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

Method seek

IPython/lib/demo.py:361–370  ·  view source on GitHub ↗

Move the current seek pointer to the given block. You can use negative indices to seek from the end, with identical semantics to those of Python lists.

(self,index)

Source from the content-addressed store, hash-verified

359 return index
360
361 def seek(self,index):
362 """Move the current seek pointer to the given block.
363
364 You can use negative indices to seek from the end, with identical
365 semantics to those of Python lists."""
366 if index<0:
367 index = self.nblocks + index
368 self._validate_index(index)
369 self.block_index = index
370 self.finished = False
371
372 def back(self,num=1):
373 """Move the seek pointer back num blocks (default is 1)."""

Callers 8

backMethod · 0.95
jumpMethod · 0.95
retar.pyFile · 0.80
source_to_unicodeFunction · 0.80
clear_coutMethod · 0.80
process_inputMethod · 0.80
check_cpasteFunction · 0.80
test_parse_sampleFunction · 0.80

Calls 1

_validate_indexMethod · 0.95

Tested by 2

check_cpasteFunction · 0.64
test_parse_sampleFunction · 0.64