Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe4dfc7

Browse files
committed
Add platform to welcome message.
1 parent 650b3aa commit fe4dfc7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ extern int getopt(); /* PROTO((int, char **, char *)); -- not standardized */
4949

5050
/* Subroutines that live in their own file */
5151
extern char *Py_GetVersion();
52+
extern char *Py_GetPlatform();
5253
extern char *Py_GetCopyright();
5354

5455

@@ -219,8 +220,8 @@ main(argc, argv)
219220

220221
if (Py_VerboseFlag ||
221222
(command == NULL && filename == NULL && stdin_is_interactive))
222-
fprintf(stderr, "Python %s\n%s\n",
223-
Py_GetVersion(), Py_GetCopyright());
223+
fprintf(stderr, "Python %s on %s\n%s\n",
224+
Py_GetVersion(), Py_GetPlatform(), Py_GetCopyright());
224225

225226
Py_Initialize();
226227

0 commit comments

Comments
 (0)