Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f488af33
Commit
f488af33
authored
Aug 29, 1997
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse new command line option -X which enables exception classes.
parent
0596c2ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Modules/main.c
Modules/main.c
+6
-1
No files found.
Modules/main.c
View file @
f488af33
...
@@ -63,6 +63,7 @@ Options and arguments (and corresponding environment variables):\n\
...
@@ -63,6 +63,7 @@ Options and arguments (and corresponding environment variables):\n\
and force prompts, even if stdin does not appear to be a terminal.
\n
\
and force prompts, even if stdin does not appear to be a terminal.
\n
\
-O : optimize generated bytecode (a tad).
\n
\
-O : optimize generated bytecode (a tad).
\n
\
-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)
\n
\
-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)
\n
\
-X : use experimental class based exceptions
\n
\
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)
\n
\
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)
\n
\
"
;
"
;
static
char
*
usage_bot
=
"\
static
char
*
usage_bot
=
"\
...
@@ -105,7 +106,7 @@ Py_Main(argc, argv)
...
@@ -105,7 +106,7 @@ Py_Main(argc, argv)
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
unbuffered
=
1
;
unbuffered
=
1
;
while
((
c
=
getopt
(
argc
,
argv
,
"c:diOuv"
))
!=
EOF
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"c:diOuv
X
"
))
!=
EOF
)
{
if
(
c
==
'c'
)
{
if
(
c
==
'c'
)
{
/* -c is the last option; following arguments
/* -c is the last option; following arguments
that look like options are left for the
that look like options are left for the
...
@@ -142,6 +143,10 @@ Py_Main(argc, argv)
...
@@ -142,6 +143,10 @@ Py_Main(argc, argv)
Py_VerboseFlag
++
;
Py_VerboseFlag
++
;
break
;
break
;
case
'X'
:
Py_UseClassExceptionsFlag
++
;
break
;
/* This space reserved for other options */
/* This space reserved for other options */
default:
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment