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
93f0c8dd
Commit
93f0c8dd
authored
Jan 18, 2014
by
Larry Hastings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20299: Argument Clinic custom converters may now change the default
value of c_default and py_default with a class member.
parent
1d8145b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Misc/NEWS
Misc/NEWS
+3
-0
Tools/clinic/clinic.py
Tools/clinic/clinic.py
+4
-2
No files found.
Misc/NEWS
View file @
93f0c8dd
...
...
@@ -101,6 +101,9 @@ Tests
Tools/Demos
-----------
- Issue #20299: Argument Clinic custom converters may now change the default
value of c_default and py_default with a class member.
- Issue #20287: Argument Clinic'
s
output
is
now
configurable
,
allowing
delaying
its
output
or
even
redirecting
it
to
a
separate
file
.
...
...
Tools/clinic/clinic.py
View file @
93f0c8dd
...
...
@@ -1893,8 +1893,10 @@ class CConverter(metaclass=CConverterAutoRegister):
self
.
__class__
.
__name__
,
default
,
name
,
types_str
))
self
.
default
=
default
self
.
c_default
=
c_default
self
.
py_default
=
py_default
if
c_default
:
self
.
c_default
=
c_default
if
py_default
:
self
.
py_default
=
py_default
if
annotation
!=
unspecified
:
fail
(
"The 'annotation' parameter is not currently permitted."
)
...
...
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