remove some redundant explicit doc links
This commit is contained in:
parent
48bcf9c76f
commit
f0f15edc4e
|
@ -1129,7 +1129,7 @@ impl Sysconfigdata {
|
||||||
/// The sysconfigdata is simply a dictionary containing all the build time variables used for the
|
/// The sysconfigdata is simply a dictionary containing all the build time variables used for the
|
||||||
/// python executable and library. This function necessitates a python interpreter on the host
|
/// python executable and library. This function necessitates a python interpreter on the host
|
||||||
/// machine to work. Here it is read into a `Sysconfigdata` (hash map), which can be turned into an
|
/// machine to work. Here it is read into a `Sysconfigdata` (hash map), which can be turned into an
|
||||||
/// [`InterpreterConfig`](InterpreterConfig) using
|
/// [`InterpreterConfig`] using
|
||||||
/// [`from_sysconfigdata`](InterpreterConfig::from_sysconfigdata).
|
/// [`from_sysconfigdata`](InterpreterConfig::from_sysconfigdata).
|
||||||
pub fn parse_sysconfigdata(sysconfigdata_path: impl AsRef<Path>) -> Result<Sysconfigdata> {
|
pub fn parse_sysconfigdata(sysconfigdata_path: impl AsRef<Path>) -> Result<Sysconfigdata> {
|
||||||
let sysconfigdata_path = sysconfigdata_path.as_ref();
|
let sysconfigdata_path = sysconfigdata_path.as_ref();
|
||||||
|
|
|
@ -8,8 +8,7 @@ use std::os::raw::c_double;
|
||||||
/// Represents a Python `float` object.
|
/// Represents a Python `float` object.
|
||||||
///
|
///
|
||||||
/// You can usually avoid directly working with this type
|
/// You can usually avoid directly working with this type
|
||||||
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
|
/// by using [`ToPyObject`] and [`extract`](PyAny::extract)
|
||||||
/// and [`extract`](PyAny::extract)
|
|
||||||
/// with `f32`/`f64`.
|
/// with `f32`/`f64`.
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct PyFloat(PyAny);
|
pub struct PyFloat(PyAny);
|
||||||
|
|
|
@ -86,9 +86,9 @@ impl PyModule {
|
||||||
/// Returns `PyErr` if:
|
/// Returns `PyErr` if:
|
||||||
/// - `code` is not syntactically correct Python.
|
/// - `code` is not syntactically correct Python.
|
||||||
/// - Any Python exceptions are raised while initializing the module.
|
/// - Any Python exceptions are raised while initializing the module.
|
||||||
/// - Any of the arguments cannot be converted to [`CString`](std::ffi::CString)s.
|
/// - Any of the arguments cannot be converted to [`CString`]s.
|
||||||
///
|
///
|
||||||
/// # Example: bundle in a file at compile time with [`include_str!`][1]:
|
/// # Example: bundle in a file at compile time with [`include_str!`][std::include_str]:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use pyo3::prelude::*;
|
/// use pyo3::prelude::*;
|
||||||
|
@ -105,7 +105,7 @@ impl PyModule {
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// # Example: Load a file at runtime with [`std::fs::read_to_string`][2].
|
/// # Example: Load a file at runtime with [`std::fs::read_to_string`].
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use pyo3::prelude::*;
|
/// use pyo3::prelude::*;
|
||||||
|
@ -123,9 +123,6 @@ impl PyModule {
|
||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
|
||||||
/// [1]: std::include_str
|
|
||||||
/// [2]: std::fs::read_to_string
|
|
||||||
pub fn from_code<'p>(
|
pub fn from_code<'p>(
|
||||||
py: Python<'p>,
|
py: Python<'p>,
|
||||||
code: &str,
|
code: &str,
|
||||||
|
|
Loading…
Reference in New Issue