diff options
author | Guido van Rossum <guido@python.org> | 1995-07-07 22:45:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-07 22:45:02 (GMT) |
commit | aaf18390ee438aa155658139da0cb2bd9c31741c (patch) | |
tree | 7b21c914641c290571e366f3618ef48e1133496e /Python | |
parent | e40bddc3ef5321e6ceba4277bd344784724d4ba1 (diff) | |
download | cpython-aaf18390ee438aa155658139da0cb2bd9c31741c.zip cpython-aaf18390ee438aa155658139da0cb2bd9c31741c.tar.gz cpython-aaf18390ee438aa155658139da0cb2bd9c31741c.tar.bz2 |
added sys.platform
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 18ded1f..6e153e4 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -194,6 +194,7 @@ initsys() extern long getmaxint PROTO((void)); extern char *getversion PROTO((void)); extern char *getcopyright PROTO((void)); + extern char *getplatform PROTO((void)); extern int fclose PROTO((FILE *)); object *m = initmodule("sys", sys_methods); object *v; @@ -213,6 +214,8 @@ initsys() XDECREF(v); dictinsert(sysdict, "copyright", v = newstringobject(getcopyright())); XDECREF(v); + dictinsert(sysdict, "platform", v = newstringobject(getplatform())); + XDECREF(v); dictinsert(sysdict, "maxint", v = newintobject(getmaxint())); XDECREF(v); dictinsert(sysdict, "modules", get_modules()); |