File indexing completed on 2024-04-28 15:53:59
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ Operator interface. 0004 0005 This module exports a set of functions implemented in C corresponding 0006 to the intrinsic operators of Python. For example, operator.add(x, y) 0007 is equivalent to the expression x+y. The function names are those 0008 used for special methods; variants without leading and trailing 0009 '__' are also provided for convenience. """ 0010 0011 def __abs__(a): 0012 """ abs(a) -- Same as abs(a). """ 0013 return None 0014 0015 def __add__(a, b): 0016 """ add(a, b) -- Same as a + b. """ 0017 return None 0018 0019 def __and__(a, b): 0020 """ and_(a, b) -- Same as a & b. """ 0021 return None 0022 0023 def __concat__(a, b): 0024 """ concat(a, b) -- Same as a + b, for a and b sequences. """ 0025 return None 0026 0027 def __contains__(a, b): 0028 """ contains(a, b) -- Same as b in a (note reversed operands). """ 0029 return None 0030 0031 def __delitem__(a, b): 0032 """ delitem(a, b) -- Same as del a[b]. """ 0033 return None 0034 0035 def __delslice__(a, b, c): 0036 """ delslice(a, b, c) -- Same as del a[b:c]. """ 0037 return None 0038 0039 def __div__(a, b): 0040 """ div(a, b) -- Same as a / b when __future__.division is not in effect. """ 0041 return None 0042 0043 def __eq__(a, b): 0044 """ eq(a, b) -- Same as a==b. """ 0045 return None 0046 0047 def __floordiv__(a, b): 0048 """ floordiv(a, b) -- Same as a // b. """ 0049 return None 0050 0051 def __ge__(a, b): 0052 """ ge(a, b) -- Same as a>=b. """ 0053 return None 0054 0055 def __getitem__(a, b): 0056 """ getitem(a, b) -- Same as a[b]. """ 0057 return None 0058 0059 def __getslice__(a, b, c): 0060 """ getslice(a, b, c) -- Same as a[b:c]. """ 0061 return None 0062 0063 def __gt__(a, b): 0064 """ gt(a, b) -- Same as a>b. """ 0065 return None 0066 0067 def __iadd__(a, b): 0068 """ a = iadd(a, b) -- Same as a += b. """ 0069 return None 0070 0071 def __iand__(a, b): 0072 """ a = iand(a, b) -- Same as a &= b. """ 0073 return None 0074 0075 def __iconcat__(a, b): 0076 """ a = iconcat(a, b) -- Same as a += b, for a and b sequences. """ 0077 return None 0078 0079 def __idiv__(a, b): 0080 """ a = idiv(a, b) -- Same as a /= b when __future__.division is not in effect. """ 0081 return None 0082 0083 def __ifloordiv__(a, b): 0084 """ a = ifloordiv(a, b) -- Same as a //= b. """ 0085 return None 0086 0087 def __ilshift__(a, b): 0088 """ a = ilshift(a, b) -- Same as a <<= b. """ 0089 return None 0090 0091 def __imod__(a, b): 0092 """ a = imod(a, b) -- Same as a %= b. """ 0093 return None 0094 0095 def __imul__(a, b): 0096 """ a = imul(a, b) -- Same as a *= b. """ 0097 return None 0098 0099 def __index__(a): 0100 """ index(a) -- Same as a.__index__() """ 0101 return None 0102 0103 def __inv__(a): 0104 """ inv(a) -- Same as ~a. """ 0105 return None 0106 0107 def __invert__(a): 0108 """ invert(a) -- Same as ~a. """ 0109 return None 0110 0111 def __ior__(a, b): 0112 """ a = ior(a, b) -- Same as a |= b. """ 0113 return None 0114 0115 def __ipow__(a, b): 0116 """ a = ipow(a, b) -- Same as a **= b. """ 0117 return None 0118 0119 def __irepeat__(a, b): 0120 """ a = irepeat(a, b) -- Same as a *= b, where a is a sequence, and b is an integer. """ 0121 return 1 0122 0123 def __irshift__(a, b): 0124 """ a = irshift(a, b) -- Same as a >>= b. """ 0125 return None 0126 0127 def __isub__(a, b): 0128 """ a = isub(a, b) -- Same as a -= b. """ 0129 return None 0130 0131 def __itruediv__(a, b): 0132 """ a = itruediv(a, b) -- Same as a /= b when __future__.division is in effect. """ 0133 return None 0134 0135 def __ixor__(a, b): 0136 """ a = ixor(a, b) -- Same as a ^= b. """ 0137 return None 0138 0139 def __le__(a, b): 0140 """ le(a, b) -- Same as a<=b. """ 0141 return None 0142 0143 def __lshift__(a, b): 0144 """ lshift(a, b) -- Same as a << b. """ 0145 return None 0146 0147 def __lt__(a, b): 0148 """ lt(a, b) -- Same as a<b. """ 0149 return None 0150 0151 def __mod__(a, b): 0152 """ mod(a, b) -- Same as a % b. """ 0153 return None 0154 0155 def __mul__(a, b): 0156 """ mul(a, b) -- Same as a * b. """ 0157 return None 0158 0159 def __ne__(a, b): 0160 """ ne(a, b) -- Same as a!=b. """ 0161 return None 0162 0163 def __neg__(a): 0164 """ neg(a) -- Same as -a. """ 0165 return None 0166 0167 def __not__(a): 0168 """ not_(a) -- Same as not a. """ 0169 return None 0170 0171 def __or__(a, b): 0172 """ or_(a, b) -- Same as a | b. """ 0173 return None 0174 0175 __package__ = None 0176 0177 def __pos__(a): 0178 """ pos(a) -- Same as +a. """ 0179 return None 0180 0181 def __pow__(a, b): 0182 """ pow(a, b) -- Same as a ** b. """ 0183 return None 0184 0185 def __repeat__(a, b): 0186 """ repeat(a, b) -- Return a * b, where a is a sequence, and b is an integer. """ 0187 return 1 0188 0189 def __rshift__(a, b): 0190 """ rshift(a, b) -- Same as a >> b. """ 0191 return None 0192 0193 def __setitem__(a, b, c): 0194 """ setitem(a, b, c) -- Same as a[b] = c. """ 0195 return None 0196 0197 def __setslice__(a, b, c, d): 0198 """ setslice(a, b, c, d) -- Same as a[b:c] = d. """ 0199 return None 0200 0201 def __sub__(a, b): 0202 """ sub(a, b) -- Same as a - b. """ 0203 return None 0204 0205 def __truediv__(a, b): 0206 """ truediv(a, b) -- Same as a / b when __future__.division is in effect. """ 0207 return None 0208 0209 def __xor__(a, b): 0210 """ xor(a, b) -- Same as a ^ b. """ 0211 return None 0212 0213 def abs(a): 0214 """ abs(a) -- Same as abs(a). """ 0215 return None 0216 0217 def add(a, b): 0218 """ add(a, b) -- Same as a + b. """ 0219 return None 0220 0221 def and_(a, b): 0222 """ and_(a, b) -- Same as a & b. """ 0223 return None 0224 0225 class attrgetter(object): 0226 """ attrgetter(attr, ...) --> attrgetter object 0227 0228 Return a callable object that fetches the given attribute(s) from its operand. 0229 After, f=attrgetter('name'), the call f(r) returns r.name. 0230 After, g=attrgetter('name', 'date'), the call g(r) returns (r.name, r.date). 0231 After, h=attrgetter('name.first', 'name.last'), the call h(r) returns 0232 (r.name.first, r.name.last). """ 0233 0234 pass 0235 0236 def concat(a, b): 0237 """ concat(a, b) -- Same as a + b, for a and b sequences. """ 0238 return None 0239 0240 def contains(a, b): 0241 """ contains(a, b) -- Same as b in a (note reversed operands). """ 0242 return None 0243 0244 def countOf(a, b): 0245 """ countOf(a, b) -- Return the number of times b occurs in a. """ 0246 return None 0247 0248 def delitem(a, b): 0249 """ delitem(a, b) -- Same as del a[b]. """ 0250 return None 0251 0252 def delslice(a, b, c): 0253 """ delslice(a, b, c) -- Same as del a[b:c]. """ 0254 return None 0255 0256 def div(a, b): 0257 """ div(a, b) -- Same as a / b when __future__.division is not in effect. """ 0258 return None 0259 0260 def eq(a, b): 0261 """ eq(a, b) -- Same as a==b. """ 0262 return None 0263 0264 def floordiv(a, b): 0265 """ floordiv(a, b) -- Same as a // b. """ 0266 return None 0267 0268 def ge(a, b): 0269 """ ge(a, b) -- Same as a>=b. """ 0270 return None 0271 0272 def getitem(a, b): 0273 """ getitem(a, b) -- Same as a[b]. """ 0274 return None 0275 0276 def getslice(a, b, c): 0277 """ getslice(a, b, c) -- Same as a[b:c]. """ 0278 return None 0279 0280 def gt(a, b): 0281 """ gt(a, b) -- Same as a>b. """ 0282 return None 0283 0284 def iadd(a, b): 0285 """ a = iadd(a, b) -- Same as a += b. """ 0286 return None 0287 0288 def iand(a, b): 0289 """ a = iand(a, b) -- Same as a &= b. """ 0290 return None 0291 0292 def iconcat(a, b): 0293 """ a = iconcat(a, b) -- Same as a += b, for a and b sequences. """ 0294 return None 0295 0296 def idiv(a, b): 0297 """ a = idiv(a, b) -- Same as a /= b when __future__.division is not in effect. """ 0298 return None 0299 0300 def ifloordiv(a, b): 0301 """ a = ifloordiv(a, b) -- Same as a //= b. """ 0302 return None 0303 0304 def ilshift(a, b): 0305 """ a = ilshift(a, b) -- Same as a <<= b. """ 0306 return None 0307 0308 def imod(a, b): 0309 """ a = imod(a, b) -- Same as a %= b. """ 0310 return None 0311 0312 def imul(a, b): 0313 """ a = imul(a, b) -- Same as a *= b. """ 0314 return None 0315 0316 def index(a): 0317 """ index(a) -- Same as a.__index__() """ 0318 return None 0319 0320 def indexOf(a, b): 0321 """ indexOf(a, b) -- Return the first index of b in a. """ 0322 return None 0323 0324 def inv(a): 0325 """ inv(a) -- Same as ~a. """ 0326 return None 0327 0328 def invert(a): 0329 """ invert(a) -- Same as ~a. """ 0330 return None 0331 0332 def ior(a, b): 0333 """ a = ior(a, b) -- Same as a |= b. """ 0334 return None 0335 0336 def ipow(a, b): 0337 """ a = ipow(a, b) -- Same as a **= b. """ 0338 return None 0339 0340 def irepeat(a, b): 0341 """ a = irepeat(a, b) -- Same as a *= b, where a is a sequence, and b is an integer. """ 0342 return 1 0343 0344 def irshift(a, b): 0345 """ a = irshift(a, b) -- Same as a >>= b. """ 0346 return None 0347 0348 def isCallable(a): 0349 """ isCallable(a) -- Same as callable(a). """ 0350 return None 0351 0352 def isMappingType(a): 0353 """ isMappingType(a) -- Return True if a has a mapping type, False otherwise. """ 0354 return None 0355 0356 def isNumberType(a): 0357 """ isNumberType(a) -- Return True if a has a numeric type, False otherwise. """ 0358 return None 0359 0360 def isSequenceType(a): 0361 """ isSequenceType(a) -- Return True if a has a sequence type, False otherwise. """ 0362 return None 0363 0364 def is_(a, b): 0365 """ is_(a, b) -- Same as a is b. """ 0366 return None 0367 0368 def is_not(a, b): 0369 """ is_not(a, b) -- Same as a is not b. """ 0370 return None 0371 0372 def isub(a, b): 0373 """ a = isub(a, b) -- Same as a -= b. """ 0374 return None 0375 0376 class itemgetter(object): 0377 """ itemgetter(item, ...) --> itemgetter object 0378 0379 Return a callable object that fetches the given item(s) from its operand. 0380 After, f=itemgetter(2), the call f(r) returns r[2]. 0381 After, g=itemgetter(2,5,3), the call g(r) returns (r[2], r[5], r[3]) """ 0382 0383 pass 0384 0385 def itruediv(a, b): 0386 """ a = itruediv(a, b) -- Same as a /= b when __future__.division is in effect. """ 0387 return None 0388 0389 def ixor(a, b): 0390 """ a = ixor(a, b) -- Same as a ^= b. """ 0391 return None 0392 0393 def le(a, b): 0394 """ le(a, b) -- Same as a<=b. """ 0395 return None 0396 0397 def lshift(a, b): 0398 """ lshift(a, b) -- Same as a << b. """ 0399 return None 0400 0401 def lt(a, b): 0402 """ lt(a, b) -- Same as a<b. """ 0403 return None 0404 0405 class methodcaller(object): 0406 """ methodcaller(name, ...) --> methodcaller object 0407 0408 Return a callable object that calls the given method on its operand. 0409 After, f = methodcaller('name'), the call f(r) returns r.name(). 0410 After, g = methodcaller('name', 'date', foo=1), the call g(r) returns 0411 r.name('date', foo=1). """ 0412 0413 pass 0414 0415 def mod(a, b): 0416 """ mod(a, b) -- Same as a % b. """ 0417 return None 0418 0419 def mul(a, b): 0420 """ mul(a, b) -- Same as a * b. """ 0421 return None 0422 0423 def ne(a, b): 0424 """ ne(a, b) -- Same as a!=b. """ 0425 return None 0426 0427 def neg(a): 0428 """ neg(a) -- Same as -a. """ 0429 return None 0430 0431 def not_(a): 0432 """ not_(a) -- Same as not a. """ 0433 return None 0434 0435 def or_(a, b): 0436 """ or_(a, b) -- Same as a | b. """ 0437 return None 0438 0439 def pos(a): 0440 """ pos(a) -- Same as +a. """ 0441 return None 0442 0443 def pow(a, b): 0444 """ pow(a, b) -- Same as a ** b. """ 0445 return None 0446 0447 def repeat(a, b): 0448 """ repeat(a, b) -- Return a * b, where a is a sequence, and b is an integer. """ 0449 return 1 0450 0451 def rshift(a, b): 0452 """ rshift(a, b) -- Same as a >> b. """ 0453 return None 0454 0455 def sequenceIncludes(a, b): 0456 """ sequenceIncludes(a, b) -- Same as b in a (note reversed operands; deprecated). """ 0457 return None 0458 0459 def setitem(a, b, c): 0460 """ setitem(a, b, c) -- Same as a[b] = c. """ 0461 return None 0462 0463 def setslice(a, b, c, d): 0464 """ setslice(a, b, c, d) -- Same as a[b:c] = d. """ 0465 return None 0466 0467 def sub(a, b): 0468 """ sub(a, b) -- Same as a - b. """ 0469 return None 0470 0471 def truediv(a, b): 0472 """ truediv(a, b) -- Same as a / b when __future__.division is in effect. """ 0473 return None 0474 0475 def truth(a): 0476 """ truth(a) -- Return True if a is true, False otherwise. """ 0477 return None 0478 0479 def xor(a, b): 0480 """ xor(a, b) -- Same as a ^ b. """ 0481 return None 0482