Kirk Bailey wrote:
> a relevant code snip:
>
> if os.path.exists('ConfigureMe'):
> f1=open('ConfigureMe','r')
> tablebgcolor=string.strip(f1.readline())
> papercolor=string.strip(f1.readline())
> inkcolor=string.strip(f1.readline())
> linkcolor=string.strip(f1.readline
Hello all,
Does anyone know of any ETL (Extraction, Transformation, Loading)
tools in Python (or at any rate, !Java)?
I have lots (and lots) of raw data in the form of log files which I
need to process and aggregate and then do a whole bunch of group-by
operations, before dumping them into text/r
a relevant code snip:
if os.path.exists('ConfigureMe'):
f1=open('ConfigureMe','r')
tablebgcolor=string.strip(f1.readline())
papercolor=string.strip(f1.readline())
inkcolor=string.strip(f1.readline())
linkcolor=string.strip(f1.readline())
f1.close()
Is it possible to make daemons for *nix in Python ? How ?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello List Members,
I am working on a simple program and would like to know the best way to
approach this. Using getops I am parsing the argv array to grab command line
options; from the command line the user can specify either a filename or a
directory (but not both). Is there an eloquent wa
On 30/03/07, Christopher Spears <[EMAIL PROTECTED]> wrote:
> What I can't remember is what is 'or' in python. For
> example, what if I want the loop to skip apples and
> pears? I tried this:
>
> >>> for f in fruit:
> ... if f != "apples" or "pears":
> ... print f
> ...
I was doodling at the interpreter:
>>> fruit = ["apples","pears","oranges"]
>>> for f in fruit:
... if f != "apples":
... print f
... print "This is not an apple."
...
pears
This is not an apple.
oranges
This is not an apple.
What I can't remember is what is 'or' in py
Awesome! (I was hoping it would be a 1-line solution. :)
Thanks to batteries beign included, I don't necessarily need to worry
about why and how .spilt() works. :)
Quoting Bob Gailer <[EMAIL PROTECTED]>:
> Alan Gilfoy wrote:
>> Hi. I want to learn how to "break down" a string into its component
> Hi. I want to learn how to "break down" a string into its component
> words, and then process each word somehow.
> Is there a way in Python to separate a string into its component words.
> Like this:
> "I would like to convert an English string (sentence) into Pig Latin."
for word in sentenc
Alan Gilfoy wrote:
> Hi. I want to learn how to "break down" a string into its component
> words, and then process each word somehow.
>
> Is there a way in Python to separate a string into its component words.
>
> Like this:
> "I would like to convert an English string (sentence) into Pig Latin."
Hi. I want to learn how to "break down" a string into its component
words, and then process each word somehow.
Is there a way in Python to separate a string into its component words.
Like this:
"I would like to convert an English string (sentence) into Pig Latin."
The Pig Latin conversion I th
11 matches
Mail list logo