[issue10877] Make Tools (and subdirs) a package (and subpackages)
Georg Brandl ge...@python.org added the comment: I don't think this is a good idea. For one thing, it only works in a checkout or source tarball, something that most users aren't going to work with. If we now publish that they can do import Tools.demo.redemo and so on, confusion will be great among those whose installation doesn't include Tools. In effect, you've added a new (and huge!) standard library package, and that's not something we do lightly or just before rc :) Also, Tools is mostly interesting for developers only. I'd rather put the things useful for users into the standard library at some point. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10877] Make Tools (and subdirs) a package (and subpackages)
New submission from Terry J. Reedy tjre...@udel.edu: Given that sys.path includes .../python32 adding the requisite empty __init__.py to Tools/ and, for instance, demo/ would allow from Tools.demo.redemo import main; main() to work (I tried it with Scripts instead of demo in b2). Now I have to open an editor window and hit F5 to run. (On Windows, the Command Prompt window is so wretched that it is much easier to work and explore within a Python shell.) Can files like __init__.py be added to the repository just by adding them to a checked-out working copy? Would there be a reason to exclude any subdirectories (that have .py files)? Can this be done for 3.2? I see that things have already been moved around within Tools since b2. If there is a policy against this, perhaps Tools/README could mention it. In any case, This directory contains a number of Python programs that are useful should be edited to This directory contains a number of subdirectories with Python programs that are useful as *every* program has been put in a subdirectory, even if by itself. -- components: Demos and Tools messages: 125875 nosy: terry.reedy priority: normal severity: normal status: open title: Make Tools (and subdirs) a package (and subpackages) type: feature request versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10877] Make Tools (and subdirs) a package (and subpackages)
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10877] Make Tools (and subdirs) a package (and subpackages)
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com