On May 29, 4:10 pm, superpollo ute...@esempio.net wrote:
Astley Le Jasper ha scritto:
This is probably a really silly question but, given the example code
at the bottom, how would I get a single list?
What I currently get is:
('id', 20, 'integer')
('companyname', 50, 'text')
This is probably a really silly question but, given the example code
at the bottom, how would I get a single list?
What I currently get is:
('id', 20, 'integer')
('companyname', 50, 'text')
[('focus', 30, 'text'), ('fiesta', 30, 'text'), ('mondeo', 30,
'text'), ('puma', 30, 'text')]
('contact',
On 29 May 2010 23:24, Astley Le Jasper astley.lejas...@gmail.com wrote:
def createlist():
column_title_list = (
(id,20,integer),
(companyname,50,text),
getproducts(),
# Insert into the list with slicing syntax.
column_title_list[2:3} = getproduct()
Sorry, that should have been [2:3]. Typing a bit too fast.
-Xav
--
http://mail.python.org/mailman/listinfo/python-list
Astley Le Jasper ha scritto:
This is probably a really silly question but, given the example code
at the bottom, how would I get a single list?
What I currently get is:
('id', 20, 'integer')
('companyname', 50, 'text')
[('focus', 30, 'text'), ('fiesta', 30, 'text'), ('mondeo', 30,
'text'),