Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-error/src/constants.rs
6939 views
1
//! Constant that help with creating error messages dependent on the host language.
2
#[cfg(feature = "python")]
3
pub static TRUE: &str = "True";
4
#[cfg(feature = "python")]
5
pub static FALSE: &str = "False";
6
7
#[cfg(not(feature = "python"))]
8
pub static TRUE: &str = "true";
9
#[cfg(not(feature = "python"))]
10
pub static FALSE: &str = "false";
11
12
#[cfg(not(feature = "python"))]
13
pub static LENGTH_LIMIT_MSG: &str =
14
"Polars' maximum length reached. Consider compiling with 'bigidx' feature.";
15
#[cfg(feature = "python")]
16
pub static LENGTH_LIMIT_MSG: &str =
17
"Polars' maximum length reached. Consider installing 'polars-u64-idx'.";
18
19