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
fd963265
Commit
fd963265
authored
Feb 09, 2007
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1653736: Properly discard third argument to slot_nb_inplace_power.
Will backport.
parent
209de1f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Misc/NEWS
Misc/NEWS
+2
-0
Objects/typeobject.c
Objects/typeobject.c
+7
-1
No files found.
Misc/NEWS
View file @
fd963265
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1?
Core and builtins
-----------------
- Bug #1653736: Properly discard third argument to slot_nb_inplace_power.
- PEP 352: Raising a string exception now triggers a TypeError. Attempting to
catch a string exception raises DeprecationWarning.
...
...
Objects/typeobject.c
View file @
fd963265
...
...
@@ -4427,7 +4427,13 @@ SLOT1(slot_nb_inplace_subtract, "__isub__", PyObject *, "O")
SLOT1
(
slot_nb_inplace_multiply
,
"__imul__"
,
PyObject
*
,
"O"
)
SLOT1
(
slot_nb_inplace_divide
,
"__idiv__"
,
PyObject
*
,
"O"
)
SLOT1
(
slot_nb_inplace_remainder
,
"__imod__"
,
PyObject
*
,
"O"
)
SLOT1
(
slot_nb_inplace_power
,
"__ipow__"
,
PyObject
*
,
"O"
)
/* Can't use SLOT1 here, because nb_inplace_power is ternary */
static
PyObject
*
slot_nb_inplace_power
(
PyObject
*
self
,
PyObject
*
arg1
,
PyObject
*
arg2
)
{
static
PyObject
*
cache_str
;
return
call_method
(
self
,
"__ipow__"
,
&
cache_str
,
"("
"O"
")"
,
arg1
);
}
SLOT1
(
slot_nb_inplace_lshift
,
"__ilshift__"
,
PyObject
*
,
"O"
)
SLOT1
(
slot_nb_inplace_rshift
,
"__irshift__"
,
PyObject
*
,
"O"
)
SLOT1
(
slot_nb_inplace_and
,
"__iand__"
,
PyObject
*
,
"O"
)
...
...
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