Python Warts

misfeatures and other problems
PERL| PHP| PYTHON| RUBY
What do each of the following programs do? (all answers)
(answer)
#!/usr/bin/python

a = ([1,2,3], [7,8,9])

try:
	a[0] += [4,5,6]
except Exception, e:
	print "Error: %s" % e

print "a=%s" % str(a)
answer
PERL| PHP| PYTHON| RUBY
Last modified: March 30, 2006 @ 7:04 MST
Copyright (C) 1996-2024 Selene ToyKeeper