[Python-Dev] On breaking modules into packages (original) (raw)
Barry Warsaw barry at python.org
Wed Nov 3 15:54:33 CET 2010
- Previous message: [Python-Dev] On breaking modules into packages
- Next message: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Nov 03, 2010, at 11:06 AM, Ben Finney wrote:
Is this a case where it would be better if the package names had the leading underscore: ‘utils’, ‘suite’, etc.?
Does the convention on single-leading-underscore identifiers as “don't rely on this name staying the same in future versions” hold for package names?
I would vote "yes". I have seen more and more packages use this convention to signal that the module name is not intended to be imported directly. This should be part of any PEP 8 recommendation, IMO.
-Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20101103/4e18830c/attachment.pgp>
- Previous message: [Python-Dev] On breaking modules into packages
- Next message: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]