-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 24.08.2010 10:51, schrieb sandro dentella: > Hi, > > I'm using automodule + autoclass with members that names methods. > I can't see how to reference a method from within the docstring of > another one. How can I reference the same class and how can I > reference a different class?
As you would reference it without autodoc: use e.g. :meth:`foo` for a method in the same class, :meth:`Cls.foo` for a method in another class, but the same module, :meth:`mod.Cls.foo` for a method in a different module. You can also use the new shortcuts in 1.x, which means that using :meth:`.Cls.foo` will link to the "foo" method of a "Cls" class regardless of the module it is in. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkxzti4ACgkQN9GcIYhpnLDNFwCgly/JPMdJq/T+4XuN6QXnJRs5 r9sAnRvOyRppWq7Rg2TOR5rxwV8KRqKB =jovJ -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.