Lines Matching defs:for

41         """The new-style print function for Python 2.4 and 2.5."""
73 for arg in args:
87 for i, arg in enumerate(args):
149 """ Discards all previously collected values for the specified
156 """ Resumes metric collection for the specified metrics.
161 """ Suspends metric collection for the specified metrics.
174 'values_as_string': pre-processed values ready for 'print' statement
177 # parameters (see #3953) for MSCOM.
185 for i in xrange(0, len(names_out)):
196 'values': [int(values[j]) for j in xrange(int(indices[i]), int(indices[i]) + int(lengths[i]))],
197 'values_as_string': '[' + ', '.join([fmt % (int(values[j]) / scale, units[i]) for j in
210 ## This is for saving the original DispatchBaseClass __getattr__ and __setattr__
219 """ Our getattr replacement for DispatchBaseClass. """
225 # Try case-insensitivity workaround for class attributes (COM methods).
227 for k in self.__class__.__dict__.keys():
240 """ Our setattr replacement for DispatchBaseClass. """
249 Base class for the platform specific code.
263 Get a session object that can be used for opening machine sessions.
288 This is for hiding platform specific differences in attributes
297 Does backend specific initialization for the calling thread.
303 Does backend specific uninitialization for the calling thread.
310 passed to an event source for registration.
321 Use passive listeners for COM and web services.
325 raise Exception("No active listeners for this platform")
329 Wait for events to arrive and process them.
331 The timeout (cMsTimeout) is in milliseconds for how long to wait for
332 events to arrive. A negative value means waiting for ever, while 0
337 Returns 2 on error (like not supported for web services).
365 sClassName is the name of the interface we're asking for.
402 # Fudge for 32-bit signed int conversion.
433 for sAttr in dir(oSrc):
443 Platform specific code for MS COM.
491 # Hack the exception base class so the users doesn't need to check for
603 raise Exception("wait for events from the same thread you inited!")
621 # check for interruption
656 for h in self.handles:
730 Platform specific code for XPCOM.
938 # the reference to the error exception class for the last platform/style that
940 # platforms at the same time, so this should be sufficent for most uses and
954 The dPlatformParams is an optional dictionary for passing parameters to the
979 ## VirtualBox API constants (for webservices, enums are symbolic).
985 ## Dictionary for errToString, built on demand.
988 ## The exception class for the selected platform.
1028 # Wrappers for self.platform methods.
1110 Returns a helper class (PerfCollector) for accessing performance
1111 collector goodies. See PerfCollector for details.
1158 if self.oXcptClass is None: # @todo find the exception class for web services!
1201 for sKey in dir(self.statuses):