Re: [Python-Dev] regarding HTML mail

2012-03-20 Thread Tshepang Lekhonkhobe
On Mon, Mar 19, 2012 at 20:20, Barry Warsaw wrote: >>Can we have some guideline to allow only plain text emails, so as to >>avoid cases like >>http://mail.python.org/pipermail/docs/2012-March/007999.html, where >>you are forced to scroll horizontally in order to read the text. > > docs is a differ

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-20 Thread Matt Joiner
I believe we should make a monotonic_time method that assures monotonicity and be done with it. Forward steadiness can not be guaranteed. No parameters. On Mar 20, 2012 2:56 PM, "Steven D'Aprano" wrote: > On Mon, Mar 19, 2012 at 01:35:49PM +0100, Victor Stinner wrote: > > > Said differently: time

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-20 Thread Glyph
On Mar 20, 2012, at 3:33 AM, Matt Joiner wrote: > I believe we should make a monotonic_time method that assures monotonicity > and be done with it. Forward steadiness can not be guaranteed. No parameters. > I think this discussion has veered off a bit into the overly-theoretical. Python cann

Re: [Python-Dev] PEP czar for PEP 3144?

2012-03-20 Thread Greg Ewing
Guido van Rossum wrote: I personally like having 'iter' in the name (e.g. iterkeys() -- note that we dropped this in Py3k because it's no longer an iterator, it's a dict view now. But I don't want to promote that style for ipaddr.py. +1 from me too on having all methods that return iterators c

Re: [Python-Dev] Issue #10278 -- why not just an attribute?

2012-03-20 Thread Victor Stinner
2012/3/20 Jim J. Jewett : > > > In http://mail.python.org/pipermail/python-dev/2012-March/117762.html > Georg Brandl posted: > >>> +   If available, a monotonic clock is used. By default, if *strict* is >>> False, >>> +   the function falls back to another clock if the monotonic clock failed >>>

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-20 Thread Victor Stinner
> I think this discussion has veered off a bit into the overly-theoretical. >  Python cannot really "guarantee" anything here That's why the function name was changed from time.monotonic() to time.steady(strict=True). If you want to change something, you should change the documentation to list OS

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Mark Hammond
For those who missed it, in http://bugs.python.org/issue14302, Martin recently commented: """ After more discussion, it appears that this change is too incompatible to be done in a single release. Therefore, I propose a long-term change into this direction, with the actual change not happeni

Re: [Python-Dev] cpython: Issue #10278: Add an optional strict argument to time.steady(), False by default

2012-03-20 Thread R. David Murray
On Tue, 20 Mar 2012 04:43:44 -0400, Glyph wrote: > > On Mar 20, 2012, at 3:33 AM, Matt Joiner wrote: > > > I believe we should make a monotonic_time method that assures monotonicity > > and be done with it. Forward steadiness can not be guaranteed. No > > parameters. > > > > I think this dis

[Python-Dev] pysandbox 1.5 released

2012-03-20 Thread Victor Stinner
pysandbox is a Python sandbox. By default, untrusted code executed in the sandbox cannot modify the environment (write a file, use print or import a module). But you can configure the sandbox to choose exactly which features are allowed or not, e.g. import sys module and read /etc/issue file. http

Re: [Python-Dev] PEP czar for PEP 3144?

2012-03-20 Thread Ethan Furman
Greg Ewing wrote: Guido van Rossum wrote: I personally like having 'iter' in the name (e.g. iterkeys() -- note that we dropped this in Py3k because it's no longer an iterator, it's a dict view now. But I don't want to promote that style for ipaddr.py. +1 from me too on having all methods that

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Lindberg, Van
On 3/20/2012 5:48 AM, Mark Hammond wrote: > While I'm still unclear on the actual benefits of this, Martin's > approach strikes a reasonable compromise so I withdraw my objections. Ok. I was out of town and so could not respond to most of the latest discussion. A question for you Mark, Paul, (a

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Tim Golden
On 20/03/2012 14:08, VanL wrote: On 3/20/2012 5:48 AM, Mark Hammond wrote: While I'm still unclear on the actual benefits of this, Martin's approach strikes a reasonable compromise so I withdraw my objections. Ok. I was out of town and so could not respond to most of the latest discussion. A

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
Germane to this discussion, I reached out for feedback. Most people didn't care about the issue, or were slightly inclined to have it be uniform across platforms. As Terry mentioned, I think that long-term uniformity will benefit everybody down the line, and that is the way to go. The most i

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Martin v. Löwis
> In hearing from a couple people who teach python to beginners, this is a > substantial hurdle - the first thing they need to do is to edit their > environment to add these directories to the PATH. This is something I never understood. On Windows, it's custom to launch programs from the start men

Re: [Python-Dev] pysandbox 1.5 released

2012-03-20 Thread Yury Selivanov
Well, I really hope that the PEP regarding frozendict will be accepted. Especially due to the fact that the required changes are small. With the recent projects like clojure-py, blog posts like http://goo.gl/bFB5x (Python becomes a platform), your pysandbox, it became clear that people start eval

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 10:52 AM, "Martin v. Löwis" wrote: In hearing from a couple people who teach python to beginners, this is a substantial hurdle - the first thing they need to do is to edit their environment to add these directories to the PATH. This is something I never understood. On Windows, it's

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Brian Curtin
On Tue, Mar 20, 2012 at 10:52, "Martin v. Löwis" wrote: >> In hearing from a couple people who teach python to beginners, this is a >> substantial hurdle - the first thing they need to do is to edit their >> environment to add these directories to the PATH. > > This is something I never understood

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Martin v. Löwis
> 1. Run python from the start menu. > - Import sys, fiddle with sys.path to add my module, import/run my > module, do my tests. When you exit /hard error out, the python window > disappears. > > 2. Double-click the .py file > - Runs the file, but then disappears immediately (unless you put in > s

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 11:19 AM, "Martin v. Löwis" wrote: No - there is an version #3a: 3.a) Get a shell and run the script CD into the directory, then directly run foo.py, without prefixing it with python.exe. This doesn't require any changes to the path, and is shorter in usage than having the path spe

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Terry Reedy
On 3/20/2012 12:02 PM, VanL wrote: On 3/20/2012 10:52 AM, "Martin v. Löwis" wrote: In hearing from a couple people who teach python to beginners, this is a substantial hurdle - the first thing they need to do is to edit their environment to add these directories to the PATH. This is something I

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 11:19 AM, "Martin v. Löwis" wrote: No - there is an version #3a: 3.a) Get a shell and run the script CD into the directory, then directly run foo.py, without prefixing it with python.exe. This doesn't require any changes to the path, and is shorter in usage than having the path sp

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Paul Moore
On 20 March 2012 14:08, Lindberg, Van wrote: > On 3/20/2012 5:48 AM, Mark Hammond wrote: >> While I'm still unclear on the actual benefits of this, Martin's >> approach strikes a reasonable compromise so I withdraw my objections. > > > Ok. I was out of town and so could not respond to most of the

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread martin
When IDLE crashes, running it from a cmd window is the only way to get a traceback to help diagnose the problem. Certainly. In this case, there is no PATH issue, though: you have to CD into the Python installation, anyway, to start IDLE - and there you have python.exe in the current directory.

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Carl Meyer
On 03/20/2012 12:19 PM, Paul Moore wrote: > I also note that I'm assuming virtualenv will change to match whatever > the Python version it's referencing does. I don't see how you can > guarantee that, but if there are discrepancies between virtualenvs and > installed Pythons, my level of objection

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Merlijn van Deen
On 13 March 2012 20:43, VanL wrote: > Following up on conversations at PyCon, I want to bring up one of my > personal hobby horses for change in 3.3: Fix install layout on Windows, with > a side order of making the PATH work better. As this is being considered an 'incompatible change' on the bug

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Paul Moore
On 20 March 2012 14:27, VanL wrote: > Germane to this discussion, I reached out for feedback. Most people didn't > care about the issue, or were slightly inclined to have it be uniform across > platforms. > > As Terry mentioned, I think that long-term uniformity will benefit everybody > down the l

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 1:50 PM, Merlijn van Deen wrote: On 13 March 2012 20:43, VanL wrote: Following up on conversations at PyCon, I want to bring up one of my personal hobby horses for change in 3.3: Fix install layout on Windows, with a side order of making the PATH work better. As this is being con

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 1:56 PM, Paul Moore wrote: This is covered (better, IMO) by PEP 397 - Python Launcher for Windows. Step 2, just run "py". If you prefer a particular version, run "py -2" or "py -3" or "py -3.2". Interesting. I haven't played around with that at all, so can't comment. I will hav

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Lindberg, Van
On 3/20/2012 1:19 PM, Paul Moore wrote: > Somewhat. I don't really object to #1, but mildly object to #2. I also > note that the proposals round the Lib directory seem to have > disappeared. I assume those have been dropped - they were the ones I > did object to. They are of secondary importance t

Re: [Python-Dev] [Python-checkins] cpython: Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords.

2012-03-20 Thread Benjamin Peterson
2012/3/20 larry.hastings : > http://hg.python.org/cpython/rev/052779d34945 > changeset:   75842:052779d34945 > parent:      75839:1c0058991740 > user:        Larry Hastings > date:        Tue Mar 20 20:06:16 2012 + > summary: >  Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndK

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Paul Moore
On 20 March 2012 19:35, Lindberg, Van wrote: > I would like to know if you would object to user lib installs matching > the system install. I.e., would it cause problems with you if it were > just 'lib' everywhere, with no 'lib/python{version}'? It sounded like > adding the version directory was t

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Paul Moore
On 20 March 2012 19:22, VanL wrote: > There are a number of casual users that probably only have one version > installed, but every python user/dev on windows that I know has one python > that they consider to be "python," and everything else needs to be launched > with a suffix (e.g., python26.ex

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 3:15 PM, Paul Moore wrote: On 20 March 2012 19:35, Lindberg, Van wrote: I would like to know if you would object to user lib installs matching the system install. I.e., would it cause problems with you if it were just 'lib' everywhere, with no 'lib/python{version}'? It sounded like

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Glenn Linderman
On 3/20/2012 11:50 AM, Merlijn van Deen wrote: As this is being considered an 'incompatible change' on the bug tracker item [1] in any case, I'd like to mention that this might also be a convenient moment to re-think the default install location. After all, software is supposed to be installed in

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Lindberg, Van
On 3/20/2012 3:31 PM, Paul Moore wrote: > Serious question: Given a brand new PC, if you were installing Python > 2.7, 3.2, 3.3a1, jython, and pypy, what would you do (beyond simply > running 5 installers) to get your environment set up the way you want? I install each python in its own directory:

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Mark Hammond
On 21/03/2012 1:08 AM, Lindberg, Van wrote: On 3/20/2012 5:48 AM, Mark Hammond wrote: While I'm still unclear on the actual benefits of this, Martin's approach strikes a reasonable compromise so I withdraw my objections. Ok. I was out of town and so could not respond to most of the latest dis

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On 3/20/2012 4:49 PM, Mark Hammond wrote: So I'm assuming that: * The executable (and DLL) are moved to a "bin" directory in an installed Python. * distutils etc will change to install all "scripts" (or executables generated from scripts) into that same directory. IOW, "Scripts" would die. *

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Paul Moore
On 20 March 2012 22:00, VanL wrote: > On 3/20/2012 4:49 PM, Mark Hammond wrote: >> >> So I'm assuming that: >> * The executable (and DLL) are moved to a "bin" directory in an installed >> Python. >> * distutils etc will change to install all "scripts" (or executables >> generated from scripts) int

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Mark Hammond
On 21/03/2012 5:50 AM, Merlijn van Deen wrote: On 13 March 2012 20:43, VanL wrote: Following up on conversations at PyCon, I want to bring up one of my personal hobby horses for change in 3.3: Fix install layout on Windows, with a side order of making the PATH work better. As this is being co

[Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Georg Brandl
Hi all, recently I've grown a bit tired of seeing our default Sphinx theme, especially as so many other projects use it. I decided to play around with something "clean" this time, and this is the result: http://www.python.org/~gbrandl/build/html/ The corresponding sandbox repo is at http:/

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Guido van Rossum
Nice and clean, but looks too similar to newer Google properties... Also I see that (like Google) you're falling for the fallacy of using less contrast. From an accessibility perspective that's questionable -- and I don't mean the legally blind, just people like myself whose eyes are getting a bit

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread R. David Murray
On Wed, 21 Mar 2012 09:09:38 +1100, Mark Hammond wrote: > On 21/03/2012 5:50 AM, Merlijn van Deen wrote: > > I asked a question about this on IRC, to which the response was that > > there were two main reasons to install python in c:\pythonxy: > > > > 1 - issues due to spaces ('Program Files') or

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread John O'Connor
On Tue, Mar 20, 2012 at 6:38 PM, Georg Brandl wrote: > recently I've grown a bit tired of seeing our default Sphinx theme, > especially as so many other projects use it. I think regardless of the chosen style, giving the Python 3 docs a different look and feel also has a psychological benefit tha

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread R. David Murray
On Tue, 20 Mar 2012 23:38:53 +0100, Georg Brandl wrote: > Hi all, > > recently I've grown a bit tired of seeing our default Sphinx theme, > especially as so many other projects use it. I decided to play around > with something "clean" this time, and this is the result: > > http://www.python.o

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Mark Hammond
On 21/03/2012 9:45 AM, R. David Murray wrote: On Wed, 21 Mar 2012 09:09:38 +1100, Mark Hammond wrote: On 21/03/2012 5:50 AM, Merlijn van Deen wrote: I asked a question about this on IRC, to which the response was that there were two main reasons to install python in c:\pythonxy: 1 - issues d

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Glenn Linderman
On 3/20/2012 4:25 PM, Mark Hammond wrote: I think it does. Consider I've installed Python as a "system install". Now I want to install some other package - ideally that installer will request elevation - all well and good - the .py files are installed. However, next time I want to run Python,

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/20/2012 06:45 PM, Guido van Rossum wrote: > Nice and clean, but looks too similar to newer Google properties... > Also I see that (like Google) you're falling for the fallacy of using > less contrast. From an accessibility perspective that's qu

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Antoine Pitrou
Hi Georg, On Tue, 20 Mar 2012 23:38:53 +0100 Georg Brandl wrote: > Hi all, > > recently I've grown a bit tired of seeing our default Sphinx theme, > especially as so many other projects use it. I decided to play around > with something "clean" this time, and this is the result: > > http://w

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Cameron Simpson
On 20Mar2012 15:45, Guido van Rossum wrote: | Nice and clean, but looks too similar to newer Google properties... | Also I see that (like Google) you're falling for the fallacy of using | less contrast. From an accessibility perspective that's questionable | -- and I don't mean the legally blind,

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Raymond Hettinger
On Mar 20, 2012, at 5:37 PM, Antoine Pitrou wrote: > Georg Brandl wrote: >> Hi all, >> >> recently I've grown a bit tired of seeing our default Sphinx theme, >> especially as so many other projects use it. I decided to play around >> with something "clean" this time, and this is the result: >>

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Terry Reedy
On 3/20/2012 6:38 PM, Georg Brandl wrote: The current green on the front page is too heavy. Otherwise I prefer the old. I like the color on the index chart of the builtin-functions page. You un-bolded most (not all) of the entries and then are definitely too thin now. You unbolded the blue els

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread VanL
On Tuesday, March 20, 2012 at 5:07 PM, Paul Moore wrote: > It's worth remembering Éric's point - distutils is frozen and changes > are in theory not allowed. This part of the proposal is not possible > without an exception to that ruling. Personally, I don't see how > making this change could be a

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Ned Batchelder
On 3/20/2012 6:38 PM, Georg Brandl wrote: Let me know what you think, or play around and send some improvements. (The collapsible sidebar is not adapted to it yet, but will definitely be integrated before I consider applying a new theme to the real docs.) Not to add to the chorus of tweakers, but

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Éric Araujo
Hi, Le 20/03/2012 21:40, VanL a écrit : > On Tuesday, March 20, 2012 at 5:07 PM, Paul Moore wrote: >> It's worth remembering Éric's point - distutils is frozen and changes >> are in theory not allowed. This part of the proposal is not possible >> without an exception to that ruling. Personally, I

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-20 Thread Greg Ewing
R. David Murray wrote: My understanding, though, is that Python does make a distinction between a system install of Python and a per-user one, so I don't think your objection really applies. Seems to me that for Python at least, the important distinction is not so much where the files are place

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Georg Brandl
On 20.03.2012 23:45, Guido van Rossum wrote: > Nice and clean, but looks too similar to newer Google properties... > Also I see that (like Google) you're falling for the fallacy of using > less contrast. From an accessibility perspective that's questionable > -- and I don't mean the legally blind,

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Georg Brandl
On 21.03.2012 00:17, R. David Murray wrote: > On Tue, 20 Mar 2012 23:38:53 +0100, Georg Brandl wrote: >> Hi all, >> >> recently I've grown a bit tired of seeing our default Sphinx theme, >> especially as so many other projects use it. I decided to play around >> with something "clean" this time,

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-20 Thread Georg Brandl
On 21.03.2012 01:57, Raymond Hettinger wrote: > > On Mar 20, 2012, at 5:37 PM, Antoine Pitrou wrote: > >> Georg Brandl mailto:g.bra...@gmx.net>> wrote: >>> Hi all, >>> >>> recently I've grown a bit tired of seeing our default Sphinx theme, >>> especially as so many other projects use it. I decid