コード例 #1
0
ファイル: template.py プロジェクト: youngpong/pysal
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
コード例 #2
0
ファイル: template.py プロジェクト: CartoDB/pysal
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
コード例 #3
0
ファイル: template.py プロジェクト: youngpong/pysal
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
コード例 #4
0
ファイル: template.py プロジェクト: CartoDB/pysal
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)