Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/y/PyCifRW-3.6.2/StarFile.py   PyCifRW(Download)
def ReadStar(filename,maxlength=2048,dest=StarFile(),scantype='standard',grammar=None):
    import string,sys
    import YappsStarParser_1_1 as Y1
    import YappsStarParser_1_0 as Y0
    if isinstance(filename,basestring):
            raise StarError( 'Line %d contains more than %d characters' % (pos+1,maxlength))
    if grammar is None: 
        target_grammars = (Y1,Y0)
    elif grammar =='1.1':
        target_grammars = (Y1,)
    elif grammar =='1.0':
        target_grammars = (Y0,)