Пример #1
0
 public PythonTuple __reduce__(CodeContext context)
 {
     return(PythonTuple.MakeTuple(
                DynamicHelpers.GetPythonType(this),
                PythonTuple.MakeTuple(_items.GetItems()),
                GetType() == typeof(SetCollection) ? null : ObjectOps.ReduceProtocol0(context, this)[2]
                ));
 }
Пример #2
0
 public PythonTuple __reduce__(CodeContext /*!*/ context)
 {
     return(PythonTuple.MakeTuple(
                DynamicHelpers.GetPythonType(this),
                PythonTuple.MakeTuple(
                    PythonOps.MakeString(this),
                    "latin-1"
                    ),
                GetType() == typeof(Bytes) ? null : ObjectOps.ReduceProtocol0(context, this)[2]
                ));
 }