@@ -103,44 +103,44 @@ The class bool is a subclass of the class int, and cannot be subclassed.";
103103/* Arithmetic methods -- only so we can override &, |, ^. */
104104
105105static PyNumberMethods bool_as_number = {
106- 0 , /* nb_add*/
107- 0 , /* nb_subtract*/
108- 0 , /* nb_multiply*/
109- 0 , /* nb_divide*/
110- 0 , /* nb_remainder*/
111- 0 , /* nb_divmod*/
112- 0 , /* nb_power*/
113- 0 , /* nb_negative*/
114- 0 , /* nb_positive*/
115- 0 , /* nb_absolute*/
116- 0 , /* nb_nonzero*/
117- 0 , /* nb_invert*/
118- 0 , /* nb_lshift*/
119- 0 , /* nb_rshift*/
120- (binaryfunc )bool_and , /* nb_and*/
121- (binaryfunc )bool_xor , /* nb_xor*/
122- (binaryfunc )bool_or , /* nb_or*/
123- 0 , /* nb_coerce*/
124- 0 , /* nb_int*/
125- 0 , /* nb_long*/
126- 0 , /* nb_float*/
127- 0 , /* nb_oct*/
128- 0 , /* nb_hex*/
129- 0 , /* nb_inplace_add*/
130- 0 , /* nb_inplace_subtract*/
131- 0 , /* nb_inplace_multiply*/
132- 0 , /* nb_inplace_divide*/
133- 0 , /* nb_inplace_remainder*/
134- 0 , /* nb_inplace_power*/
135- 0 , /* nb_inplace_lshift*/
136- 0 , /* nb_inplace_rshift*/
137- 0 , /* nb_inplace_and*/
138- 0 , /* nb_inplace_xor*/
139- 0 , /* nb_inplace_or*/
140- 0 , /* nb_floor_divide */
141- 0 , /* nb_true_divide */
142- 0 , /* nb_inplace_floor_divide */
143- 0 , /* nb_inplace_true_divide */
106+ 0 , /* nb_add */
107+ 0 , /* nb_subtract */
108+ 0 , /* nb_multiply */
109+ 0 , /* nb_divide */
110+ 0 , /* nb_remainder */
111+ 0 , /* nb_divmod */
112+ 0 , /* nb_power */
113+ 0 , /* nb_negative */
114+ 0 , /* nb_positive */
115+ 0 , /* nb_absolute */
116+ 0 , /* nb_nonzero */
117+ 0 , /* nb_invert */
118+ 0 , /* nb_lshift */
119+ 0 , /* nb_rshift */
120+ (binaryfunc )bool_and , /* nb_and */
121+ (binaryfunc )bool_xor , /* nb_xor */
122+ (binaryfunc )bool_or , /* nb_or */
123+ 0 , /* nb_coerce */
124+ 0 , /* nb_int */
125+ 0 , /* nb_long */
126+ 0 , /* nb_float */
127+ 0 , /* nb_oct */
128+ 0 , /* nb_hex */
129+ 0 , /* nb_inplace_add */
130+ 0 , /* nb_inplace_subtract */
131+ 0 , /* nb_inplace_multiply */
132+ 0 , /* nb_inplace_divide */
133+ 0 , /* nb_inplace_remainder */
134+ 0 , /* nb_inplace_power */
135+ 0 , /* nb_inplace_lshift */
136+ 0 , /* nb_inplace_rshift */
137+ 0 , /* nb_inplace_and */
138+ 0 , /* nb_inplace_xor */
139+ 0 , /* nb_inplace_or */
140+ 0 , /* nb_floor_divide */
141+ 0 , /* nb_true_divide */
142+ 0 , /* nb_inplace_floor_divide */
143+ 0 , /* nb_inplace_true_divide */
144144};
145145
146146/* The type object for bool. Note that this cannot be subclassed! */
0 commit comments