Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Side by Side Diff: Doc/library/subprocess.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/struct.rst ('k') | Doc/library/sys.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`subprocess` --- Subprocess management 1 :mod:`subprocess` --- Subprocess management
2 =========================================== 2 ===========================================
3 3
4 .. module:: subprocess 4 .. module:: subprocess
5 :synopsis: Subprocess management. 5 :synopsis: Subprocess management.
6 .. moduleauthor:: Peter Åstrand <astrand@lysator.liu.se> 6 .. moduleauthor:: Peter Åstrand <astrand@lysator.liu.se>
7 .. sectionauthor:: Peter Åstrand <astrand@lysator.liu.se> 7 .. sectionauthor:: Peter Åstrand <astrand@lysator.liu.se>
8 8
9 9
10 The :mod:`subprocess` module allows you to spawn new processes, connect to their 10 The :mod:`subprocess` module allows you to spawn new processes, connect to their
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 on Windows. 560 on Windows.
561 561
562 .. class:: STARTUPINFO() 562 .. class:: STARTUPINFO()
563 563
564 Partial support of the Windows 564 Partial support of the Windows
565 `STARTUPINFO <http://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx> `__ 565 `STARTUPINFO <http://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx> `__
566 structure is used for :class:`Popen` creation. 566 structure is used for :class:`Popen` creation.
567 567
568 .. attribute:: dwFlags 568 .. attribute:: dwFlags
569 569
570 A bit field that determines whether certain :class:`STARTUPINFO` 570 A bit field that determines whether certain :class:`STARTUPINFO` members
571 attributes are used when the process creates a window. :: 571 are used when the process creates a window. ::
572 572
573 si = subprocess.STARTUPINFO() 573 si = subprocess.STARTUPINFO()
574 si.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHO WWINDOW 574 si.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHO WWINDOW
575 575
576 .. attribute:: hStdInput 576 .. attribute:: hStdInput
577 577
578 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute 578 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this member is
579 is the standard input handle for the process. If 579 the standard input handle for the process. If :data:`STARTF_USESTDHANDLES`
580 :data:`STARTF_USESTDHANDLES` is not specified, the default for standard 580 is not specified, the default for standard input is the keyboard buffer.
581 input is the keyboard buffer.
582 581
583 .. attribute:: hStdOutput 582 .. attribute:: hStdOutput
584 583
585 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute 584 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this member is
586 is the standard output handle for the process. Otherwise, this attribute 585 the standard output handle for the process. Otherwise, this member is
587 is ignored and the default for standard output is the console window's 586 ignored and the default for standard output is the console window's
588 buffer. 587 buffer.
589 588
590 .. attribute:: hStdError 589 .. attribute:: hStdError
591 590
592 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this attribute 591 If :attr:`dwFlags` specifies :data:`STARTF_USESTDHANDLES`, this member is
593 is the standard error handle for the process. Otherwise, this attribute is 592 the standard error handle for the process. Otherwise, this member is
594 ignored and the default for standard error is the console window's buffer. 593 ignored and the default for standard error is the console window's buffer.
595 594
596 .. attribute:: wShowWindow 595 .. attribute:: wShowWindow
597 596
598 If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this attribute 597 If :attr:`dwFlags` specifies :data:`STARTF_USESHOWWINDOW`, this member
599 can be any of the values that can be specified in the ``nCmdShow`` 598 can be any of the values that can be specified in the ``nCmdShow``
600 parameter for the 599 parameter for the
601 `ShowWindow <http://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).asp x>`__ 600 `ShowWindow <http://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).asp x>`__
602 function, except for ``SW_SHOWDEFAULT``. Otherwise, this attribute is 601 function, except for ``SW_SHOWDEFAULT``. Otherwise, this member is
603 ignored. 602 ignored.
604 603
605 :data:`SW_HIDE` is provided for this attribute. It is used when 604 :data:`SW_HIDE` is provided for this attribute. It is used when
606 :class:`Popen` is called with ``shell=True``. 605 :class:`Popen` is called with ``shell=True``.
607 606
608 607
609 Constants 608 Constants
610 ^^^^^^^^^ 609 ^^^^^^^^^
611 610
612 The :mod:`subprocess` module exposes the following constants. 611 The :mod:`subprocess` module exposes the following constants.
(...skipping 13 matching lines...) Expand all
626 The standard error device. Initially, this is the active console screen 625 The standard error device. Initially, this is the active console screen
627 buffer, ``CONOUT$``. 626 buffer, ``CONOUT$``.
628 627
629 .. data:: SW_HIDE 628 .. data:: SW_HIDE
630 629
631 Hides the window. Another window will be activated. 630 Hides the window. Another window will be activated.
632 631
633 .. data:: STARTF_USESTDHANDLES 632 .. data:: STARTF_USESTDHANDLES
634 633
635 Specifies that the :attr:`STARTUPINFO.hStdInput`, 634 Specifies that the :attr:`STARTUPINFO.hStdInput`,
636 :attr:`STARTUPINFO.hStdOutput`, and :attr:`STARTUPINFO.hStdError` attributes 635 :attr:`STARTUPINFO.hStdOutput`, and :attr:`STARTUPINFO.hStdError` members
637 contain additional information. 636 contain additional information.
638 637
639 .. data:: STARTF_USESHOWWINDOW 638 .. data:: STARTF_USESHOWWINDOW
640 639
641 Specifies that the :attr:`STARTUPINFO.wShowWindow` attribute contains 640 Specifies that the :attr:`STARTUPINFO.wShowWindow` member contains
642 additional information. 641 additional information.
643 642
644 .. data:: CREATE_NEW_CONSOLE 643 .. data:: CREATE_NEW_CONSOLE
645 644
646 The new process has a new console, instead of inheriting its parent's 645 The new process has a new console, instead of inheriting its parent's
647 console (the default). 646 console (the default).
648 647
649 This flag is always set when :class:`Popen` is created with ``shell=True``. 648 This flag is always set when :class:`Popen` is created with ``shell=True``.
650 649
651 .. data:: CREATE_NEW_PROCESS_GROUP 650 .. data:: CREATE_NEW_PROCESS_GROUP
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 4. Backslashes are interpreted literally, unless they 863 4. Backslashes are interpreted literally, unless they
865 immediately precede a double quotation mark. 864 immediately precede a double quotation mark.
866 865
867 5. If backslashes immediately precede a double quotation mark, 866 5. If backslashes immediately precede a double quotation mark,
868 every pair of backslashes is interpreted as a literal 867 every pair of backslashes is interpreted as a literal
869 backslash. If the number of backslashes is odd, the last 868 backslash. If the number of backslashes is odd, the last
870 backslash escapes the next double quotation mark as 869 backslash escapes the next double quotation mark as
871 described in rule 3. 870 described in rule 3.
872 871
873 872
OLDNEW
« no previous file with comments | « Doc/library/struct.rst ('k') | Doc/library/sys.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+