This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor Agreement | |
This Contributor Agreement is between Python Software Foundation (“PSF”) and the individual or other entity identified below (“the Contributor”). | |
Contributor offers to license certain software (a “Contribution” or multiple “Contributions”) to PSF, and PSF agrees to accept said Contributions, under the terms of the open source license identified below (the "Initial License"). | |
Contributor understands and agrees that PSF shall have the irrevocable and perpetual right to make and distribute copies of any Contribution, as well as to create and distribute collective works and derivative works of any Contribution, under the Initial License or under any other open source license approved by a unanimous vote of the PSF board. Contributor shall identify each Contribution by placing the following notice in its source code adjacent to Contributor's valid copyright notice: "Licensed to PSF under a Contributor Agreement." | |
The currently acceptable licenses are: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
class StringIteratorIO(io.IOBase): | |
def __init__(self, iterator): | |
io.IOBase.__init__(self) | |
self._iter = iterator | |
self._left = '' |