getting the variable type

R

Rene Veerman

hi.

i need to know the type of variable i'm dealing with.

take this list:

files = [
"lib/jquery/jquery-1.4.2.source.js",
"lib/jquery-ui-1.8.1/development-bundle/ui/jquery-ui-1.8.1.custom.js",
"lib/jquery-ui-1.8.1/development-bundle/ui/jquery.ui.tabs.js",
"lib/jquery/jquery.scrollTo-min.js",
"lib/jquery/jquery.corner.js",
"lib/jquery/jquery.mousewheel.js",
"lib/jquery/jquery.em.js",
"lib/jquery/jScrollPane.js",
"lib_rv/logAndHandler-1.1.0/lah.source.js",
"lib_rv/visCanvasLoaderIcon-1.1.0/visCanvasLoaderIcon.source.js",
self.getJavascript_getbootJSPHP,
"js/mbCore_boot.js",
"content/mediaBeez_custom.js"
]
# output a list of the files.
html = '';
for i in range(len(files)):
file = files

f = open (file, 'r')
html += f.read()

page = {
'html' : html
}
the third-last item in the list is not a string, it's a function.
how do i test for that?

--
---------------------------------
Greetings from Rene7705,

My free open source webcomponents:
  http://code.google.com/u/rene7705/
  http://mediabeez.ws/downloads (and demos)

My music (i'm DJ firesnake)
  http://mediabeez.ws/music

http://www.facebook.com/rene7705
---------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,087
Latest member
JeremyMedl

Latest Threads

Top