0

I have updated my python from 3.3.2 to 3.5.1 a few days ago, and the other day by doing help in some function I found something strange, a / in the firm of some of the functions, for example:

in 3.3.2

>>> help(len)
Help on built-in function len in module builtins:

len(...)
    len(object) -> integer

    Return the number of items of a sequence or mapping.

>>>

now in 3.5.1

>>> help(len)
Help on built-in function len in module builtins:

len(obj, /)
    Return the number of items in a container.

>>> 

what is the meaning of this /??

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Copperfield
  • 8,131
  • 3
  • 23
  • 29

1 Answers1

0

The slash means the end of the "positional only parameters", as better explained in this previous answer.

Community
  • 1
  • 1
alfredoc
  • 126
  • 6