Search code examples
pythonpython-3.xmethodsattributes

Why 'f' refer to attribute when 'm' refer to method?


does anybody know why 'f' refers to attribute when 'm' refers to method? I mean why don't use "a" to refer to attribute?

File link for what I mean


Solution

  • Just found the answer:

    c: class

    f: field

    F: function

    m: method

    p: parameter

    P: property

    v: variable

    These are the terms and what they mean in PyCharm

    This may change if you use any other IDE or text editor

    Credits: What's the meaning of `f` and `m` in PyCharm auto-completion?