Skip to content

Instantly share code, notes, and snippets.

@tanvirraj
Created March 11, 2015 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanvirraj/f4413fcdf10340806f4e to your computer and use it in GitHub Desktop.
Save tanvirraj/f4413fcdf10340806f4e to your computer and use it in GitHub Desktop.
from UserDict import UserDict
class fileInfo(UserDict):
def __init__(self, filename=None):
UserDict.__init__(self) #no idea what it does.is it extending the constructor with UserDict’s constructor?
self["name"]=filename
@az7arul
Copy link

az7arul commented Mar 11, 2015

its callin the init method of UserDict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment