1

The PyMethodDef C struct has several fields that are prefixed with 'ml'. What does 'ml' stand for?

https://docs.python.org/2/c-api/structures.html#c.PyMethodDef

Praxeolitic
  • 22,455
  • 16
  • 75
  • 126
  • Maybe it is an abbreviation for "model". After all, `PyMethodDef` is a model for method definitions. –  Nov 05 '14 at 21:26

1 Answers1

2

After a lot of googling, I found another stack question that indirectly answered your question.

That is, the ml stands for Modular Loading.

Some people even break this down further to just module, as in module_method.

The whole answer to the link stack question is definitely worth the read, too!

Community
  • 1
  • 1
T.Woody
  • 1,142
  • 2
  • 11
  • 25
  • I too am fond of both the question and the answer to which you link! ;-) That said, I'm not sure this is the right answer. The PyMethodDef struct can be used for *statically* linked modules. – Praxeolitic Nov 07 '14 at 23:48
  • Haha I just realized that too was your question! This is comical given how much time i spent hunting for that answer... – T.Woody Nov 08 '14 at 09:29
  • It's even your answer :0 – T.Woody Nov 08 '14 at 09:39