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
c83315d2
Commit
c83315d2
authored
Mar 17, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_Py_QnewFlag and INPLACE_DIVIDE are not necessary any longer
parent
cf31302a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
Include/pydebug.h
Include/pydebug.h
+0
-4
Python/ceval.c
Python/ceval.c
+0
-13
Python/pythonrun.c
Python/pythonrun.c
+0
-4
No files found.
Include/pydebug.h
View file @
c83315d2
...
...
@@ -16,10 +16,6 @@ PyAPI_DATA(int) Py_TabcheckFlag;
PyAPI_DATA
(
int
)
Py_UnicodeFlag
;
PyAPI_DATA
(
int
)
Py_IgnoreEnvironmentFlag
;
PyAPI_DATA
(
int
)
Py_DivisionWarningFlag
;
/* _XXX Py_QnewFlag should go away in 3.0. It's true iff -Qnew is passed,
on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
true divisions (which they will be in 3.0). */
PyAPI_DATA
(
int
)
_Py_QnewFlag
;
/* this is a wrapper around getenv() that pays attention to
Py_IgnoreEnvironmentFlag. It should be used for getting variables like
...
...
Python/ceval.c
View file @
c83315d2
...
...
@@ -1262,19 +1262,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throw)
if
(
x
!=
NULL
)
continue
;
break
;
case
INPLACE_DIVIDE
:
if
(
!
_Py_QnewFlag
)
{
w
=
POP
();
v
=
TOP
();
x
=
PyNumber_InPlaceDivide
(
v
,
w
);
Py_DECREF
(
v
);
Py_DECREF
(
w
);
SET_TOP
(
x
);
if
(
x
!=
NULL
)
continue
;
break
;
}
/* -Qnew is in effect: fall through to
INPLACE_TRUE_DIVIDE */
case
INPLACE_TRUE_DIVIDE
:
w
=
POP
();
v
=
TOP
();
...
...
Python/pythonrun.c
View file @
c83315d2
...
...
@@ -71,10 +71,6 @@ int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */
int
Py_FrozenFlag
;
/* Needed by getpath.c */
int
Py_UnicodeFlag
=
0
;
/* Needed by compile.c */
int
Py_IgnoreEnvironmentFlag
;
/* e.g. PYTHONPATH, PYTHONHOME */
/* _XXX Py_QnewFlag should go away in 2.3. It's true iff -Qnew is passed,
on the command line, and is used in 2.2 by ceval.c to make all "/" divisions
true divisions (which they will be in 2.3). */
int
_Py_QnewFlag
=
0
;
/* Reference to 'warnings' module, to avoid importing it
on the fly when the import lock may be held. See 683658/771097
...
...
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