What is the "..." in python?

I saw this ellipsis / three-point statement in aiohttp :

  if debug is ...: debug = loop.get_debug() 
  • What is called and what is he doing?
  • Is this some kind of destructive or common operator?
  • And how is it different from **some_kwargs and *some_args ?

Decision

In this particular case:

 >>> ... Ellipsis >>> x = Ellipsis >>> x is ... True >>> ... is ... True 

code:

+5
source share

Source: https://habr.com/ru/post/1262150/


All Articles