Advertisement
Fhernd

crear-firma.py

Feb 7th, 2018
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. from inspect import Signature, Parameter
  2.  
  3. parametors = [Parameter('x', Parameter.POSITIONAL_OR_KEYWORD),
  4.                 Parameter('y', Parameter.POSITIONAL_OR_KEYWORD, default=42),
  5.                 Parameter('z', Parameter.KEYWORD_ONLY, default=None)]
  6.  
  7. firma = Signature(parametors)
  8.  
  9. print(firma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement