summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-11-04 17:32:59 +0000
committerGuido van Rossum <guido@python.org>1997-11-04 17:32:59 +0000
commit4b976b8fa1cf8c9494e8a61c2b0fa3313319e1d4 (patch)
tree4178be11ef259bebbdef26c14b81cba260f50b12 /Python/pythonrun.c
parent677d6ec6b02ecb7231d9d6da2605a4f5c13dbdb0 (diff)
downloadcpython-4b976b8fa1cf8c9494e8a61c2b0fa3313319e1d4.tar.gz
Use ``0'' instead of ``None'' to reset the underlying object in close
methods. Using None causes problems if the destructor is called after the __builtin__ module has already been destroyed (unfortunately, this can happen!). I can't just delete the object because it is actually tested for (if self._sock: ...). Setting it to 0 is a bit weird but works.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions