On May 29, 4:10 pm, superpollo 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')
> > [('fo
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'), ('pu
> # 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
On 29 May 2010 23:24, Astley Le Jasper wrote:
> def createlist():
>column_title_list = (
>("id",20,"integer"),
>("companyname",50,"text"),
>getproducts(),
>
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', 5