Site Tools


python:ellipsis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
python:ellipsis [2024/10/21 16:33] – Nielspython:ellipsis [2024/10/21 16:34] (current) – Niels
Line 1: Line 1:
 +====== Ellipsis (tripple dots)======
  
 +Encountered tripple dots a couple of times. Seems to have multple uses. 
 +
 +For instance here in a function definition it acts as placeholder, like when it dedcribes an interface that is to be implemented elsewhere. 
 +
 +<code python>
 +    def hex2rgb(...
 +        """Class method that converts a hex value into an rgb one"""
 +        pass
 +</code>
 +
 +The following article describes more uses: 
 +[[https://python.land/python-ellipsis|Python.land article on ellipsis]]
 +
 +{{tag>python ellipsis}}