Message136939
| Author |
vstinner |
| Recipients |
chortos, petri.lehtinen, vstinner |
| Date |
2011年05月26日.11:07:48 |
| SpamBayes Score |
0.05786009 |
| Marked as misclassified |
No |
| Message-id |
<1306408069.49.0.56566457867.issue12085@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
We can use a class attribute to set the attribute before calling __init__:
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -664,6 +664,8 @@ _PLATFORM_DEFAULT_CLOSE_FDS = object()
class Popen(object):
+ _child_created = False
+
def __init__(self, args, bufsize=0, executable=None,
stdin=None, stdout=None, stderr=None,
preexec_fn=None, close_fds=_PLATFORM_DEFAULT_CLOSE_FDS, |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月26日 11:07:49 | vstinner | set | recipients:
+ vstinner, chortos, petri.lehtinen |
| 2011年05月26日 11:07:49 | vstinner | set | messageid: <1306408069.49.0.56566457867.issue12085@psf.upfronthosting.co.za> |
| 2011年05月26日 11:07:48 | vstinner | link | issue12085 messages |
| 2011年05月26日 11:07:48 | vstinner | create |
|