Skip to main content

rustpython_vm/builtins/
mod.rs

1//! This package contains the python basic/builtin types
2//! 7 common PyRef type aliases are exposed - [`PyBytesRef`], [`PyDictRef`], [`PyIntRef`], [`PyListRef`], [`PyStrRef`], [`PyTypeRef`], [`PyTupleRef`]
3//! Do not add more PyRef type aliases. They will be rare enough to use directly `PyRef<T>`.
4
5pub(crate) mod asyncgenerator;
6pub use asyncgenerator::PyAsyncGen;
7pub(crate) mod builtin_func;
8pub(crate) mod bytearray;
9pub use bytearray::PyByteArray;
10pub(crate) mod bytes;
11pub use bytes::{PyBytes, PyBytesRef};
12pub(crate) mod capsule;
13pub use capsule::PyCapsule;
14pub(crate) mod classmethod;
15pub use classmethod::PyClassMethod;
16pub(crate) mod code;
17pub use code::PyCode;
18pub(crate) mod complex;
19pub use complex::PyComplex;
20pub(crate) mod coroutine;
21pub use coroutine::PyCoroutine;
22pub(crate) mod dict;
23pub use dict::{PyDict, PyDictRef};
24pub(crate) mod enumerate;
25pub use enumerate::PyEnumerate;
26pub(crate) mod filter;
27pub use filter::PyFilter;
28pub(crate) mod float;
29pub use float::PyFloat;
30pub(crate) mod frame;
31pub(crate) mod frame_locals_proxy;
32pub use frame_locals_proxy::FrameLocalsProxy;
33pub(crate) mod function;
34pub use function::{PyBoundMethod, PyFunction};
35pub(crate) mod generator;
36pub use generator::PyGenerator;
37pub(crate) mod genericalias;
38pub use genericalias::PyGenericAlias;
39pub(crate) mod getset;
40pub use getset::PyGetSet;
41pub(crate) mod int;
42pub use int::{PyInt, PyIntRef};
43pub(crate) mod interpolation;
44pub use interpolation::PyInterpolation;
45pub(crate) mod iter;
46pub use iter::*;
47pub(crate) mod list;
48pub use list::{PyList, PyListRef};
49pub(crate) mod map;
50pub use map::PyMap;
51pub(crate) mod mappingproxy;
52pub use mappingproxy::PyMappingProxy;
53pub(crate) mod memory;
54pub use memory::PyMemoryView;
55pub(crate) mod module;
56pub use module::{PyModule, PyModuleDef, PyModuleSlots};
57pub(crate) mod namespace;
58pub use namespace::PyNamespace;
59pub(crate) mod object;
60pub use object::PyBaseObject;
61pub use object::{object_generic_set_dict, object_get_dict};
62pub(crate) mod property;
63pub use property::PyProperty;
64#[path = "bool.rs"]
65pub(crate) mod bool_;
66pub use bool_::PyBool;
67#[path = "str.rs"]
68pub(crate) mod pystr;
69pub use pystr::{PyStr, PyStrInterned, PyStrRef, PyUtf8Str, PyUtf8StrInterned, PyUtf8StrRef};
70#[path = "super.rs"]
71pub(crate) mod super_;
72pub use super_::PySuper;
73#[path = "type.rs"]
74pub(crate) mod type_;
75pub use type_::{PyType, PyTypeRef};
76pub(crate) mod range;
77pub use range::PyRange;
78pub(crate) mod set;
79pub use set::{PyFrozenSet, PySet};
80pub(crate) mod singletons;
81pub use singletons::{PyNone, PyNotImplemented};
82pub(crate) mod slice;
83pub use slice::{PyEllipsis, PySlice};
84pub(crate) mod staticmethod;
85pub use staticmethod::PyStaticMethod;
86pub(crate) mod template;
87pub use template::{PyTemplate, PyTemplateIter};
88pub(crate) mod traceback;
89pub use traceback::PyTraceback;
90pub(crate) mod tuple;
91pub use tuple::{PyTuple, PyTupleRef};
92pub(crate) mod weakproxy;
93pub use weakproxy::{PyWeakCallableProxy, PyWeakProxy, WeakProxyNewArgs};
94pub(crate) mod weakref;
95pub use weakref::PyWeak;
96pub(crate) mod zip;
97pub use zip::PyZip;
98#[path = "union.rs"]
99pub(crate) mod union_;
100pub use union_::{PyUnion, make_union};
101pub mod descriptor;
102pub use descriptor::{
103    MemberAccess, MemberKind, PyDescriptorOwned, PyMemberDef as DescriptorMemberDef,
104    PyMemberDescriptor, PyMemberFlags,
105};
106
107pub use float::float_from_string as parse_float_from_string;
108pub use float::try_to_bigint as try_f64_to_bigint;
109pub use int::try_to_float as try_bigint_to_f64;
110
111pub use crate::exceptions::types::*;