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
7845e7c7
Commit
7845e7c7
authored
Jul 11, 2002
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #567607] Suggest METH_NOARGS to replace PyArg_NoArgs
parent
c62b95e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Doc/whatsnew/whatsnew23.tex
Doc/whatsnew/whatsnew23.tex
+9
-5
No files found.
Doc/whatsnew/whatsnew23.tex
View file @
7845e7c7
...
...
@@ -653,9 +653,13 @@ when running Python's \file{configure} script. (Contributed by Ondrej
Palkovsky.)
\item
The
\cfunction
{
PyArg
_
NoArgs()
}
macro is now deprecated, and code
that
uses it should be changed to use
\code
{
PyArg
_
ParseTuple(args, "")
}
instead.
that uses it should be changed. For Python 2.2 and later, the method
definition table can specify the
\constant
{
METH
_
NOARGS
}
flag, signalling that there are no arguments, and
the argument checking can then be removed. If compatibility with
pre-2.2 versions of Python is important, the code could use
\code
{
PyArg
_
ParseTuple(args, "")
}
instead, but this will be slower
than using
\constant
{
METH
_
NOARGS
}
.
\item
A new function,
\cfunction
{
PyObject
_
DelItemString(
\var
{
mapping
}
,
char *
\var
{
key
}
)
}
was added
...
...
@@ -721,7 +725,7 @@ as well as \UNIX.
The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this
article: Michael Chermside, Scott David Daniels, Fred~L. Drake, Jr.,
Michael Hudson, Detlef Lannert,
Andrew MacIntyre, Gustavo Niemeyer
,
Neal Norwitz.
Michael Hudson, Detlef Lannert,
Martin von L
\"
owis, Andrew MacIntyre
,
Gustavo Niemeyer,
Neal Norwitz.
\end{document}
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