Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
documentation of arguments
#2
Well, positional-only arguments are only a thing with built-in functions, as python has no syntax for those (can be emulated using *args though).
I guess you just have to learn which functions and arguments those are, as I can't find them detailed anywhere in the docs.

As for keyword-only args, those are usually shown clearly, at least in python 3, where syntax for something like that exists, check e.g. https://docs.python.org/3/library/functions.html#max

Skaperen Wrote:while it only accepts key as a keyword
You can pass a key function as a positional argument to sorted()...
Reply


Messages In This Thread
documentation of arguments - by Skaperen - Nov-28-2016, 06:28 AM
RE: documentation of arguments - by stranac - Nov-28-2016, 08:58 AM
RE: documentation of arguments - by nilamo - Nov-29-2016, 11:04 PM
RE: documentation of arguments - by stranac - Nov-30-2016, 08:26 AM
RE: documentation of arguments - by Skaperen - Dec-02-2016, 07:56 AM
RE: documentation of arguments - by Larz60+ - Nov-28-2016, 03:51 PM
RE: documentation of arguments - by Larz60+ - Nov-28-2016, 06:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Functions (Arguments Passing,Changing a mutable ,Assignment to Arguments Names) Adelton 2 3,946 Mar-02-2017, 10:23 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020