This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Not all attributes of the console for a subprocess with creationflags=0 are inherited
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Sworddragon
Priority: normal Keywords:

Created on 2014-09-19 12:27 by Sworddragon, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
test.py Sworddragon, 2014-09-20 00:16
Messages (2)
msg227090 - (view) Author: (Sworddragon) Date: 2014-09-19 12:27
The application apt-get on Linux does scale its output dependent of the size of the terminal but I have noticed that there are differences if I'm calling apt-get directly or with a subprocess without shell and creationflags set (so that creationflags should be 0). From the documentation subprocess.CREATE_NEW_CONSOLE is not set so that apt-get does inherit the console and normally I would assume that this counts also for all attributes. In the attachments is a testcase for this issue. Also here are 2 screenshots to compare the results:

Direct call: http://picload.org/image/crlrapg/normal.png
Subprocess: http://picload.org/image/crlrapd/subprocess.png
msg227137 - (view) Author: (Sworddragon) Date: 2014-09-20 00:21
Edit: Updated testcase as it contained an unneeded argument from an older testcase (in case it confuses somebody).
History
Date User Action Args
2022-04-11 14:58:08adminsetgithub: 66631
2014-09-20 00:21:54Sworddragonsetmessages: + msg227137
2014-09-20 00:16:32Sworddragonsetfiles: + test.py
2014-09-20 00:16:18Sworddragonsetfiles: - test.py
2014-09-19 12:27:06Sworddragoncreate