Re: [Python-Dev] PEP 376

2009-06-23 Thread P.J. Eby
At 10:38 AM 6/23/2009 +0200, Tarek Ziadé wrote: What about using the same names used in Python's site module: "sitedir" is the name used for a directory we named DistributionDirectory. No, a site dir is a Python-defined directory for site-installed packages, and/or a directory where .pth files

Re: [Python-Dev] Adding syntax for units of measure

2009-06-23 Thread skip
>> Has anyone added special syntax to allow writing numeric literals with >> physical units? So you can write 12m + 34cm, and would get 12.34m. ... Georg> normally you wouldn't add units to the language itself. ... Georg> For the interactive shell, using a wrapper that allow

Re: [Python-Dev] PEP 376

2009-06-23 Thread Sridhar Ratnakumar
On 09-06-23 02:57 AM, Nick Coghlan wrote: Something like DistributionDirectoryMap should cover it. You could probably get away with shortening "Directory" to "Dir" in the class names though: - Distribution - ZippedDistribution - DistributionDir - ZippedDistributionDir - DistributionDi

Re: [Python-Dev] Python 3.0.1 and mingw

2009-06-23 Thread Aahz
On Tue, Jun 23, 2009, Vincent R. wrote: > > I wanted to know if you have some patch to compile python 3.x on mingw > platform because I found some but doesn't work very well : This question belongs on comp.lang.python, please re-post there. -- Aahz (a...@pythoncraft.com) <*> htt

[Python-Dev] Python 3.0.1 and mingw

2009-06-23 Thread Vincent R.
Hi, I wanted to know if you have some patch to compile python 3.x on mingw platform because I found some but doesn't work very well : > make gcc -o python.exe \ Modules/python.o \ libpython3.0.a-lm Could not find platform independent libraries Could not find platform dependent libraries C

Re: [Python-Dev] Adding syntax for units of measure

2009-06-23 Thread Georg Brandl
Tobias C. Rittweiler schrieb: > Hi! > > Has anyone added special syntax to allow writing numeric literals with > physical units? So you can write 12m + 34cm, and would get 12.34m. > > My question is how would you modify the BNF the most sensible way to > allow for this? The above example is simpl

Re: [Python-Dev] Adding syntax for units of measure

2009-06-23 Thread Christian Heimes
Tobias C. Rittweiler schrieb: > Hi! > > Has anyone added special syntax to allow writing numeric literals with > physical units? So you can write 12m + 34cm, and would get 12.34m. > > My question is how would you modify the BNF the most sensible way to > allow for this? The above example is simpl

Re: [Python-Dev] PEP 376

2009-06-23 Thread Nick Coghlan
Tarek Ziadé wrote: > So what about : > > DistributionDirectory -> SiteDir > DistributionDirectories -> SiteDirMap 'site' has too many connections to existing concepts for my liking (site.py, sitesetup.py, site-packages). Something like DistributionDirectoryMap should cover it. You could probab

Re: [Python-Dev] PEP 376

2009-06-23 Thread Tarek Ziadé
On Tue, Jun 23, 2009 at 3:41 AM, Kevin Teague 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

Re: [Python-Dev] PEP 376

2009-06-23 Thread Tarek Ziadé
2009/6/22 P.J. Eby : > At 05:42 PM 6/22/2009 +0200, Tarek Ziadé wrote: >> >> Wouldn't it be better to use the native line terminator on the current >> platform? (someone might want to edit or at least view the file) >> >> >> Good idea, I'll change that, >> > > As long as the file is always *read* w

Re: [Python-Dev] Adding syntax for units of measure

2009-06-23 Thread Terry Reedy
Tobias C. Rittweiler wrote: Has anyone added special syntax to allow writing numeric literals with physical units? So you can write 12m + 34cm, and would get 12.34m. Python-dev is for concrete discussion of development of the next versions. Questions and speculative discussion should generall