[code.view]

[top] / python / PyMOTW / dircache / dircache_listdir.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import dircache
     
     path = '.'
     first = dircache.listdir(path)
     second = dircache.listdir(path)
     
     print 'Contents :', first
     print 'Identical:', first is second
     print 'Equal    :', first == second

[top] / python / PyMOTW / dircache / dircache_listdir.py

contact | logmethods.com