Kent Johnson tds.net> writes:
>
> You might want to look at grin which has full-featured recursive
> search including identifying binary files:
> http://pypi.python.org/pypi/grin
>
> Kent
> ___
> Tutor maillist - Tutor python.org
> http://mail.pyth
Title: Signature.html
As I've tried to extend a 2000 line program written by someone else,
I've moved through some interesting territory. I have made enough
changes to the GUI and internal workings to move ahead to the real gold
in making changes. I'm now turning to PIL to actually do the impor
Christopher Spears wrote:
I want to write a script that takes a list of images and renumbers
them with a user supplied number. Here is a solution I came up while
noodling around in the interpreter:
>>> alist = ["frame.0001.tif","frame.0002.tif","frame.0003.tif"]
>>> new_start = 5000
>>> for x i
Sander Sweers wrote:
I do not understand what it is you want to do. Do you want to replace
the old date and time with the new? If so you already do this with
todo[answer] = datevalue, time. Why do you want to use setdefault?
I was confused, I thought it would add another value to the key not
On Sat, Apr 4, 2009 at 3:37 PM, Christopher Spears
wrote:
>
> I want to write a script that takes a list of images and renumbers them with
> a user supplied number. Here is a solution I came up while noodling around
> in the interpreter:
>
alist = ["frame.0001.tif","frame.0002.tif","frame.
On Sat, Apr 4, 2009 at 7:07 AM, Dominique wrote:
> Hello,
>
> I am developing a very small multi-platform app to search for a specific word
> or
> expression in files located in a drive or directory.
> So I need to open files to search for the word.
>
> I read that opening a binary file as a text
2009/4/4 David :
> I put together a todo program here;
> http://linuxcrazy.pastebin.com/f74beaf78
>
> And I am trying to add an option to edit the values which are date and time.
> Below I have gotten this far but now I need some help. looks like my attempt
> to use setdefault will not work. Please
David wrote:
I put together a todo program here;
http://linuxcrazy.pastebin.com/f74beaf78
And I am trying to add an option to edit the values which are date and
time. Below I have gotten this far but now I need some help. looks like
my attempt to use setdefault will not work. Please point me i
I put together a todo program here;
http://linuxcrazy.pastebin.com/f74beaf78
And I am trying to add an option to edit the values which are date and
time. Below I have gotten this far but now I need some help. looks like
my attempt to use setdefault will not work. Please point me in the right
d
I want to write a script that takes a list of images and renumbers them with a
user supplied number. Here is a solution I came up while noodling around in
the interpreter:
>>> alist = ["frame.0001.tif","frame.0002.tif","frame.0003.tif"]
>>> new_start = 5000
>>> for x in alist:
... name, nu
Hello Dominique,
On Sat, Apr 4, 2009 at 6:07 AM, Dominique wrote:
> I am developing a very small multi-platform app to search for a specific word
> or
> expression in files located in a drive or directory.
> So I need to open files to search for the word.
>
> I read that opening a binary file as
Hello,
I am developing a very small multi-platform app to search for a specific word or
expression in files located in a drive or directory.
So I need to open files to search for the word.
I read that opening a binary file as a text file (open(filename, 'r')) may
corrupt the file.
Consequently, b
2009/4/4 Sander Sweers :
Bah, of course you need to open the files writable :-(
This
> outfile = open('/tmp/myoutfile')
> errfile = open('/tmp/myerrfile')
Should be
outfile = open('/tmp/myoutfile', 'w')
errfile =open('/tmp/myerrfile', 'w')
Greets
Sander
___
2009/4/4 dave selby :
> os.popen3('nohup %s/core/kmotion_hkd2.py &> /dev/null &' % kmotion_dir)
>
> becomes ..
>
> subprocess.Popen('nohup %s/core/kmotion_hkd2.py &> /dev/null &' %
> kmotion_dir, shell=True)
>
> all is well except I now get
>
> nohup: appending output to `nohup.out'
>
> on the term
Hi,
I have upgraded to python 2.6 and was getting depreciation warnings
about os.popen3 etc so I changed over to subprocess.
os.popen3('nohup %s/core/kmotion_hkd2.py &> /dev/null &' % kmotion_dir)
becomes ..
subprocess.Popen('nohup %s/core/kmotion_hkd2.py &> /dev/null &' %
kmotion_dir, shell=Tr
15 matches
Mail list logo