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
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()/
> 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
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