@@ -155,7 +155,7 @@ pub struct PyContext {
155
155
156
156
fn _nothing ( ) -> PyObjectRef {
157
157
PyObject {
158
- payload : PyObjectPayload :: None ,
158
+ payload : PyObjectPayload :: NoPayload ,
159
159
typ : None ,
160
160
}
161
161
. into_ref ( )
@@ -223,14 +223,14 @@ impl PyContext {
223
223
let exceptions = exceptions:: ExceptionZoo :: new ( & type_type, & object_type, & dict_type) ;
224
224
225
225
let none = PyObject :: new (
226
- PyObjectPayload :: None ,
226
+ PyObjectPayload :: NoPayload ,
227
227
create_type ( "NoneType" , & type_type, & object_type, & dict_type) ,
228
228
) ;
229
229
230
- let ellipsis = PyObject :: new ( PyObjectPayload :: None , ellipsis_type. clone ( ) ) ;
230
+ let ellipsis = PyObject :: new ( PyObjectPayload :: NoPayload , ellipsis_type. clone ( ) ) ;
231
231
232
232
let not_implemented = PyObject :: new (
233
- PyObjectPayload :: NotImplemented ,
233
+ PyObjectPayload :: NoPayload ,
234
234
create_type ( "NotImplementedType" , & type_type, & object_type, & dict_type) ,
235
235
) ;
236
236
@@ -1484,8 +1484,7 @@ pub enum PyObjectPayload {
1484
1484
name : String ,
1485
1485
scope : ScopeRef ,
1486
1486
} ,
1487
- None ,
1488
- NotImplemented ,
1487
+ NoPayload ,
1489
1488
Class {
1490
1489
name : String ,
1491
1490
dict : RefCell < PyAttributes > ,
@@ -1531,8 +1530,7 @@ impl fmt::Debug for PyObjectPayload {
1531
1530
ref object,
1532
1531
} => write ! ( f, "bound-method: {:?} of {:?}" , function, object) ,
1533
1532
PyObjectPayload :: Module { .. } => write ! ( f, "module" ) ,
1534
- PyObjectPayload :: None => write ! ( f, "None" ) ,
1535
- PyObjectPayload :: NotImplemented => write ! ( f, "NotImplemented" ) ,
1533
+ PyObjectPayload :: NoPayload => write ! ( f, "NoPayload" ) ,
1536
1534
PyObjectPayload :: Class { ref name, .. } => write ! ( f, "class {:?}" , name) ,
1537
1535
PyObjectPayload :: Instance { .. } => write ! ( f, "instance" ) ,
1538
1536
PyObjectPayload :: RustFunction { .. } => write ! ( f, "rust function" ) ,
0 commit comments