-
Notifications
You must be signed in to change notification settings - Fork 1
virttest.staging.backports
- index
- modules |
- next |
- previous |
- Avocado VT 44.0 documentation »
- virttest »
- virttest package »
- virttest.staging package »
virttest.staging.backports package¶
Subpackages¶
Module contents¶
This module contains backported functions that are not present in Python 2.4 but are standard in more recent versions.
virttest.staging.backports.``all
(iterable)¶
From http://stackoverflow.com/questions/3785433/python-backports-for-some-methods :codeauthor: Tim Pietzcker http://stackoverflow.com/users/20670/tim-pietzcker licensed under cc-wiki with attribution required
virttest.staging.backports.``any
(iterable)¶
From http://stackoverflow.com/questions/3785433/python-backports-for-some-methods :codeauthor: Tim Pietzcker http://stackoverflow.com/users/20670/tim-pietzcker licensed under cc-wiki with attribution required
virttest.staging.backports.``bin
(number)¶
Adapted from http://code.activestate.com/recipes/576847/ :codeauthor: Vishal Sapre :license: MIT
A foolishly simple look-up method of getting binary string from an integer This happens to be faster than all other ways!!!
virttest.staging.backports.``next
(*args)¶
Retrieve the next item from the iterator by calling its next() method. If default is given, it is returned if the iterator is exhausted, otherwise StopIteration is raised. New in version 2.6.
Parameters:
- iterator (iterator) – the iterator
- default (object) – the value to return if the iterator raises StopIteration
Returns:
The object returned by iterator.next()
Return type:
object
virttest.staging.backports.collections package
- index
- modules |
- next |
- previous |
- Avocado VT 44.0 documentation »
- virttest »
- virttest package »
- virttest.staging package »
© Copyright 2014, Red Hat. Created using Sphinx 1.5.1.