• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:format

38       :ref:`"main" thread <fork-and-threads>` (of the
39 :ref:`"main" interpreter <sub-interpreter-support>`). The same is
55 :ref:`"main" thread <fork-and-threads>` (of the
56 :ref:`"main" interpreter <sub-interpreter-support>`). The same is
67 any chance the process will call back into the Python interpreter.
72 :ref:`"main" thread <fork-and-threads>` (of the
73 :ref:`"main" interpreter <sub-interpreter-support>`). The same is
79 :func:`os.register_at_fork` allows registering custom Python functions
87 called in the new process if the Python interpreter will continue to be used.
124 that :ref:`Python is preinitialized <c-preinit>`.
126 This function must not be called before :ref:`Python is preinitialized
127 <c-preinit>` and so that the LC_CTYPE locale is properly configured: see
142 not ``NULL``, ``*size`` is set to ``(size_t)-1`` on memory error or set to
143 ``(size_t)-2`` on decoding error.
163 The function now uses the UTF-8 encoding in the :ref:`Python UTF-8 Mode
164 <utf8-mode>`.
167 The function now uses the UTF-8 encoding on Windows if
182 If error_pos is not ``NULL``, ``*error_pos`` is set to ``(size_t)-1`` on
193 This function must not be called before :ref:`Python is preinitialized
194 <c-preinit>` and so that the LC_CTYPE locale is properly configured: see
205 The function now uses the UTF-8 encoding in the :ref:`Python UTF-8 Mode
206 <utf8-mode>`.
209 The function now uses the UTF-8 encoding on Windows if
230 case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``
241 :c:member:`PyConfig.warnoptions` should be used instead, see :ref:`Python
242 Initialization Configuration <init-config>`.
252 :c:member:`PyConfig.warnoptions` should be used instead, see :ref:`Python
253 Initialization Configuration <init-config>`.
270 :ref:`Python Initialization Configuration <init-config>`.
278 .. c:function:: void PySys_WriteStdout(const char *format, ...)
280 Write the output string described by *format* to :data:`sys.stdout`. No
283 *format* should limit the total size of the formatted output string to
284 1000 bytes or less -- after 1000 bytes, the output string is truncated.
294 .. c:function:: void PySys_WriteStderr(const char *format, ...)
299 .. c:function:: void PySys_FormatStdout(const char *format, ...)
301 Function similar to PySys_WriteStdout() but format the message using
307 .. c:function:: void PySys_FormatStderr(const char *format, ...)
317 :c:member:`PyConfig.xoptions` should be used instead, see :ref:`Python
318 Initialization Configuration <init-config>`.
320 Parse *s* as a set of :option:`-X` options and add them to the current
330 Return the current dictionary of :option:`-X` options, similarly to
337 .. c:function:: int PySys_Audit(const char *event, const char *format, ...)
340 and non-zero with an exception set on failure.
342 If any hooks have been added, *format* and other arguments will be used
343 to construct a tuple to pass. Apart from ``N``, the same format characters
345 a tuple, it will be added into a single-element tuple. (The ``N`` format
350 Note that ``#`` format characters should always be treated as
353 :func:`sys.audit` performs the same function from Python code.
359 Require :c:type:`Py_ssize_t` for ``#`` format characters. Previously, an
367 and non-zero on failure. If the runtime has been initialized, also set an
373 refer directly to Python state.
383 held by the Python interpreter that raised the event.
387 :ref:`audit events table <audit-events>`.
390 .. audit-event:: sys.addaudithook "" c.PySys_AddAuditHook
413 make it dangerous to continue using the Python interpreter; e.g., when the
449 :c:func:`Py_AtExit` returns ``0``; on failure, it returns ``-1``. The cleanup
451 at most once. Since Python's internal finalization will have completed before
452 the cleanup function, no Python APIs should be called by *func*.