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
33c722b7
Commit
33c722b7
authored
Nov 04, 2010
by
Jesus Cea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CObject use is marked as a Py3k warning, not a deprecation warning
parent
db31a35a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Misc/NEWS
Misc/NEWS
+3
-0
Objects/cobject.c
Objects/cobject.c
+1
-2
No files found.
Misc/NEWS
View file @
33c722b7
...
...
@@ -25,6 +25,9 @@ Core and Builtins
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
its value as the default 512 when compiling on AIX.
- Issue #9675: CObject use is marked as a Py3k warning, not a deprecation
warning.
- Issue #10068: Global objects which have reference cycles with their module's
dict are now cleared again. This causes issue #7140 to appear again.
...
...
Objects/cobject.c
View file @
33c722b7
...
...
@@ -11,8 +11,7 @@ typedef void (*destructor2)(void *, void*);
static
int
cobject_deprecation_warning
(
void
)
{
return
PyErr_WarnEx
(
PyExc_PendingDeprecationWarning
,
"The CObject type is marked Pending Deprecation in Python 2.7. "
return
PyErr_WarnPy3k
(
"CObject type is not supported in 3.x. "
"Please use capsule objects instead."
,
1
);
}
...
...
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