comparison src/python_tb.rs @ 0:211b0df72e64

Hello world!
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 29 May 2016 19:15:02 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:211b0df72e64
1 extern crate cpython;
2
3 use cpython::{Python, PyErr};
4
5 pub fn traceback(err: PyErr) {
6 let gil = Python::acquire_gil();
7 let py = gil.python();
8 err.print(py);
9 }