econchick / new-coder

New Coder tutorials
zlib License
597 stars 392 forks source link

Rework part talking about *args/**kwargs in dataviz tuto #65

Closed merwok closed 5 years ago

merwok commented 11 years ago

There is a section in dataviz/tutorial.md that talks about *args and **kwargs without really explaining them (i.e. you can pass rotation=90 even though the method does not take a rotation argument because it accepts varkwargs, i.e. arbitrary named parameters).

We could rephrase that part, or keep the mention of **kwargs (it’s useful) and link to the Python docs (where some effort has been put recently to distinguish the parameters definition style from the argument passing style (e.g. a parameter always has a name, even if you pass it as positional argument in one call)).