Dirk Hagemann wrote:
> THANKS! That works :-)
Of course it works. Why wouldn'it it work ?-)
> But meanwhile I found another solution that works in my case. Out of
> this list of tuples I generated a SQL-Statement which is a simple
> string. Then I simply checked this string for 'None'. May be too
THANKS! That works :-)
But meanwhile I found another solution that works in my case. Out of
this list of tuples I generated a SQL-Statement which is a simple
string. Then I simply checked this string for 'None'. May be too
easy...
Dirk
--
http://mail.python.org/mailman/listinfo/python-list
Dirk Hagemann wrote:
> Hi!
>
> I have a list of lists and in some of these lists are elements which I
> want to change.
> Here an example:
> lists=[('abc', 4102, 3572), ('def', 2707, 'None'), ('ghi', 'None', 4102)]
>
> 'None' should be replaced by 0 or NULL or something else.
Your list is a
Hi!
I have a list of lists and in some of these lists are elements which I
want to change.
Here an example:
lists=[('abc', 4102, 3572), ('def', 2707, 'None'), ('ghi', 'None',
4102)]
'None' should be replaced by 0 or NULL or something else. But as far as
I know the replace function of the modu