diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-12 04:02:10 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-12 04:02:10 +0000 |
commit | f2da7dcfe115b71f88c24fcdbac96f766f760d57 (patch) | |
tree | dd4f49c204e0d37b869f00a9f1c5389d58be1519 /Python/exceptions.c | |
parent | bdbc047c3a17c279e2fd24d4815af4778d06c6f8 (diff) | |
download | cpython-f2da7dcfe115b71f88c24fcdbac96f766f760d57.tar.gz |
Worm around MSVC6 error on single string literal > 2Kb.
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index a70e6c6a71..c0e4d5464b 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -20,6 +20,10 @@ #include "Python.h" +/* Caution: MS Visual C++ 6 errors if a single string literal exceeds + * 2Kb. So the module docstring has been broken roughly in half, using + * compile-time literal concatenation. + */ static char module__doc__[] = "Python's standard exception class hierarchy.\n\ @@ -41,8 +45,9 @@ interpreter.\n\ Here is a rundown of the class hierarchy. The classes found here are\n\ inserted into both the exceptions module and the `built-in' module. It is\n\ recommended that user defined class based exceptions be derived from the\n\ -`Exception' class, although this is currently not enforced.\n\ -\n\ +`Exception' class, although this is currently not enforced.\n" + /* keep string pieces "small" */ +"\n\ Exception\n\ |\n\ +-- SystemExit\n\ |