1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Standard Library Method Code Generation
//!
//! This module contains extracted stdlib method handlers from expr_gen.rs.
//! Each Python stdlib module gets its own Rust module for testability.
//!
//! ## Architecture
//!
//! Each module exports a `convert_*_method` function that:
//! - Takes method name, arguments, and context
//! - Returns `Result<Option<syn::Expr>>`
//! - Has 100% test coverage via EXTREME TDD
//!
//! ## Modules
//!
//! - `builtin_functions` - Python builtin functions (all, any, zip, etc.)
//! - `functools` - Higher-order functions (reduce, etc.)
//! - `itertools` - Iterator combinatorics (itertools crate)
//! - `json` - JSON serialization (serde_json)
//! - `math` - Mathematical functions (f64 methods)
//! - `os` - Operating system interface (std::env, std::fs)
//! - `pathlib` - Path manipulation (std::path)
//! - `random` - Random number generation (rand crate)
//! - `regex_mod` - Regular expressions (regex crate)
//! - `shutil` - Shell utilities (std::fs)
//! - `string` - String utilities (capwords, etc.)
//! - `time` - Time measurement and manipulation (std::time, chrono)
//! - `warnings` - Warning control (eprintln!)
// Re-exports for convenience
pub use convert_functools_method;
pub use convert_itertools_method;
pub use convert_json_method;
pub use convert_math_method;
pub use convert_os_method;
pub use convert_pathlib_method;
pub use convert_random_method;
pub use convert_re_method;
pub use convert_shutil_method;
pub use convert_string_method;
pub use convert_time_method;
pub use convert_warnings_method;