You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Src/IronPython.Modules/_functools.cs
+37-29Lines changed: 37 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -74,12 +74,11 @@ public class partial : IWeakReferenceable {
74
74
privateconststring_defaultDoc="partial(func, *args, **keywords) - new function with partial application\n of the given arguments and keywords.\n";
75
75
76
76
privatereadonlyCodeContext/*!*/_context;// code context from the caller who created us
77
-
privatereadonlyobject/*!*/_function;// the callable function to dispatch to
78
-
privatereadonlyobject[]/*!*/_args;// the initially provided arguments
79
-
privatereadonlyIDictionary<object,object>_keywordArgs;// the initially provided keyword arguments or null
77
+
privateobject?[]/*!*/_args;// the initially provided arguments
78
+
privateIDictionary<object,object?>_keywordArgs;// the initially provided keyword arguments
80
79
81
-
privateCallSite<Func<CallSite,CodeContext,object,object[],IDictionary<object,object>,object>>?_dictSite;// the dictionary call site if ever called w/ keyword args
82
-
privateCallSite<Func<CallSite,CodeContext,object,object[],object>>?_splatSite;// the position only call site
80
+
privateCallSite<Func<CallSite,CodeContext,object,object?[],IDictionary<object,object?>,object>>?_dictSite;// the dictionary call site if ever called w/ keyword args
81
+
privateCallSite<Func<CallSite,CodeContext,object,object?[],object>>?_splatSite;// the position only call site
83
82
privatePythonDictionary?_dict;// dictionary for storing extra attributes
84
83
privateWeakRefTracker?_tracker;// tracker so users can use Python weak references
#suite.addTest(test.test_functools.TestPartialCSubclass('test_setstate_refcount')) # AttributeError: 'PartialSubclass' object has no attribute '__setstate__'
71
-
#suite.addTest(test.test_functools.TestPartialCSubclass('test_weakref')) # AssertionError: ReferenceError not raised by getattr
#suite.addTest(test.test_functools.TestTotalOrdering('test_total_ordering_no_overwrite')) # ValueError: must define at least one ordering operation: < > <= >=
0 commit comments