>
> for item in itertools.chain.from_iterable(chunk):
>...
>
> will work, too, without the consumption of time and memory needed to build
> the list.
>
Thank you Peter, yes it works as I wanted like that.
___
Tutor maillist - Tutor@python.org
T
* Peter Otten <__pete...@web.de> [2017-03-13 19:57:38 +0100]:
>
> Toni Fuente via Tutor wrote:
>
> > Hi,
> >
> > I've got this script that goes through an httpd conf file, and gets the
> > related bits of it for a site, and writes a new config with
* David Rock [2017-03-13 11:28:57 -0500]:
> > On Mar 13, 2017, at 10:54, Toni Fuente via Tutor wrote:
> >
> > Hi,
> >
> > I've got this script that goes through an httpd conf file, and gets the
> > related bits of it for a site, and writes a new co
Hi,
I've got this script that goes through an httpd conf file, and gets the
related bits of it for a site, and writes a new config with values that
I am interested. The problem is that it finds the first chunk and
returns it, but I need to go to the end of all chunks list, because
there are also s
-Agent: KNode/4.13.3
> Message-ID:
>
> Toni Fuente via Tutor wrote:
>
> > Hello everybody,
> >
> > I am trying to divide a configuration file (configs) in the form of:
> >
> >
> > ServerAdmin webmas...@foo.com
> > ServerName www.foo.com
Hello everybody,
I am trying to divide a configuration file (configs) in the form of:
ServerAdmin webmas...@foo.com
ServerName www.foo.com
DocumentRoot /home/public/web/htdocs/foo.com
ScriptAlias /cgi-bin/ /home/public/web/htdocs/foo.com/cgi-bin/
[...]
ServerAdmin webmas...@bar.com
Server
* Art Caton [2014-03-20 18:43:02 -0400]:
> Date: Thu, 20 Mar 2014 18:43:02 -0400
> From: Art Caton
> To: Tutor@python.org
> Subject: [Tutor] PLEASE remove me from your e-mailing list
> Message-ID:
>
>
> artca...@gmail.com no longer requests your "Tutor Request" e-mailings
>
* Alan Gauld [2014-03-20 19:27:57 +]:
> On 20/03/14 17:31, Toni Fuente wrote:
>
> >I got a database from where I get the data that I am going to process,
> >and create a dictionary osDict. This dictionary has the form of:
> >
> >osDict = {'CentOS v4.x'
* Alan Gauld [2014-03-20 16:18:35 +]:
> On 20/03/14 14:46, Toni Fuente wrote:
>
> >I am trying to create a string this way:
> >
> >insertion = "INSERT INTO mytable(week %s) VALUES (\%s, \%s)" % osStringI
> >
> >not enough arguments for format s
* Alex Kleider [2014-03-20 09:02:41 -0700]:
> On 2014-03-20 07:46, Toni Fuente wrote:
> >Hi again,
> >
> >I am trying to create a string this way:
> >
> >insertion = "INSERT INTO mytable(week %s) VALUES (\%s, \%s)" %
> >osStringI
> >
>
* bob gailer [2014-03-20 11:38:47 -0400]:
> On 3/19/2014 8:19 AM, Toni Fuente wrote:
> >Hello everyone,
> >
> >I am stack with a problem that I can't find a solution:
> >
> >I need to create a sqlite schema dynamically, I've got a dictionary wi
Hi again,
I am trying to create a string this way:
insertion = "INSERT INTO mytable(week %s) VALUES (\%s, \%s)" % osStringI
not enough arguments for format string
Where the first %s is going to be substitute by the variable osStringI,
but the other two VALUES (\%s, \%s), should be created as li
* Mark Lawrence [2014-03-19 15:54:27 +]:
> On 19/03/2014 12:19, Toni Fuente wrote:
> >Hello everyone,
> >
> >I am stack with a problem that I can't find a solution:
> >
> >I need to create a sqlite schema dynamically, I've got a dictionary wi
Hello everyone,
I am stack with a problem that I can't find a solution:
I need to create a sqlite schema dynamically, I've got a dictionary with
text keys: "RedHat", "CentOS", "SLES9",..., "etc", "etc"
My intention was at the time of creating the table schema run a loop
through the dictionary ke
14 matches
Mail list logo