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
  • 42,835
  • 20
  • 145
  • 262
Copperfield
  • 7,242
  • 3
  • 17
  • 26

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