If vim is just an unfortunate example then it might be possible but I think
we need to know a bit more about what exactly you are trying to do.
> It's actually a stand alone program; which opens up a $EDITOR; an
> then prints to stdout the results of some db munging. ...
> what I'm wanting to g
On Thu, May 28, 2009 at 5:41 PM, Allen Fowler wrote:
> How should the mapping between the CanonicalFlavor('Vanilla') object and
> ManufAFlavor('Vanilla') / ManufBFlavor('Vanilla') objects be handled.
Create a dict. The keys are either CannonicalFlavor objects or just
strings containing the cano
On Friday 05 June 2009 06:18, Norman Khine wrote:
> Hello,
> What is the way to group each value so that I get a list, from a string
> like:
>
> dir = '/expert/forum/expert/expert'
> list = ['/expert', '/forum', '/expert', '/expert']
>
> I've tried:
> >>> dir = '/expert/forum'
> >>> dir.split('/')
On Fri, Jun 5, 2009 at 7:18 AM, Norman Khine wrote:
> Hello,
> What is the way to group each value so that I get a list, from a string like:
>
> dir = '/expert/forum/expert/expert'
> list = ['/expert', '/forum', '/expert', '/expert']
Here is one way using re.split():
In [28]: import re
In [29]: [
On Fri, Jun 5, 2009 at 6:18 AM, Norman Khine wrote:
> Hello,
> What is the way to group each value so that I get a list, from a string
> like:
>
> dir = '/expert/forum/expert/expert'
> list = ['/expert', '/forum', '/expert', '/expert']
>
> I've tried:
> >>> dir = '/expert/forum'
> >>> dir.split('
Hello,
What is the way to group each value so that I get a list, from a string like:
dir = '/expert/forum/expert/expert'
list = ['/expert', '/forum', '/expert', '/expert']
I've tried:
>>> dir = '/expert/forum'
>>> dir.split('/')
['', 'expert', 'forum']
>>> dir.replace("/expert","")
'/forum'
>>> d
"Chris Mueller" wrote
This would be simple; if I did not need to interact with my sub-program.
I
currently have..
pid = os.fork()
if not pid:
os.execvp(program, (program,) + tuple(arguments))
os.wait()[0]
This works fine; lets me interact with "vim" fine; and return to the
python
script
can you or tavis or one of the cheetah masters please show us how to use
cheetah from webpy
the only useful thing webpy cheetah.py does is replace the #include with the
content of the files
Can you share a simple snippet/cookbook example on how to hook up cheetah
from other frameworks such as djan