Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • pycqa/redbaron
1 result
Show changes
Commits on Source (4)
Loading
Loading
@@ -312,6 +312,14 @@ expect the number of spaces to add or to remove as first argument.
.to_python()
------------
 
.. WARNING::
Since RedBaron calls ast.literal_eval it can only parse the python code
parsed by the python version you are using.
For example if you are using a python version inferior to 3.6, `to_python`
will crash on `100_000` because it is only supported since python 3.6
This method safely evaluate the current selected nodes. It wraps
`ast.literal_eval
<https://docs.python.org/2/library/ast.html#ast.literal_eval>`_, therefor, and
Loading
Loading