Message4882
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 |
|
Date |
User |
Action |
Args |
2009-07-04 00:36:53 | arianepaola | set | messageid: <1246667813.69.0.0331619340821.issue1396@psf.upfronthosting.co.za> |
2009-07-04 00:36:53 | arianepaola | set | recipients:
+ arianepaola |
2009-07-04 00:36:53 | arianepaola | link | issue1396 messages |
2009-07-04 00:36:52 | arianepaola | create | |
|