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
|
||||
/// 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
|
||||
/// [`InterpreterConfig`](InterpreterConfig) using
|
||||
/// [`InterpreterConfig`] using
|
||||
/// [`from_sysconfigdata`](InterpreterConfig::from_sysconfigdata).
|
||||
pub fn parse_sysconfigdata(sysconfigdata_path: impl AsRef<Path>) -> Result<Sysconfigdata> {
|
||||
let sysconfigdata_path = sysconfigdata_path.as_ref();
|
||||
|
|
|
@ -8,8 +8,7 @@ use std::os::raw::c_double;
|
|||
/// Represents a Python `float` object.
|
||||
///
|
||||
/// You can usually avoid directly working with this type
|
||||
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
|
||||
/// and [`extract`](PyAny::extract)
|
||||
/// by using [`ToPyObject`] and [`extract`](PyAny::extract)
|
||||
/// with `f32`/`f64`.
|
||||
#[repr(transparent)]
|
||||
pub struct PyFloat(PyAny);
|
||||
|
|
|
@ -86,9 +86,9 @@ impl PyModule {
|
|||
/// Returns `PyErr` if:
|
||||
/// - `code` is not syntactically correct Python.
|
||||
/// - 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
|
||||
/// 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
|
||||
/// use pyo3::prelude::*;
|
||||
|
@ -123,9 +123,6 @@ impl PyModule {
|
|||
/// Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// [1]: std::include_str
|
||||
/// [2]: std::fs::read_to_string
|
||||
pub fn from_code<'p>(
|
||||
py: Python<'p>,
|
||||
code: &str,
|
||||
|
|
Loading…
Reference in New Issue