Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #13061
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'assign': 0.04; 'classes.': 0.05; 'ide': 0.05; 'globals': 0.09; 'class,': 0.15; 'static': 0.15; 'complicating': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'globals.': 0.16; 'namespace.': 0.16; 'relaxed,': 0.16; 'simulate': 0.16; 'wrote:': 0.16; 'functions,': 0.18; 'java': 0.21; 'trying': 0.21; 'header:In- Reply-To:1': 0.22; 'expense': 0.23; 'indexing': 0.23; 'sep': 0.23; 'though.': 0.23; 'pm,': 0.24; 'suspect': 0.24; 'code.': 0.26; 'classes': 0.28; 'sat,': 0.28; 'problem': 0.28; 'message- id:@mail.gmail.com': 0.29; 'class': 0.30; '(e.g.': 0.31; 'source': 0.33; "isn't": 0.33; 'probably': 0.33; 'technical': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'nobody': 0.34; 'rather': 0.35; 'object': 0.35; 'subject:How': 0.35; 'file': 0.36; 'variables': 0.37; 'model': 0.37; 'but': 0.37; 'members': 0.37; 'could': 0.38; 'received:google.com': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:74.125': 0.39; "i'd": 0.40; "it's": 0.40; 'where': 0.40; 'easily': 0.61; 'your': 0.61; 'order': 0.62; 'dedicated': 0.62; 'view': 0.67; 'saw': 0.69; 'worthwhile.': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VSiBC7zZkdBYL25MMafz1jKv22UEKb2vrUoUIeXqwrE=; b=aYy69sS3ZgaS180hf0lzMH4gyPK+r/1Qpfz4hpCNST57cS+Dno3Ld85R1UxUlVFv18 V0EYdSFSaw/CM5Am/SCSyoEX2miOfTiRfmAqdjn/JRanu8XvkCK1K95wqjCs+zqmyG5I reImn2cu3b+Ou+nl/SXHA2GEhUrisWyZKUevQ= |
| MIME-Version | 1.0 |
| In-Reply-To | <pan.2011.09.10.10.11.37.104000@nowhere.com> |
| References | <2a4f542c-a8c1-46c7-9899-a3fad0940cf6@x11g2000yqc.googlegroups.com> <mailman.842.1315416661.27778.python-list@python.org> <4e680c67$0$29980$c3e8da3$5496439d@news.astraweb.com> <pan.2011.09.09.00.45.41.959000@nowhere.com> <mailman.890.1315532266.27778.python-list@python.org> <pan.2011.09.10.10.11.37.104000@nowhere.com> |
| Date | Sat, 10 Sep 2011 20:29:57 +1000 |
| Subject | Re: How to structure packages |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.931.1315650599.27778.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1315650599 news.xs4all.nl 2487 [2001:888:2000:d::a6]:34297 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:13061 |
Show key headers only | View raw
On Sat, Sep 10, 2011 at 8:11 PM, Nobody <nobody@nowhere.com> wrote: > I suspect that the one-to-one correspondence between classes and .class > files is mostly technical (e.g. Java's security model). The one-to-one > correspondence between class files and source files could probably be > relaxed, but at the expense of complicating the IDE and toolchain. One class per object file isn't a problem - you can always .jar your classes if the proliferation of small files bothers you, and then it's just a different way of indexing the mound of code. One class per source file complicates the human's view in order to simplify the tools'. Not sure that's really worthwhile. > I never saw it as a problem, given that Java is fundamentally class-based: > there are no global variables or functions, only classes. Yeah... of course you can easily simulate globals with static members in a dedicated class, but it's slower. THIS, though, is where Java's security model comes in - you can assign security X to Globals1.class and security Y to Globals2.class, rather than trying to juggle security issues in a monolithic "globals" namespace. IMHO it's not worth the hassle, though. I'd rather just have globals. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to structure packages bclark76 <bclark76@gmail.com> - 2011-09-07 08:56 -0700
Re: How to structure packages John Gordon <gordon@panix.com> - 2011-09-07 16:11 +0000
Re: How to structure packages Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-09-07 19:18 +0200
Re: How to structure packages Peter Otten <__peter__@web.de> - 2011-09-07 19:30 +0200
Re: How to structure packages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-08 10:29 +1000
Re: How to structure packages Chris Angelico <rosuav@gmail.com> - 2011-09-08 12:39 +1000
Re: How to structure packages Dan Sommers <dan@tombstonezero.net> - 2011-09-08 09:51 +0000
Re: How to structure packages Jonathan Hartley <tartley@tartley.com> - 2011-09-08 03:22 -0700
Re: How to structure packages Nobody <nobody@nowhere.com> - 2011-09-09 01:45 +0100
Re: How to structure packages Chris Angelico <rosuav@gmail.com> - 2011-09-09 11:37 +1000
Re: How to structure packages Nobody <nobody@nowhere.com> - 2011-09-10 11:11 +0100
Re: How to structure packages Chris Angelico <rosuav@gmail.com> - 2011-09-10 20:29 +1000
Re: How to structure packages "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-09-10 08:04 -0600
Re: How to structure packages Alec Taylor <alec.taylor6@gmail.com> - 2011-09-10 02:38 +1000
Re: How to structure packages rantingrick <rantingrick@gmail.com> - 2011-09-07 10:56 -0700
Re: How to structure packages "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-09-07 12:11 -0600
Re: How to structure packages Westley Martínez <anikom15@gmail.com> - 2011-09-07 14:35 -0700
csiph-web