diff options
author | Guido van Rossum <guido@python.org> | 1997-11-04 17:32:59 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-04 17:32:59 +0000 |
commit | 4b976b8fa1cf8c9494e8a61c2b0fa3313319e1d4 (patch) | |
tree | 4178be11ef259bebbdef26c14b81cba260f50b12 /Python/pythonrun.c | |
parent | 677d6ec6b02ecb7231d9d6da2605a4f5c13dbdb0 (diff) | |
download | cpython-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