On 3/18/06, Brian Gustin <[EMAIL PROTECTED]> wrote:
> Oh. just found the original question.. :)
>
> OK perhaps this would be more helpful if you were to manually query
> mysql on command line and paste the results it outputs here.
>
> what I am betting is your method to get the data out of teh quer
OK so I guess you know what you need to do now :) something like this
perhaaps :
(modified your original code)
reportlist = query(reportquery)
mystring = ''
for row in reportlist:
id = row[0]
title = row[1]
content = row[2]
published = row[3]
mystring = m
i'm new to programming and decided to go with python as my first language.
my goal is to create an excel macros that will grab information from an
html file and import it into my worksheet. I figure i should first start
apart from excel then work on making it work with it (if it is even
pos
Message: 8Date: Sat, 18 Mar 2006 14:26:15 -0500From: Kent Johnson Subject: Re: [Tutor] Fill in a web formCc: tutor python Message-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; charset=ISO-8859-1; format=flowedDavid Holland wrote:> Is there a way in python to automatically put values in a web pag
Hi All,
I had a feeling I could do this:
>>> foo
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
>>> for c in foo:
... for b in c:
... print b
...
1
2
3
1
2
3
1
2
3
Using a list comprehension, as it seemed to me like I was saying: b
for c in foo, but I can't see how to do this. Ultimately I w
Hi everyone-
This is not strictly speaking a Python question but it's probably
something that other pythonistas have encountered and, hopefully
solved :-)
When I click on a link to a ".py" file (either remotely or on my
computer) using firefox, it gives me two options: running the script
with the
server needs to be set up with a handler to tell it what to do with the
file , otherwise it will look at local host to determine what to do with
it , via the extension, and if no extension is found, then it will
simply offer to download the file to your computer . if you want it to
display as t
On 19 Mrz 2006, [EMAIL PROTECTED] wrote:
> I had a feeling I could do this:
>
foo
> [[1, 2, 3], [1, 2, 3], [1, 2, 3]]
for c in foo:
> ... for b in c:
> ... print b
> ...
> 1
> 2
> 3
> 1
> 2
> 3
> 1
> 2
> 3
>
> Using a list comprehension, as it seemed to me like I was sayi
On 20/03/06, Steve Nelson <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I had a feeling I could do this:
>
> >>> foo
> [[1, 2, 3], [1, 2, 3], [1, 2, 3]]
> >>> for c in foo:
> ... for b in c:
> ... print b
What you're doing is called "flattening" a list. You can do it with a
list compre
On 3/19/06, Karl Pflästerer <[EMAIL PROTECTED]> wrote:
>>> reduce(lambda s, L: s + sum(L), foo, 0)
Ah ok - well that looks pretty cryptic to me, as I've never used
either lambda or reduce(). However, this looks to be a 'functional'
way of doing what I was doing procedurally, which is, I suppose,
On 3/19/06, John Fouhy <[EMAIL PROTECTED]> wrote:
> What you're doing is called "flattening" a list. You can do it with a
> list comprehension:
>
> >>> foo = [[1,2,3], [4,5,6], [7,8,9]]
> >>> [x for y in foo for x in y]
> [1, 2, 3, 4, 5, 6, 7, 8, 9]
Ah yes, that was the sort of thing I was think
Hi John,
> i'm new to programming and decided to go with python as my first language.
Normally I'd say that was a good choice, but it really depends on what
you want to do.
> my goal is to create an excel macros that will grab information from an
> html file and import it into my worksheet.
Th
> computer) using firefox, it gives me two options: running the script
> with the default Python app, or saving the file. What I would like is
> to display the file as text in the browser.
Open Tools->Folder Options in Windows explorer
Go to File Types tab
Scroll down to find .py (and .pyw)
> interesting. I've never done any functional programming at all, so it
> all seems a little foreign!
>
> Can you recommend another gentle introduction?
Try the functional programming topic in the Advanced section of my tutor.
It covers the concepts and how to do it in Python at the basic leve
On 3/19/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > interesting. I've never done any functional programming at all, so it
> > all seems a little foreign!
> >
> > Can you recommend another gentle introduction?
>
> Try the functional programming topic in the Advanced section of my tutor.
> It cov
On 3/19/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > computer) using firefox, it gives me two options: running the script
> > with the default Python app, or saving the file. What I would like is
> > to display the file as text in the browser.
>
> Open Tools->Folder Options in Windows explorer
>
16 matches
Mail list logo