On Tue, 2 Mar 2010 11:25:44 am Andreas Kostyrka wrote:
> Furthermore I do not think that most of the "core" community has a
> problem with the alternate implementations, as they provide very
> useful functions (it helps on the architecture side, because it
> limits somewhat what can be done, it hel
Hi tutor,
I have a large text file that has chunks of data like this:
headerA n1
line 1
line 2
...
line n1
headerB n2
line 1
line 2
...
line n2
Where each chunk is a header and the lines that follow it (up to the next
header). A header has the number of lines in the chunk as its second field.
I
Andrew Fithian wrote:
Hi tutor,
I have a large text file that has chunks of data like this:
headerA n1
line 1
line 2
...
line n1
headerB n2
line 1
line 2
...
line n2
Where each chunk is a header and the lines that follow it (up to the
next header). A header has the number of lines in the chun
On Mon, 1 Mar 2010 22:22:43 -0800
Andrew Fithian wrote:
> Hi tutor,
>
> I have a large text file that has chunks of data like this:
>
> headerA n1
> line 1
> line 2
> ...
> line n1
> headerB n2
> line 1
> line 2
> ...
> line n2
>
> Where each chunk is a header and the lines that follow it (up
hello,
I have this code:
>>> import re
>>> import MySQLdb, csv, sys
>>> conn = MySQLdb.connect (host = "localhost",user = "usr", passwd= "pass",db
>>> = "databasename")
>>> c = conn.cursor()
>>> file = open('Data/asdsp-lao-farmers-et-batieng-products.html', 'r')
>>> data = file.read()
>>> get_rec
On Tue, 2 Mar 2010 05:22:43 pm Andrew Fithian wrote:
> Hi tutor,
>
> I have a large text file that has chunks of data like this:
>
> headerA n1
> line 1
> line 2
> ...
> line n1
> headerB n2
> line 1
> line 2
> ...
> line n2
>
> Where each chunk is a header and the lines that follow it (up to the
>
On 03/02/2010 04:13 AM, Wayne Watson wrote:
> See Subject. 40K here, but other Python lists allow for larger (total)
> sizes.
I don't know, I've never realized it; that's an indication that the 40K
limit is reasonable, at least to me. What did you get for posting >40K
mails? Is your mail bounced?
Hello,
Thanks a lot for this state of the art of the language, very instructive.
I see now top of the iceberg ;o)
Karim
Steven D'Aprano wrote:
On Tue, 2 Mar 2010 07:07:57 am Karim Liateni wrote:
Thanks for this precision!
I'm using standard python so this is ok!
Why people use proprietar
I've managed to drum up some code to obtain a list containing joined diagonal
elements of a matrix (I'm making a word finder generator), but am wondering if
there's any better way to do this:
# setup so code snippet works properly
sizeW = 4
sizeH = 3
puzzleLayout = ['spam'] * (sizeW * sizeH)
# St