mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
class ByAddressType, a simple Type but passed by address even on
input. (Jack)
This commit is contained in:
parent
57a0661cb8
commit
8b3c30c0eb
1 changed files with 7 additions and 0 deletions
|
|
@ -100,6 +100,13 @@ class Type:
|
|||
"""
|
||||
pass
|
||||
|
||||
class ByAddressType(Type):
|
||||
"Simple type that is also passed by address for input"
|
||||
|
||||
def passInput(self, name):
|
||||
return "&%s" % name
|
||||
|
||||
|
||||
|
||||
# Sometimes it's useful to define a type that's only usable as input or output parameter
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue