/usr/lib/x86_64-linux-gnu/pyotherside/tests/test_wrapped/test_wrapped.py is in pyotherside-tests 1.4.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # -*- coding: utf-8 -*-
class Foo(object):
def __init__(self, name):
print('new Foo(', name, ')')
self.name = name
self.bar = 4711
def methodman(self, something):
return 'I came to bring {}'.format(something)
def __del__(self):
print('__del__ called on', self.name)
def get_foo():
print('get_foo()')
return Foo('Hello World!')
def set_foo(foo):
print('set_foo(', foo, ')')
return foo.name
|