Author terry.reedy
Recipients BreamoreBoy, LambertDW, belopolsky, dalloliogm, rhettinger, terry.reedy, tim.peters
Date 2014-06-27.20:11:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403899876.85.0.418576991907.issue4899@psf.upfronthosting.co.za>
In-reply-to
Content
I am closing this for both the general reasons already given and the lack of a proposed api that could programmed, Hence there is no example code that would run and hence no specifics to approve. If someone wanted to pursue this, python-ideas would be a better place.

One of the general reasons given is that the example does not demonstrate a real need for the fixtures proposed. My take on the example code is this.

The input to TpedIterator is an iterable of lines. A list of lines will work as well an an open file. I would create a file of example lists and import the one needed for each docstring. For the example given.

def TpedIterator(lines):
    '''Yield Marker for each line of lines.

    >>> from biopython.sample_data import Tped
    >>> for marker in TpedIterator(Tped):
    ...    print(marker)
    Marker rs10000543, 2 individuals
    Marker rs10000929, 2 individuals
    Marker rs10002472, 2 individuals
    '''
History
Date User Action Args
2014-06-27 20:11:16terry.reedysetrecipients: + terry.reedy, tim.peters, rhettinger, belopolsky, LambertDW, dalloliogm, BreamoreBoy
2014-06-27 20:11:16terry.reedysetmessageid: <1403899876.85.0.418576991907.issue4899@psf.upfronthosting.co.za>
2014-06-27 20:11:16terry.reedylinkissue4899 messages
2014-06-27 20:11:16terry.reedycreate