Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.

This commit is contained in:
Windel Bouwman
2019-08-14 17:48:54 +02:00
parent 11cbf556e5
commit d06dec77ea
42 changed files with 477 additions and 418 deletions

View File

@@ -81,7 +81,7 @@ impl PyCodeRef {
}
pub fn init(context: &PyContext) {
extend_class!(context, &context.code_type, {
extend_class!(context, &context.types.code_type, {
"__new__" => context.new_rustfunc(PyCodeRef::new),
"__repr__" => context.new_rustfunc(PyCodeRef::repr),