I found this code, but can't find the needed module:

# display the info of a list, dictionary and tuple
# needs apihelper.py
from apihelper import info
# create a list (or other container)
li = []
# now display the available inormation
print info(li)
print "-------------------------------------------"
# create a dictionary
di = {}
# display information on the dictionary (key:value list/map)
print info(di)
print "-------------------------------------------"
# create a tuple
tup = ()
# display information on the tuple (list that connot be changed)
print info(tup)

Where can I find this module?

Is this from diveintopython? If so, then the first snippet on this page is what you need ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.