Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8120861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:17:25+00:00 2026-06-06T05:17:25+00:00

In twisted’s sourcecode, many docstrings contain formats like this: L{xxx} or C{xxx} or a

  • 0

In twisted’s sourcecode, many docstrings contain formats like this: L{xxx} or C{xxx} or a line begin with an ‘@’, what’s their meanings?

for example, in twisted/internet/interfaces.py:

def registerProducer(producer, streaming):
    """
    Register to receive data from a producer.
    ...
    For L{IPullProducer} providers, C{resumeProducing} will be called once
    each time data is required.
    ...
    @type producer: L{IProducer} provider
    ...
    @return: C{None}
    """

L{IPullProducer} , C{resumeProducing} , @type producer ?

By the way, are these formats a part of standard python docstring formats? If so, where should I refer to? Thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:17:26+00:00Added an answer on June 6, 2026 at 5:17 am

    The documentation format used by Twisted is Epytext, which is documented on epydoc.sourceforge.net.

    L{} means “link” (i.e. “this is a Python identifier, please link to it”) C{} means “code” (i.e. hello C{foo} bar should be formatted like “hello foo bar”). I{} just means “in italics”. You can see more fields in the epytext documentation.

    The Twisted project generates its documentation with pydoctor, using an invocation like pydoctor --add-package twisted. There’s a little more to it, to generate links to a couple of other projects that Twisted relies upon, but you can use that to get an idea if you want to contribute docstrings to Twisted. You can also generate the documentation with epydoc itself, using epydoc twisted, but epydoc doesn’t know about Zope Interface and so won’t automatically link classes to the interfaces that they implement.

    The generated API documentation for each release is published on twistedmatrix.com, and you can browse it there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a Twisted-based Heartbeat Client/Server combo, based on this example . It is
I'm looking for something like Twisted in Python (event-driven networking engine). I've found Boost:Asio
I'm using this: from twisted.web.client import getPage df = getPage(url) # there is some
My head is getting twisted trying to figure this out. The assignment is to
I'm playing around with Twisted and documentation found on their homepage doesn't answer all
My twisted python program keeps spewing this message ever so often: Unhandled error in
from twisted.internet import reactor, defer def getDummyData(x): This function is a dummy which simulates
I've written a Twisted based server and I'd like to test it using twisted
I am trying to profile twisted python code with Heapy . For example (pseudo
I'm running the twisted.words MSN protocol example from the Twisted documentation located here: http://twistedmatrix.com/projects/words/documentation/examples/msn_example.py

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.