Jacob C. W. Billings
Jacob C. W. Billings

Reputation: 13

Usage of '@@' syntax in python

I ran into the double @@ symbol in the following code: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py

I understand that the @ is used as a decorator. But I can't seem to find any information on the use of @@?

Upvotes: 0

Views: 188

Answers (1)

Mike Müller
Mike Müller

Reputation: 85542

The @@ is used only in docstrings not in code. It is no valid Python syntax.

An external tool uses this for generating links to other classes in the documentation.

Upvotes: 4

Related Questions