Message221716
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
''' |
|
Date |
User |
Action |
Args |
2014-06-27 20:11:16 | terry.reedy | set | recipients:
+ terry.reedy, tim.peters, rhettinger, belopolsky, LambertDW, dalloliogm, BreamoreBoy |
2014-06-27 20:11:16 | terry.reedy | set | messageid: <1403899876.85.0.418576991907.issue4899@psf.upfronthosting.co.za> |
2014-06-27 20:11:16 | terry.reedy | link | issue4899 messages |
2014-06-27 20:11:16 | terry.reedy | create | |
|