summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-06 03:34:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-06 03:34:39 (GMT)
commit40552d0857486782bb5be8f85d6f59375ca6d0b2 (patch)
treeb19d2978681a9374f1cd854b3463a5de92b461e3
parent617bc19e3d7911c478e8313e59a702b99ab440f7 (diff)
downloadcpython-40552d0857486782bb5be8f85d6f59375ca6d0b2.zip
cpython-40552d0857486782bb5be8f85d6f59375ca6d0b2.tar.gz
cpython-40552d0857486782bb5be8f85d6f59375ca6d0b2.tar.bz2
Gack. The module doc string is too long for VC++ 5.0.
However two string literals concatenated are fine! Hope this doesn't break other platforms.
-rw-r--r--Python/sysmodule.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 97d0cac..29e55ea 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -310,7 +310,10 @@ list_builtin_module_names()
return list;
}
-/* XXX If your compiler doesn't like strings this long, edit it. */
+/* XXX This doc string is too long to be a single string literal in VC++ 5.0.
+ Two literals concatenated works just fine. If you have a K&R compiler
+ or other abomination that however *does* understand longer strings,
+ get rid of the !!! comment in the middle and the quotes that surround it. */
static char sys_doc[] =
"This module provides access to some objects used or maintained by the\n\
interpreter and to functions that interact strongly with the interpreter.\n\
@@ -339,7 +342,7 @@ exc_value -- value of exception currently being handled\n\
exc_traceback -- traceback of exception currently being handled\n\
The function exc_info() should be used instead of these three,\n\
because it is thread-safe.\n\
-\n\
+" /* !!! */ "\n\
Static objects:\n\
\n\
maxint -- the largest supported integer (the smallest is -maxint-1)\n\