NewBie Question ...
Saifi ,Khan (CTS)
KSAIFI at pun.cts-corp.com
Fri May 19 01:30:28 EDT 2000
Hi:
I would like to know what tools are available for debugging a python
application.
Is there any debugger available as part of the Python installation ?
I am using python on Linux(RedHat 6.0 without X winodws)and Python 1.5.2
I write all my code as .py files
e.g.
#!/usr/bin/python
#Multiple value dictionaries defined in python
l = { "C" : "C Programming Language",
"C++" : "C++ Programming Language",
"Java" : "Java Programming Language",
"PERL" : "Practical Extraction and Reporting Language" }
# Define a function to handle the key
def printElement( dict, key )
try:
x = dict[key]
except KeyError:
print "No such key in the dictionary."
else:
print key, "has value", x + "."
# Logic
key1 = "PERL"
# Method Invocation
printElement( l, "PERL" )
--
Thanks in advance.
regards
Saifi.
More information about the Python-list
mailing list