#54 aren't __init__.py modules private?

defect
closed-rejected
formatter (18)
5
2002-01-30
2002-01-30
No

I'm using the --no-private-names option, yet I'm
seeing __init__.py in my list of modules. Shouldn't
this count as a private name?

Discussion

  • Doug Hellmann

    Doug Hellmann - 2002-01-30
    • status: open --> closed-rejected
     
  • Doug Hellmann

    Doug Hellmann - 2002-01-30

    Logged In: YES
    user_id=34486

    No, __init__.py wouldn't match the private name rule. The pattern for
    method names is based on the Python definition (any name starting with
    at least 2 underscores and **NOT** ending with 2 underscores). I don't
    remember if that rule is even applied to file names, though.

    Doug

     

Log in to post a comment.