Searched refs:pos (Results 1 - 8 of 8) sorted by relevance

/pkg/src/modules/
H A Dcpiofile.py130 self.pos = long(0)
176 self.pos += len(s)
204 self.fileobj.write(struct.pack("<L", self.pos &
245 return self.pos
247 def seek(self, pos=0):
248 """Set the stream's file pointer to pos. Negative seeking
251 if pos - self.pos >= 0:
252 blocks, remainder = divmod(pos - self.pos, sel
[all...]
H A D_varcet.c190 Py_ssize_t pos = 0; local
202 while (PyDict_Next(act_attrs, &pos, &attr, &value)) {
H A Dmogrify.py512 pos = s.find(qs.format(attr, match.pattern))
513 if pos != -1:
514 matchorder[match.pattern] = pos
H A Dquery_parser.py421 self.pos = string_position
430 "\t{0}".format(" " * max(self.pos - 1, 0) + "^")])
H A Dcatalog.py759 pos = dict((p, i) for (i, p) in enumerate(pubs))
762 return (astem, pos[apub])
/pkg/src/modules/client/transport/
H A Dmdetect.py54 def __getitem__(self, pos):
55 return self._mirrors[pos]
/pkg/src/modules/actions/
H A D__init__.py131 "position: {pos:d}: {error}:\n {action}\n"
133 pos=self.position, action=self.actionstr,
135 return _("Malformed action at position: {pos:d}: {error}:\n "
136 "{action}\n{marker}").format(pos=self.position,
H A D_actions.c123 set_malformederr(const char *str, int pos, const char *msg) argument
127 if ((val = Py_BuildValue("sis", str, pos, msg)) != NULL) {

Completed in 325 milliseconds