python-objects 0.0.7

rust crate that implements the architecture of the CPython objects. with this crate you can crate a list with any data type from rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use python::*;

fn main() {
    let mut l = List::new();
    l.append_back(123);
    l.append_back(123);

    let l_repr = repr(&l);
    let l_str = _str(&l);
    let l_len = len(&l);
    // let l_max = max(&l);

    print(l_repr);
    print(l_str);
    print(l_len);
    // print(l_max);
}