Module pyinotify :: Class ProcINotify
[hide private]
[frames] | no frames]

Class ProcINotify

source code


Access (read, write) inotify's variables through /proc/sys/. Note that usually it requires administrator rights to update them.

Examples:

Instance Methods [hide private]
 
__init__(self, attr)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int
get_val(self)
Gets attribute's value.
source code
 
set_val(self, nval)
Sets new attribute's value.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
int value
Gets attribute's value.

Inherited from object: __class__

Method Details [hide private]

__init__(self, attr)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_val(self)

source code 

Gets attribute's value.

Returns: int
stored value.
Raises:
  • IOError - if corresponding file in /proc/sys cannot be read.

set_val(self, nval)

source code 

Sets new attribute's value.

Parameters:
  • nval (int) - replaces current value by nval.
Raises:
  • IOError - if corresponding file in /proc/sys cannot be written.

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

value

Gets attribute's value.

Get Method:
get_val(self) - Gets attribute's value.
Set Method:
set_val(self, nval) - Sets new attribute's value.
Type:
int