On Jan 24, 8:21 am, ryan k [EMAIL PROTECTED] wrote:
On Jan 23, 6:30 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 9:50 am, ryan k [EMAIL PROTECTED] wrote:
Steven D'Aprano, you are a prick.
And your reasons for coming to that stridently expressed conclusion
after reading a
-Original Message-
From: [EMAIL PROTECTED] [mailto:python-
[EMAIL PROTECTED] On Behalf Of John Machin
Sent: Wednesday, January 23, 2008 5:48 PM
To: python-list@python.org
Subject: Re: Stripping whitespace
On Jan 24, 7:57 am, Reedick, Andrew [EMAIL PROTECTED] wrote:
Why
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split(). Thank you!
Ryan Kaskel
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 23 Jan 2008 10:50:02 -0800, ryan k wrote:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split(). Thank you!
You *can* just do
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split(). Thank you!
import re
s = 'LNAME PASTAZONE'
Using the split method is the easiest!
On 23 Jan 2008 19:04:38 GMT, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Wed, 23 Jan 2008 10:50:02 -0800, ryan k wrote:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically
On Jan 23, 2:04 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Wed, 23 Jan 2008 10:50:02 -0800, ryan k wrote:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space
I am taking a database class so I'm not asking for specific answers.
Well I have this text tile:
http://www.cs.tufts.edu/comp/115/projects/proj0/customer.txt
And this code:
# Table and row classes used for queries
class Row(object):
def __init__(self, column_list, row_vals):
print
On Jan 24, 5:50 am, ryan k [EMAIL PROTECTED] wrote:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split(). Thank you!
Ryan Kaskel
So when you
On Jan 24, 6:05 am, Paul Rubin http://[EMAIL PROTECTED] wrote:
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do
On Jan 24, 6:17 am, ryan k [EMAIL PROTECTED] wrote:
I am taking a database class so I'm not asking for specific answers.
Well I have this text tile:
http://www.cs.tufts.edu/comp/115/projects/proj0/customer.txt
Uh-huh, column-aligned output.
And this code:
[snip]
Because the addresses
On Jan 23, 2:53 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 6:17 am, ryan k [EMAIL PROTECTED] wrote:
I am taking a database class so I'm not asking for specific answers.
Well I have this text tile:
http://www.cs.tufts.edu/comp/115/projects/proj0/customer.txt
Uh-huh,
On Jan 24, 6:57 am, ryan k [EMAIL PROTECTED] wrote:
So yea i will just have to count dashes.
Read my lips: *you* counting dashes is dumb. Writing your code so that
*code* is counting dashes each time it opens the file is smart.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 23, 3:02 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 6:57 am, ryan k [EMAIL PROTECTED] wrote:
So yea i will just have to count dashes.
Read my lips: *you* counting dashes is dumb. Writing your code so that
*code* is counting dashes each time it opens the file is smart.
Okay
-Original Message-
From: [EMAIL PROTECTED] [mailto:python-
[EMAIL PROTECTED] On Behalf Of ryan k
Sent: Wednesday, January 23, 2008 3:24 PM
To: python-list@python.org
Subject: Re: Stripping whitespace
On Jan 23, 3:02 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 6:57 am
On Jan 24, 7:23 am, ryan k [EMAIL PROTECTED] wrote:
On Jan 23, 3:02 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 6:57 am, ryan k [EMAIL PROTECTED] wrote:
So yea i will just have to count dashes.
Read my lips: *you* counting dashes is dumb. Writing your code so that
*code* is
On Wed, 23 Jan 2008 11:05:01 -0800, Paul Rubin wrote:
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace all the whitespace between them with one space so i
could just do lala.split().
On Jan 23, 5:37 pm, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Wed, 23 Jan 2008 11:05:01 -0800, Paul Rubin wrote:
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace
On Jan 24, 7:57 am, Reedick, Andrew [EMAIL PROTECTED] wrote:
Why is it that so many Python people are regex adverse? Use the dashed
line as a regex. Convert the dashes to dots. Wrap the dots in
parentheses. Convert the whitespace chars to '\s'. Presto! Simpler,
cleaner code.
Woo-hoo!
On Jan 24, 9:47 am, ryan k [EMAIL PROTECTED] wrote:
On Jan 23, 5:37 pm, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Wed, 23 Jan 2008 11:05:01 -0800, Paul Rubin wrote:
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I
On Jan 23, 5:37 pm, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Wed, 23 Jan 2008 11:05:01 -0800, Paul Rubin wrote:
ryan k [EMAIL PROTECTED] writes:
Hello. I have a string like 'LNAME
PASTA ZONE'. I want to create a list of those words and
basically replace
On Jan 24, 9:50 am, ryan k [EMAIL PROTECTED] wrote:
Steven D'Aprano, you are a prick.
And your reasons for coming to that stridently expressed conclusion
after reading a posting that was *not* addressed to you are .?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 23, 6:30 pm, John Machin [EMAIL PROTECTED] wrote:
On Jan 24, 9:50 am, ryan k [EMAIL PROTECTED] wrote:
Steven D'Aprano, you are a prick.
And your reasons for coming to that stridently expressed conclusion
after reading a posting that was *not* addressed to you are .?
Because his
23 matches
Mail list logo