[Python-3000] PEP 8 Style Guide and Python 3

2008-05-02 Thread Terry Reedy
At least one of the style recommendations in PEP 8 -- use class rather that string exceptions -- is obsolete in Py 3. And there are others, and perhaps others where the spirit of the recommendation is the same but details are different. For a new Python 3 programmer who does not need or want t

Re: [Python-3000] Displaying strings containing unicode escapes

2008-05-02 Thread Atsuo Ishimoto
On Sat, May 3, 2008 at 7:33 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: > so print(s.encode('unicode_escape)) ? > Fine with me, especially if that or whatever is added to the repr() doc. > I don't recommend repr(obj).encode('unicode_escape'), because backslash characters in the string will be esc

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread skip
Fred> If user-local package installs went to ~/ by default ... with a Fred> way to set an alternate "prefix" instead of ~/ using a distutils Fred> configuration setting, I'd be happy enough. +1 from me. Skip ___ Python-3000 mailing list Pyt

Re: [Python-3000] ~/.local [was: Reminder: last alphas next Wednesday 07-May-2008]

2008-05-02 Thread Bill Janssen
> In particular, "pure Python" programs shouldn't much care, right? With the addition of ctypes, "pure" Python programs aren't so pure anymore. But even that should work across architectures, right? > Also, it's a generic problem of networked environments, not in > any way limited to "~", which

Re: [Python-3000] ~/.local [was: Reminder: last alphas next Wednesday 07-May-2008]

2008-05-02 Thread Stephen J. Turnbull
Bill Janssen writes: > Yeah, I was just pointing out that for me, "~" ports across a number > of different machines, and putting stuff specific to any particular > machine in there needs more thought. Sure. But AIUI that's not the problem that "~/.local" is intended to solve. Also, it's a ge

Re: [Python-3000] Displaying strings containing unicode escapes

2008-05-02 Thread Terry Reedy
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | > I think standard Python should somehow have two options: escape everything | > but ASCII (for unambuguity and old display systems) and escape nothing that | > is potentially printable (leaving pa

Re: [Python-3000] Invitation to try out open source code review tool

2008-05-02 Thread Guido van Rossum
On Fri, May 2, 2008 at 2:28 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > One more question: What's the number on the upper right hand corner by > my username? It's a debugging counter. It gets reset each time a new service instance is created. -- --Guido van Rossum (home page: http://www

Re: [Python-3000] [Python-Dev] warnings.showwarning (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-02 Thread Brett Cannon
On Fri, May 2, 2008 at 6:47 AM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: [SNIP] > > Hi Brett, > > > > I'm still seeing some strange behavior from the warnings module, This > > can be observed on the community buildbot for Twisted, for example: > > > > > http://python.org/dev/buildbot/communi

Re: [Python-3000] Invitation to try out open source code review tool

2008-05-02 Thread Benjamin Peterson
On Fri, May 2, 2008 at 4:25 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > My request at the moment is to let people use their real names for > > display; my email address does not at all resemble my name. > > I've noticed. Surely there's an interesting story there. :-) Maybe I tell you

Re: [Python-3000] Invitation to try out open source code review tool

2008-05-02 Thread Guido van Rossum
On Fri, May 2, 2008 at 2:09 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 11:41 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Some of you may have seen a video recorded in November 2006 where I > > showed off Mondrian, a code review tool that I was developing fo

Re: [Python-3000] Special offer! Ten code reviews

2008-05-02 Thread Benjamin Peterson
On Fri, May 2, 2008 at 3:32 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > I just tried to submit a patch using the Web form, and got a 500 Server > Error... It's been fixed. -- Cheers, Benjamin Peterson ___ Python-3000 mailing list Python-3000@pyt

Re: [Python-3000] Invitation to try out open source code review tool

2008-05-02 Thread Benjamin Peterson
On Thu, May 1, 2008 at 11:41 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Some of you may have seen a video recorded in November 2006 where I > showed off Mondrian, a code review tool that I was developing for > Google (http://www.youtube.com/watch?v=sMql3Di4Kgc). I've always hoped > that I

Re: [Python-3000] Special offer! Ten code reviews

2008-05-02 Thread Antoine Pitrou
Guido van Rossum python.org> writes: > > I'd like to get some more people trying out codereview.appspot.com, so > I'm offering the first 10 people to submit a new patch there for my > review to do the review by Monday. I just tried to submit a patch using the Web form, and got a 500 Server Error

Re: [Python-3000] ~/.local [was: Reminder: last alphas next Wednesday 07-May-2008]

2008-05-02 Thread Bill Janssen
> What it means (to me in the context of Unix-y system organization) is > "this is where I put stuff that I would be happy to have as part of > the system I was given (by some authority: my boss, Microsoft, or > Brett Cannon's stdlib PEP), but for some reason I'm not comfortable/ > permitted to ins

[Python-3000] ~/.local [was: Reminder: last alphas next Wednesday 07-May-2008]

2008-05-02 Thread Stephen J. Turnbull
Bill Janssen replied to Christian Heimes as follows:: > > I slightly prefer ~/.local/ over other suggestions > > but I'm also open to ~/.python.d/ > > Guido's point about it not being necessarily "local" is a good one. Christian Heimes (I think) wrote: > Windows and Mac OS X have dedicated

[Python-3000] Special offer! Ten code reviews

2008-05-02 Thread Guido van Rossum
I'd like to get some more people trying out codereview.appspot.com, so I'm offering the first 10 people to submit a new patch there for my review to do the review by Monday. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-300

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Bill Janssen
> Windows and Mac OS X have dedicated directories for application specific > libraries. That is ~/Library on Mac and Application Data on Windows. In fact, I had to write code for this, and had to read the specs for each. Here's the code (I've substituted Python for UpLib): if sys.platform == 'dar

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Bill Janssen
> I slightly prefer ~/.local/ over other suggestions > but I'm also open to ~/.python.d/ Guido's point about it not being necessarily "local" is a good one. I use lots of computers; they all automount my home directory (~) from a network file server. Nothing under that directory should be machin

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Fred Drake
On May 1, 2008, at 7:54 PM, Barry Warsaw wrote: Interesting. I'm of the opposite opinion. I really don't want Python dictating to me what my home directory should look like (a dot file doesn't count because so many tools conspire to hide it from me). I guess there's always $PYTHONUSERBASE

Re: [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Nick Coghlan
Barry Warsaw wrote: > Time is running short to get any new features into Python 2.6 and 3.0. > The release after this one is scheduled to be the first beta release, at > which time we will institute a feature freeze. If your feature doesn't > make it in by then, you'll have to wait until 2.7/3.1.

Re: [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Guido van Rossum
I'm withdrawing my opposition in the light of the sheer number of words that have already been written with this. On Fri, May 2, 2008 at 1:30 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum schrieb: > > > I like this, except one issue: I really don't like the .local > > directo

Re: [Python-3000] [Python-Dev] warnings.showwarning (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-02 Thread Jean-Paul Calderone
On Fri, 2 May 2008 09:32:49 -0400, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: On Thu, 1 May 2008 19:31:20 -0700, Brett Cannon <[EMAIL PROTECTED]> wrote: [snip] I just closed the release blocker I created (the backwards-compatibility issue with warnings.showwarning() ). I would like to add

[Python-3000] warnings.showwarning (was Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008)

2008-05-02 Thread Jean-Paul Calderone
On Thu, 1 May 2008 19:31:20 -0700, Brett Cannon <[EMAIL PROTECTED]> wrote: [snip] I just closed the release blocker I created (the backwards-compatibility issue with warnings.showwarning() ). I would like to add a PendingDeprecationWarning (or stronger) to 2.6 for showwarning() implementations

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 2, 2008, at 1:48 AM, [EMAIL PROTECTED] wrote: etc, though. In the long term, if everyone followed suit on ~/.local, that would be great. But I don't want a ~/Python, ~/Java, ~/Ruby, ~/PHP, ~/Perl, ~/OCaml and ~/Erlang and a $PATH as long

Re: [Python-3000] Displaying strings containing unicode escapes

2008-05-02 Thread Nick Coghlan
Terry Reedy wrote: I think standard Python should somehow have two options: escape everything but ASCII (for unambuguity and old display systems) and escape nothing that is potentially printable (leaving partially capable systems to fare as they will). In-between solutions will ultimately be p

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Nick Coghlan
Jeroen Ruigrok van der Werven wrote: -On [20080502 10:50], Steve Holden ([EMAIL PROTECTED]) wrote: Groan. Then everyone else realizes what a "great idea" this is, and we see ~/Perl/, ~/Ruby/, ~/C# (that'll screw the Microsoft users, a directory with a comment market in its nam

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
Jeroen Ruigrok van der Werven schrieb: > "Windows uses the Roaming folder for application specific data, such as > custom dictionaries, which are machine independent and should roam with the > user profile. The AppData\Roaming folder in Windows Vista is the same as the > Documents and Settings\user

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
Steve Holden schrieb: > Nothing to say about OS X. > > One day Windows might start to respect the "hidden dot" convention, but > perhaps in the interim we could create a (Windows-hidden) ~/.private/? > Assuming we could work out where to put it ;-) Windows and Mac OS X have dedicated directories

Re: [Python-3000] [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Steve Holden
Guido van Rossum wrote: I stand corrected on a few points. You've convinced me that ~/lib/ is wrong. But I still don't like ~/.local/; not in the last place because it's not any more local than any other dot files or directories. The "symmetry" with /usr/local/ is pretty weak, and certainly won't

Re: [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
Guido van Rossum schrieb: > I like this, except one issue: I really don't like the .local > directory. I don't see any compelling reason why this needs to be > ~/.local/lib/ -- IMO it should just be ~/lib/. There's no need to hide > it from view, especially since the user is expected to manage this