python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] PEP 376 Tarek Ziadé Tue Jun 23 02:00:34 2009
On Tue, Jun 23, 2009 at 3:41 AM, Kevin Teague<[EMAIL PROTECTED]> wrote: >> >> >> A plural class name looks strange (I think it's the first time I see one >> in >> the CPython codebase). How about another name? (DistributionPool, >> DistributionMap, WorkingSet etc.). >> >> Sure, WorkingSet is nice, it's the name used in setuptools, >> > > A WorkingSet and a DistributionDirectories (or whatever it gets named to) > are different things though, no? > > A WorkingSet is "a collection of active distributions", where each > distribution might come from different distribution directories: > > http://peak.telecommunity.com/DevCenter/PkgResources#workingset-objects > > Where as DistributionDirectories is a dictionary of locations where > distributions are installed. The WorkingSet may be comprised of > distributions from several different locations, and each location may > contain the same or different versions of the same distribution. DistributionDirectories can contain directories that are not located in the same parent directory, so I find it rather similar besides the "active" feature in Python doesn't exist (yet) In any case, maybe picking up a name that is not from setuptools will be less confusing for people that uses WorkingSet classes nowadays. What about using the same names used in Python's site module: "sitedir" is the name used for a directory we named DistributionDirectory. So what about : DistributionDirectory -> SiteDir DistributionDirectories -> SiteDirMap ++ Tarek _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- [Python-Dev] PEP 376 Tarek Ziadé
- Re: [Python-Dev] PEP 376 Antoine Pitrou
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Message not available
- Re: [Python-Dev] PEP 376 P.J. Eby
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Re: [Python-Dev] PEP 376 Kevin Teague
- Re: [Python-Dev] PEP 376 Tarek Ziadé <=
- Re: [Python-Dev] PEP 376 Nick Coghlan
- Re: [Python-Dev] PEP 376 Sridhar Ratnakumar
- Re: [Python-Dev] PEP 376 Antoine Pitrou
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Message not available
- Re: [Python-Dev] PEP 376 P.J. Eby