0

Is it possible to attach an __author__ attribute to a specific class or method within a module? I am only familiar with the syntax of giving authorial credit for an entire module, but the package I am managing has multiple authors working on different pieces of the same (large) module.

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376
aph
  • 1,615
  • 1
  • 17
  • 27
  • 1
    Why not `import` those different pieces from sub-modules? Alternatively, make `__author__` a string containing all relevant authors (see e.g. http://stackoverflow.com/q/9999829/3001761). There's no reason you *couldn't* assign the `__author__` attribute of a class or function, but I don't think it would be *used* by anything. – jonrsharpe Jan 20 '15 at 14:31

1 Answers1

0

I personally think having __author__ on both module or class level is an unnecessary noise:

Related topic with multiple good points about the "authors":

Community
  • 1
  • 1
alecxe
  • 441,113
  • 110
  • 1,021
  • 1,148