Re: questions about programming styles

2007-05-20 Thread Arvind Singh
On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > which is the better way to calculate the value of attributes of a class ? > for example: > > (A) > def cal_attr(self, args): > #do some calculations > self.attr = calculated_value > and then if the vlue of attribute is

Re: Killing A Process By PID

2007-09-20 Thread Arvind Singh
file('/var/lock/Application.lock', 'w').write(str(os.getpid())) > > Which to be honest appears to run just fine, when I look in that file it > always contains the correct process ID, for instance, 3419 or something like > that. > I honestly doubt that. The I/O is buffered and you need to flush()/

Re: Killing A Process By PID

2007-09-22 Thread Arvind Singh
> file('/var/lock/Application.lock', 'w').write(str(os.getpid())) > > > > Which to be honest appears to run just fine, when I look in that file > > it always contains the correct process ID, for instance, 3419 or something > > like that. > > > I honestly doubt that. The I/O is buffered and you nee

Re: HOT!!!PYTHON DEVELOPER REQUIRED @ ADOBE SYSTEMS

2007-09-29 Thread Arvind Singh
THANKS for introducing me to Python "applets". Applications --> Applets --> Apploids --> Applcainers --> ... --> Approcities Sorry, couldn't resist. On 9/27/07, Recruiter-Adobe <[EMAIL PROTECTED]> wrote: > > Hi PYTHON DEVELOPERS, > > ADOBE SYSTEMS is looking for a PYTHON DEVELOPER who can trou