diff options
author | Sylvain <syt@logilab.fr> | 2007-03-01 10:31:26 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2007-03-01 10:31:26 +0100 |
commit | f0d8668ea754812ed20d11dff03a8a72b807ecf6 (patch) | |
tree | 9477dd13a6c3e651ba1d3912e5b2b645d6b83720 /doc | |
parent | 4a8ff7765cecdb9b3eb6a9bbc4647ee4e30e021c (diff) | |
download | pylint-f0d8668ea754812ed20d11dff03a8a72b807ecf6.tar.gz |
base rpython doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rpython.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/rpython.txt b/doc/rpython.txt new file mode 100644 index 0000000..cba843d --- /dev/null +++ b/doc/rpython.txt @@ -0,0 +1,30 @@ +Since 0.17, pylint contains a Restricted python checker (rpython). +It contains the following checks: + +* unavailable keywords / builtins +* multiple inheritance +* mixing multiple types +* non homogeneous list +* global modification +* negative slice index +* using %r in format string +* warn about special method that are not implicitly called + +By default the rpython checker is deactivated. Activate it using : + + pylint --rpython-mode -rn ... + +(-rn is disabling statistics reports) or + + pylint --enable-checker=rpython ... + +to get only rpython checks (though in this case you won't be warn about +regular errors). + +Another interesting thing is the rpython dedicated testing framework, +testing that checked things are actually not translatable. I've the idea +that this may be useful to generate some kind of documentation for +features supported by rpython or not, and help spread information when a +feature that wasn't supported is introduced in rpython. That's another +story though... If you're interested, check +pylint/test/test_rpycompilation.py. |