| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,6 @@ namespace Python.Runtime | |||
| 10 | 10 | /// <summary> | |
| 11 | 11 | /// The ClassManager is responsible for creating and managing instances | |
| 12 | 12 | /// that implement the Python type objects that reflect managed classes. | |
| 13 | - /// | ||
| 14 | 13 | /// Each managed type reflected to Python is represented by an instance | |
| 15 | 14 | /// of a concrete subclass of ClassBase. Each instance is associated with | |
| 16 | 15 | /// a generated Python type object, whose slots point to static methods | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,14 +9,13 @@ namespace Python.Runtime | |||
| 9 | 9 | /// </summary> | |
| 10 | 10 | /// <remarks> | |
| 11 | 11 | /// ClassManager stores a ConstructorBinding instance in the class's __dict__['Overloads'] | |
| 12 | - /// | ||
| 13 | 12 | /// SomeType.Overloads[Type, ...] works like this: | |
| 14 | 13 | /// 1) Python retreives the Overloads attribute from this ClassObject's dictionary normally | |
| 15 | 14 | /// and finds a non-null tp_descr_get slot which is called by the interpreter | |
| 16 | 15 | /// and returns an IncRef()ed pyHandle to itself. | |
| 17 | 16 | /// 2) The ConstructorBinding object handles the [] syntax in its mp_subscript by matching | |
| 18 | 17 | /// the Type object parameters to a contructor overload using Type.GetConstructor() | |
| 19 | - /// [NOTE: I don't know why method overloads are not searched the same way.] | ||
| 18 | + /// [NOTE: I don't know why method overloads are not searched the same way.] | ||
| 20 | 19 | /// and creating the BoundContructor oject which contains ContructorInfo object. | |
| 21 | 20 | /// 3) In tp_call, if ctorInfo is not null, ctorBinder.InvokeRaw() is called. | |
| 22 | 21 | /// </remarks> | |
@@ -43,12 +42,15 @@ public ConstructorBinding(Type type, IntPtr pyTypeHndl, ConstructorBinder ctorBi | |||
| 43 | 42 | /// selection. | |
| 44 | 43 | /// </summary> | |
| 45 | 44 | /// <param name="op"> PyObject* to a Constructors wrapper </param> | |
| 46 | - /// <param name="instance"> the instance that the attribute was accessed through, | ||
| 47 | - /// or None when the attribute is accessed through the owner </param> | ||
| 45 | + /// <param name="instance"> | ||
| 46 | + /// the instance that the attribute was accessed through, | ||
| 47 | + /// or None when the attribute is accessed through the owner | ||
| 48 | + /// </param> | ||
| 48 | 49 | /// <param name="owner"> always the owner class </param> | |
| 49 | - /// <returns> a CtorMapper (that borrows a reference to this python type and the | ||
| 50 | - /// ClassObject's ConstructorBinder) wrapper. </returns> | ||
| 51 | - /// | ||
| 50 | + /// <returns> | ||
| 51 | + /// a CtorMapper (that borrows a reference to this python type and the | ||
| 52 | + /// ClassObject's ConstructorBinder) wrapper. | ||
| 53 | + /// </returns> | ||
| 52 | 54 | /// <remarks> | |
| 53 | 55 | /// Python 2.6.5 docs: | |
| 54 | 56 | /// object.__get__(self, instance, owner) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -183,9 +183,8 @@ internal unsafe static void ErrorCheck(IntPtr pointer) | |||
| 183 | 183 | } | |
| 184 | 184 | ||
| 185 | 185 | /// <summary> | |
| 186 | - /// Shortcut for (pointer == NULL or ErrorOccurred()) -> throw PythonException | ||
| 186 | + /// Shortcut for (pointer == NULL or ErrorOccurred()) -> throw PythonException | ||
| 187 | 187 | /// </summary> | |
| 188 | - /// Shortcut for (pointer == NULL) -> throw PythonException | ||
| 189 | 188 | internal unsafe static void ErrorOccurredCheck(IntPtr pointer) | |
| 190 | 189 | { | |
| 191 | 190 | if ((pointer == IntPtr.Zero) || Exceptions.ErrorOccurred()) | |
@@ -197,7 +196,6 @@ internal unsafe static void ErrorOccurredCheck(IntPtr pointer) | |||
| 197 | 196 | /// <summary> | |
| 198 | 197 | /// ExceptionMatches Method | |
| 199 | 198 | /// </summary> | |
| 200 | - /// | ||
| 201 | 199 | /// <remarks> | |
| 202 | 200 | /// Returns true if the current Python exception matches the given | |
| 203 | 201 | /// Python object. This is a wrapper for PyErr_ExceptionMatches. | |
@@ -210,7 +208,6 @@ public static bool ExceptionMatches(IntPtr ob) | |||
| 210 | 208 | /// <summary> | |
| 211 | 209 | /// ExceptionMatches Method | |
| 212 | 210 | /// </summary> | |
| 213 | - /// | ||
| 214 | 211 | /// <remarks> | |
| 215 | 212 | /// Returns true if the given Python exception matches the given | |
| 216 | 213 | /// Python object. This is a wrapper for PyErr_GivenExceptionMatches. | |
@@ -224,7 +221,6 @@ public static bool ExceptionMatches(IntPtr exc, IntPtr ob) | |||
| 224 | 221 | /// <summary> | |
| 225 | 222 | /// SetError Method | |
| 226 | 223 | /// </summary> | |
| 227 | - /// | ||
| 228 | 224 | /// <remarks> | |
| 229 | 225 | /// Sets the current Python exception given a native string. | |
| 230 | 226 | /// This is a wrapper for the Python PyErr_SetString call. | |
@@ -237,7 +233,6 @@ public static void SetError(IntPtr ob, string value) | |||
| 237 | 233 | /// <summary> | |
| 238 | 234 | /// SetError Method | |
| 239 | 235 | /// </summary> | |
| 240 | - /// | ||
| 241 | 236 | /// <remarks> | |
| 242 | 237 | /// Sets the current Python exception given a Python object. | |
| 243 | 238 | /// This is a wrapper for the Python PyErr_SetObject call. | |
@@ -250,7 +245,6 @@ public static void SetError(IntPtr ob, IntPtr value) | |||
| 250 | 245 | /// <summary> | |
| 251 | 246 | /// SetError Method | |
| 252 | 247 | /// </summary> | |
| 253 | - /// | ||
| 254 | 248 | /// <remarks> | |
| 255 | 249 | /// Sets the current Python exception given a CLR exception | |
| 256 | 250 | /// object. The CLR exception instance is wrapped as a Python | |
@@ -280,7 +274,6 @@ public static void SetError(Exception e) | |||
| 280 | 274 | /// <summary> | |
| 281 | 275 | /// ErrorOccurred Method | |
| 282 | 276 | /// </summary> | |
| 283 | - /// | ||
| 284 | 277 | /// <remarks> | |
| 285 | 278 | /// Returns true if an exception occurred in the Python runtime. | |
| 286 | 279 | /// This is a wrapper for the Python PyErr_Occurred call. | |
@@ -293,7 +286,6 @@ public static bool ErrorOccurred() | |||
| 293 | 286 | /// <summary> | |
| 294 | 287 | /// Clear Method | |
| 295 | 288 | /// </summary> | |
| 296 | - /// | ||
| 297 | 289 | /// <remarks> | |
| 298 | 290 | /// Clear any exception that has been set in the Python runtime. | |
| 299 | 291 | /// </remarks> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments