Message4882

Author arianepaola
Recipients arianepaola
Date 2009-07-04.00:36:52
SpamBayes Score 1.5666758e-06
Marked as misclassified No
Message-id <1246667813.69.0.0331619340821.issue1396@psf.upfronthosting.co.za>
In-reply-to
Content
Reference failure

ariane@rainbow:/tmp$ touch foo.txt
ariane@rainbow:/tmp$ chmod 644 foo.txt 
ariane@rainbow:/tmp$ jython bug.py 
reference failure chmod() takes exactly 2 arguments (3 given)
ariane@rainbow:/tmp$ rm foo.txt 
ariane@rainbow:/tmp$ touch foo.txt
ariane@rainbow:/tmp$ chmod 644 foo.txt 
ariane@rainbow:/tmp$ ls -la foo.txt 
-rw-r--r-- 1 ariane ariane 0 2009-07-02 23:54 foo.txt
ariane@rainbow:/tmp$ python bug.py 
ariane@rainbow:/tmp$ ls -la foo.txt 
-rwxrwxrwx 1 ariane ariane 0 2009-07-02 23:54 foo.txt

import os

class foo(object):
    _os_chmod = os.chmod

    def __init__(self):
        self._os_chmod("/tmp/foo.txt", 0777)

try:
    test = foo()
except TypeError, e:
    print "reference failure", e
History
Date User Action Args
2009-07-04 00:36:53arianepaolasetmessageid: <1246667813.69.0.0331619340821.issue1396@psf.upfronthosting.co.za>
2009-07-04 00:36:53arianepaolasetrecipients: + arianepaola
2009-07-04 00:36:53arianepaolalinkissue1396 messages
2009-07-04 00:36:52arianepaolacreate