Commit 3159e1e1 authored by Guido van Rossum's avatar Guido van Rossum

Change to always call list.append with a single argument.

This does not mean I still support this code!!!
parent 2715bb20
......@@ -229,7 +229,7 @@ def demo(): # Demonstration
col1 = [('a2', da), ('bbb2', da)]
col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)]
col3 = []
for i in range(1, 31): col3.append('xxx' + `i`, da)
for i in range(1, 31): col3.append(('xxx' + `i`, da))
data = [col0, col1, col2, col3]
w = open('tablewin.demo', data)
gwin.mainloop()
......
......@@ -229,7 +229,7 @@ def demo(): # Demonstration
col1 = [('a2', da), ('bbb2', da)]
col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)]
col3 = []
for i in range(1, 31): col3.append('xxx' + `i`, da)
for i in range(1, 31): col3.append(('xxx' + `i`, da))
data = [col0, col1, col2, col3]
w = open('tablewin.demo', data)
gwin.mainloop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment