deb-murano/releasenotes/notes/var-kw-args-c42c31678d8bc747.yaml
Kirill Zaitsev e9fe5b278c Cleanup, clarify newton release-notes
This commit clarifies, cleans and improves releasenotes for murano

Co-Authored-By: Maria Zlatkova <mzlatkova@mirantis.com>
Change-Id: I6591a62640f192be749c3c58a92dc00ef56dd736
2016-09-14 01:08:51 +03:00

12 lines
589 B
YAML

---
features:
- >
Added the capability to declare MuranoPL YAML methods with variable length
positional and keyword arguments. This is done using argument ``Usage``
attribute. Regular arguments have Standard usage which is the default.
Variable length args (args in Python) should have "Usage: VarArgs" and
keyword args (kwargs) are declared with "Usage: KwArgs". Inside the
method they are seen as a list and a dictionary correspondingly. For such
arguments contracts are written for individual argument values thus
no need to write them as lists/dicts.