On Thu, Dec 1, 2016 at 10:30 AM, Cecil Westerhof wrote:
> I would prefer when it would generate:
> '[
> "An array",
> "with several strings",
> "as a demo"
> ]'
>
> Is this possible, or do I have to code this myself?
> https://docs.python.org/3/library/json.html?highlight=
On Thursday 1 Dec 2016 23:58 CET, Peter Otten wrote:
> Cecil Westerhof wrote:
>
>> On Thursday 1 Dec 2016 22:52 CET, Cecil Westerhof wrote:
>>
>>> Now I need to convert the database. But that should not be a big
>>> problem.
>>
>> I did the conversion with:
>> cursor.execute('SELECT tipID FROM t
Cecil Westerhof wrote:
> On Thursday 1 Dec 2016 22:52 CET, Cecil Westerhof wrote:
>
>> Now I need to convert the database. But that should not be a big
>> problem.
>
> I did the conversion with:
> cursor.execute('SELECT tipID FROM tips')
> ids = cursor.fetchall()
> for id in ids:
>
On Thursday 1 Dec 2016 22:52 CET, Cecil Westerhof wrote:
> Now I need to convert the database. But that should not be a big
> problem.
I did the conversion with:
cursor.execute('SELECT tipID FROM tips')
ids = cursor.fetchall()
for id in ids:
id = id[0]
cursor.execute(
On Thursday 1 Dec 2016 17:55 CET, Zachary Ware wrote:
> On Thu, Dec 1, 2016 at 10:30 AM, Cecil Westerhof wrote:
>> I would prefer when it would generate:
>> '[
>> "An array",
>> "with several strings",
>> "as a demo"
>> ]'
>>
>> Is this possible, or do I have to code this myself?
>
> https://doc
On 2016-12-01 17:30, Cecil Westerhof wrote:
> When I have a value dummy which contains:
> ['An array', 'with several strings', 'as a demo']
> Then json.dumps(dummy) would generate:
> '["An array", "with several strings", "as a demo"]'
> I would prefer when it would generate:
> '[
>
In <87lgvz4no8@equus.decebal.nl> Cecil Westerhof writes:
> I started to use json.dumps to put things in a SQLite database. But I
> think it would be handy when it would be easy to change the values
> manually.
> When I have a value dummy which contains:
> ['An array', 'with several strin
On Thu, Dec 1, 2016 at 10:30 AM, Cecil Westerhof wrote:
> I would prefer when it would generate:
> '[
> "An array",
> "with several strings",
> "as a demo"
> ]'
>
> Is this possible, or do I have to code this myself?
https://docs.python.org/3/library/json.html?highlight=in
I started to use json.dumps to put things in a SQLite database. But I
think it would be handy when it would be easy to change the values
manually.
When I have a value dummy which contains:
['An array', 'with several strings', 'as a demo']
Then json.dumps(dummy) would generate:
'["An array"