Next / Previous / Contents / NM Tech homepage

6.15. CBCData.genNations()

pycbc.py
# - - -   C B C D a t a . g e n N a t i o n s

    def genNations ( self ):
        '''Generate the nations in self, ascending by name.
        '''
        #-- 1 --
        for row in self.s.query(self.Nation).order_by(
                self.Nation.nation_name):
            yield row