Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: Modules/main.c

Issue 13704: Random number generator in Python core
Patch Set: Created 8 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Python interpreter main program */ 1 /* Python interpreter main program */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include "osdefs.h" 4 #include "osdefs.h"
5 5
6 #include <locale.h> 6 #include <locale.h>
7 7
8 #ifdef __VMS 8 #ifdef __VMS
9 #error "PEP 11: VMS is now unsupported, code will be removed in Python 3.4" 9 #error "PEP 11: VMS is now unsupported, code will be removed in Python 3.4"
10 #include <unixlib.h> 10 #include <unixlib.h>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 -E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\ 66 -E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\
67 -h : print this help message and exit (also --help)\n\ 67 -h : print this help message and exit (also --help)\n\
68 "; 68 ";
69 static char *usage_2 = "\ 69 static char *usage_2 = "\
70 -i : inspect interactively after running script; forces a prompt even\n\ 70 -i : inspect interactively after running script; forces a prompt even\n\
71 if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ 71 if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\
72 -m mod : run library module as a script (terminates option list)\n\ 72 -m mod : run library module as a script (terminates option list)\n\
73 -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ 73 -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\
74 -OO : remove doc-strings in addition to the -O optimizations\n\ 74 -OO : remove doc-strings in addition to the -O optimizations\n\
75 -q : don't print version and copyright messages on interactive startup\n\ 75 -q : don't print version and copyright messages on interactive startup\n\
76 -r : don't use randomized hash\n\
76 -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ 77 -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
77 -S : don't imply 'import site' on initialization\n\ 78 -S : don't imply 'import site' on initialization\n\
78 "; 79 ";
79 static char *usage_3 = "\ 80 static char *usage_3 = "\
80 -u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x\n\ 81 -u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x\n\
81 see man page for details on internal buffering relating to '-u'\n\ 82 see man page for details on internal buffering relating to '-u'\n\
82 -v : verbose (trace import statements); also PYTHONVERBOSE=x\n\ 83 -v : verbose (trace import statements); also PYTHONVERBOSE=x\n\
83 can be supplied multiple times to increase verbosity\n\ 84 can be supplied multiple times to increase verbosity\n\
84 -V : print the Python version number and exit (also --version)\n\ 85 -V : print the Python version number and exit (also --version)\n\
85 -W arg : warning control; arg is action:message:category:module:lineno\n\ 86 -W arg : warning control; arg is action:message:category:module:lineno\n\
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 break; 373 break;
373 374
374 /* case 'J': reserved for Jython */ 375 /* case 'J': reserved for Jython */
375 376
376 case 'O': 377 case 'O':
377 Py_OptimizeFlag++; 378 Py_OptimizeFlag++;
378 break; 379 break;
379 380
380 case 'B': 381 case 'B':
381 Py_DontWriteBytecodeFlag++; 382 Py_DontWriteBytecodeFlag++;
383 break;
384
385 case 'r':
386 Py_NoRandomHashFlag++;
382 break; 387 break;
383 388
384 case 's': 389 case 's':
385 Py_NoUserSiteDirectory++; 390 Py_NoUserSiteDirectory++;
386 break; 391 break;
387 392
388 case 'S': 393 case 'S':
389 Py_NoSiteFlag++; 394 Py_NoSiteFlag++;
390 break; 395 break;
391 396
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 void 740 void
736 Py_GetArgcArgv(int *argc, wchar_t ***argv) 741 Py_GetArgcArgv(int *argc, wchar_t ***argv)
737 { 742 {
738 *argc = orig_argc; 743 *argc = orig_argc;
739 *argv = orig_argv; 744 *argv = orig_argv;
740 } 745 }
741 746
742 #ifdef __cplusplus 747 #ifdef __cplusplus
743 } 748 }
744 #endif 749 #endif
OLDNEW

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+