Hi
I have a large code base that was written in python 2.4. I want to migrate
to python 2.6. Are there any tools that will aid me in this migration?
Thanks
A
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I wonder if someone could point me in the right direction. I used the
following code to access gmail but I got a
urllib2.URLError:
error when I ran it. I have included the Traceback
import twill, string, os
b=twill.commands.get_browser()
b.set_agent_string("Mozilla/5.0 (Windows; U; Wi
quot;Re: Contents of Python-list digest..."Today's Topics: 1. Re: Problems wth os.stat().st_mtime on Mac (Michael Glassford)
2. Re: Help with ConfigParser (TonyHa) 3. regular expressions in the pexpect module for python (Mark Devine) 4. commands.getstatusoutput result is not com
HiI wonder if you can help me. I am using pexpect with python to access remote machines and run commands on them. I pass commands into code like so:def cmd(self, cmd): pp=[ "|", "]", "[", "(", ")", "$", "?", "*", ".", ":"]
expcmd=cmd for element in pp: expcmd=expcmd
it on.
regards
Steve
Mark Devine wrote:
I got it working correctly now thanks. I was on the right track it was a subset not a superset that was required in the end and all has worked out fine for me. Thank you for all your help
Steve Holden <[EMAIL PROTECTED]> wrote:
Mark Devine wrote:
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 workin
x27;]), Set(['A', 'B', 'E'])]
A B C D False
A B D True
A E F False
A (E) B False
A B True
E A B True
The results should be:
> A B C D True
> A B D True
> A E F False
> A (E) B True
> A B False
> E A B True
Michael Spencer <[EMAIL PROTECTED]&
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
omplete or do I need to call built in
functions in a different way?
$ python
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
Michael Spencer <[
If all the words of any
element 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:
>
&g
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 polic
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 cmap1'
12 matches
Mail list logo