#! rnews 1551
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George [EMAIL PROTECTED]
Subject: Re: why and when we should do it?
X-Nntp
A subject line should say what the message is about, for example
Create HTML tag using objects (newbie Q)
and enable people who are not interested in or knowledgable about a
topic to skip it, while grabbing the attention of people who are
knowledgable/interested.
--
http://mail.python.org
#! rnews 1995
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Jeff Sandys [EMAIL PROTECTED]
Subject: Re: Python for a 10-14 years old?
X-Nntp
#! rnews 2393
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George [EMAIL PROTECTED]
Subject: Re: Getting the word to conventional
Hi Guys,
I am having problems in the following C API program where myOtim_system is
callable from python function. The module is listed below -
static PyObject *
myOptim_system(PyObject *self, PyObject *args)
{
const char *command;
double u0, v0, u1, v1, u2, v2, u3, v3;
int
--
http://mail.python.org/mailman/listinfo/python-list
#! rnews 2494
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wns13feed!worldnet.att.net!12.120.4.37!attcg2!ip.att.net!xyzzy!nntp
From: Jeff Sandys [EMAIL PROTECTED]
Subject: Re: Delete first line
#! rnews 1106
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wns13feed!worldnet.att.net!12.120.4.37!attcg2!ip.att.net!xyzzy!nntp
From: Jeff Sandys [EMAIL PROTECTED]
Subject: Re: Delete first line
Hey,
I'm trying to compile a version of Python on an SGI
machine that is running IRIX 6.5. When I run the configure option for
version 2.4 I get this error:
configure: WARNING: stropts.h: present but cannot
be compiledconfigure: WARNING: stropts.h: check for
missing prerequisite
Hey,
I'm trying to compile python 2.4 on an SGI
machine. The configure program shot back this error and told me to post it
to the Python lists. Anyone know what's going on?
configure: WARNING: stropts.h: present but cannot
be compiledconfigure: WARNING: stropts.h: check for
missing
Subscribe
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
From: Ran Libeskind-Hadas (via the vacation program)
Subject: Your e-mail
This message was generated automatically in response to your e-mail.
I will be traveling and away from my e-mail until Tuesday, December 28.
I will respond to your e-mail when I return.
Thank you,
Ran
--
http
Thanks for the help. This is the final script:
#!/usr/bin/env python
import os
import sys
import time
import string
import pexpect
import commands
# Test if the words of list2 elements appear in any order in list1 elements
# disregarding case and parens
# Reference list
list1 = [a b C (D), D A
Mark Devine wrote:
the trouble is it throws up the following error for set:
$ ./test.py
Traceback (most recent call last):
File ./test.py, line 23, in ?
reflist = [normalize(element) for element in list1]
File ./test.py, line 20, in normalize
return set(text.split())
NameError: global
Thanks. This version is the version that comes with cygwin. They must be behind.
Steven Bethard [EMAIL PROTECTED] wrote:
Mark Devine wrote:
the trouble is it throws up the following error for set:
$ ./test.py
Traceback (most recent call last):
File ./test.py, line 23, in ?
I got the script working. Thanks for all your help everyone. Trouble is its not
showing the correct results. Here is the script and results:
#!/usr/bin/env python
import os
import sys
import time
import string
import pexpect
import commands
from sets import Set as set
# Test if the words of
If I use:
if el.issubset(testelement):
I get a closer anwser but the brackets cause a problem. They are optional in
the test list so (D) in the test list is equal to D or (D) in the reference
list.
Mark Devine [EMAIL PROTECTED] wrote:
I got the script working. Thanks for all your help
Mark Devine wrote:
I got the script working. Thanks for all your help everyone. Trouble is
its not showing the correct results. Here is the script and results:
In my book it is not working then.
def normalize(text, unwanted = (), table =
Mark Devine wrote:
I got the script working. Thanks for all your help everyone. Trouble is its not
showing the correct results. Here is the script and results:
Well, that's a pretty unusual interpretation of the word working :-)
[...]
I see from later postings you are getting closer to an
I got this working now. Thanks everybody for your help.
_
Sign up for eircom broadband now and get a free two month trial.*
Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer
---BeginMessage---
Happy to help. Pass it
Hi
I'm brand new to python and I was wondering if anybody knew of a easy way to
change every character in a list into its lower case form.
The list is like so:
commands = ['CLASS-MAP MATCH-ALL cmap1', 'MaTch Ip AnY', 'CLASS-map Match-Any
cmap2', 'MaTch AnY', 'Policy-map policy1', 'Class
-any
cmap2', 'match any', 'policy-map policy1', 'class cmap1', 'policy-map
policy2', 'service-policy policy1', 'class cmap2']
Best,
Brian vdB
PS No subject is only marginally better than HELP!! ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Mark Devine wrote:
Sorry for not putting a subject in the last e-mail. The function lower suited
my case exactly. Here however is my main problem:
Given that my new list is :
[class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2',
'match any', 'policy-map policy1', 'class cmap1
Mark Devine [EMAIL PROTECTED] writes:
Sorry for not putting a subject in the last e-mail. The function lower suited
my case exactly. Here however is my main problem:
Given that my new list is :
[class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2',
'match any', 'policy
:
Sorry for not putting a subject in the last e-mail. The function lower suited
my case exactly. Here however is my main problem:
Given that my new list is :
[class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2',
'match any', 'policy-map policy1', 'class cmap1', 'policy-map
of the first list appear in any order within any element of the second
list I want a match but if any of the words are missing then there is no match.
There are far more elements in list 2 than in list 1.
Steve Holden [EMAIL PROTECTED] wrote:
Mark Devine wrote:
Sorry for not putting a subject
Steve Holden [EMAIL PROTECTED] writes:
Mark Devine wrote:
Actually what I want is element 'class-map match-all cmap1' from list 1 to
match 'class-map cmap1 (match-all)' or 'class-map cmap1 mark match-all done'
in list 2 but not to match 'class-map cmap1'.
Each element in both lists have
Helpful subjects help
commands = [c.lower() for c in commands]
--
Regards,
Diez B. Roggisch
--
http://mail.python.org/mailman/listinfo/python-list
Sorry for not putting a subject in the last e-mail. The function lower suited
my case exactly. Here however is my main problem:
Given that my new list is :
[class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2',
'match any', 'policy-map policy1', 'class cmap1', 'policy-map
: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Question
Date: Mon, 13 Dec 2004 11:39:13 +0530
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0016=_NextPart_000_0016
X-Priority: 3
X-MSMail-Priority: Normal
X-Spam-Filtered: 0631cd96faabc64bd1deb3fa09f65716
X
501 - 531 of 531 matches
Mail list logo