pub fn version(self) -> &'p str {
        unsafe {
            CStr::from_ptr(ffi::Py_GetVersion() as *const c_char)
                .to_str()
                .expect("Python version string not UTF-8")
        }
    }
/// Gets the running Python interpreter version as a string.
///
/// This is a wrapper around the ffi call Py_GetVersion.
///
/// # Examples
/// ```rust
/// # use pyo3::Python;
/// Python::with_gil(|py| {
///     // The full string could be, for example:
///     // "3.0a5+ (py3k:63103M, May 12 2008, 00:53:55) \n[GCC 4.2.3]"
///     assert!(py.version().starts_with("3."));
/// });
/// ```
Gets the running Python interpreter version as a string.
This is a wrapper around the ffi call Py_GetVersion.
Gets the running Python interpreter version as a string . This is a wrapper around the ffi call Py_GetVersion .
pub fn version(self) -> &'p str {
        unsafe {
            CStr::from_ptr(ffi::Py_GetVersion() as *const c_char)
                .to_str()
                .expect("Python version string not UTF-8")
        }
    }
pub fn version ( self ) -> & ' p str { unsafe { CStr :: from_ptr ( ffi :: Py_GetVersion ( ) as * const c_char ) . to_str ( ) . expect ( " " ) } }
Gets the running Python interpreter version as a string.
Gets the running Python interpreter version as a string .
self
examples
None
use pyo3::python;
None