Re: easy question, how to double a variable

2009-09-22 Thread Mahmoud Abdelkader
http://codingforums.com/showthread.php?s=e26b8b0aabc69745ef24a855b1a0fc83&t=177529 It seems that this dude really is looking for how to double a variable... """ hi looking for help catching up in a class and overall to get me better than i am now. I can pay you by the week or per hour. everythin

Re: creating my own logwatch in python

2009-07-17 Thread Mahmoud Abdelkader
A few code critiques: - Your code is not very help friendly because it can not be run, so I have to deadlist debug it. - There are various syntax errors in the code: - for example: file is not defined when you invoke tail(file) - You are overshadowing a built-in type 'file' by that name,

Re: proposal: add setresuid() system call to python

2009-07-17 Thread Mahmoud Abdelkader
Why don't you write a python extension module? This is a perfect opportunity for that. -- mahmoud mack abdelkader http://blog.mahmoudimus.com/ On Fri, Jul 17, 2009 at 4:01 PM, > wrote: > Hello, > > Historically, I have used scripting languages like python for typical > uses, but they tend to

A multi-threaded file searcher for processing large text files

2009-07-17 Thread Mahmoud Abdelkader
ffset. Then I can iterate over that sequentially. I think that would be a trivial parallel optimization. Thoughts? Comments? Thanks very much, Mahmoud Abdelkader mahm...@linux.com http://blog.mahmoudimus.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: one-time factory in python for an experienced java guy

2009-07-14 Thread Mahmoud Abdelkader
What Paul was trying to elaborate on is that have your customers or whomever will use this implement their own generator protocol to generate whatever number format they need. Paul just gave you an example with itertools.count(), where it is an infinite generator that yields count+1 every time. Re