Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Martin v. Löwis
> Sorry to revive this thread, but mktemp() is very useful when the file is > meant > to be created by another application (e.g. launched by subprocess, but it > could > even be a daemon running under a different user). For example if I have a > processing chain to converts a PDF to a temporary J

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

2008-05-06 Thread Stephen J. Turnbull
Greg Ewing writes: > [EMAIL PROTECTED] wrote: > > I guess we're going to have to agree to disagree. I find hiding > directories > > which contain executable code extremely non-obvious. > > I'm worried by this too. I don't like the idea of putting > large and important things in hidden d

Re: [Python-Dev] urllib unicode handling

2008-05-06 Thread Jeroen Ruigrok van der Werven
-On [20080507 04:06], Tom Pinckney ([EMAIL PROTECTED]) wrote: >While in theory UTF-8 is not a standard, sites like Last.fm, Facebook and >Wikipedia seem to have embraced it (as have pretty much all other major web >sites). As with HTML, there is what the standard says and what the actual >browse

Re: [Python-Dev] urllib unicode handling

2008-05-06 Thread Martin v. Löwis
> Thanks for any thoughts on this, The proper way to implement this would be IRIs (RFC 3987), in particular section 3.1. This is not as simple as just encoding it as UTF-8, as you might have to apply IDNA to the host part. Code doing so just hasn't been contributed yet. Regards, Martin _

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

2008-05-06 Thread Martin v. Löwis
>> Check out http://openid-provider.appspot.com/ >> >> Apparently it was created by your colleague Ryan Barrett. :) I found that to be of limited use. If I use my proper gmail account ([EMAIL PROTECTED]), I managed to log into the OpenID directory, but not, say, into SourceForge (probably becaus

[Python-Dev] urllib unicode handling

2008-05-06 Thread Tom Pinckney
Hi, While trying to use urllib in python 2.5.1 to HTTP GET content from various web sites, I've run into a problem with urllib.quote (and .quote_plus): they don't accept unicode strings. I see that this is an issue that has been discussed before: see this thread: http://mail.pytho

Re: [Python-Dev] [Python-3000] PEP 370 (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-06 Thread Christian Heimes
Greg Ewing schrieb: > Guido van Rossum wrote: >> The location will be somewhere under ~/.local >> for Unix/Linux/OS X, > > Can I just put in a plea for this to be somewhere > under ~/Library on OSX, and not hidden? > > MacOSX already has clear conventions for this sort > of thing -- there's no ne

[Python-Dev] A Python-Dev bundle for TextMate

2008-05-06 Thread Brett Cannon
I just checked in Misc/TextMate/Python-Dev.tmbundle for those of you use TextMate. I have been using this bundle for a while and I figured others could use it. Usage tends to expect that you have opened a project from the top-level directory of a Python checkout. There is support to run the Makefi

Re: [Python-Dev] [Python-3000] PEP 370 (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-06 Thread Greg Ewing
Guido van Rossum wrote: The location will be somewhere under ~/.local for Unix/Linux/OS X, Can I just put in a plea for this to be somewhere under ~/Library on OSX, and not hidden? MacOSX already has clear conventions for this sort of thing -- there's no need to use a dot-name there. -- Greg

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

2008-05-06 Thread Greg Ewing
Steve Holden wrote: If you want it visible, make a visible symbolic link! I have to know it's there first. The idea of an installer deliberately hiding stuff from me in a very unconventional and non-obvious way makes me uncomfortable. -- Greg ___ Py

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

2008-05-06 Thread Greg Ewing
[EMAIL PROTECTED] wrote: > I guess we're going to have to agree to disagree. I find hiding directories > which contain executable code extremely non-obvious. I'm worried by this too. I don't like the idea of putting large and important things in hidden directories automatically without being tol

Re: [Python-Dev] r62778 - in python/branches/py3k: Lib/io.py Lib/test/test_StringIO.py Lib/test/test_io.py Lib/test/test_largefile.py Lib/test/test_memoryio.py Lib/test/test_mimetools.py Modules/_byte

2008-05-06 Thread Christian Heimes
alexandre.vassalotti schrieb: > Author: alexandre.vassalotti > Date: Tue May 6 21:48:38 2008 > New Revision: 62778 > > Log: > Added fast alternate io.BytesIO implementation and its test suite. > Removed old test suite for StringIO. > Modified truncate() to imply a seek to given argument value. T

Re: [Python-Dev] PEP 370 heads up

2008-05-06 Thread Christian Heimes
Barry Warsaw schrieb: > Very awesome Christian! I'm psyched for this to get into the last alpha > releases, which I remind everyone happens tomorrow. Plan on svn tree > freeze at approximately 6pm EDT (2200 UTC). Thanks Barry! Also thanks to Glyph, Nick and all the other people that stepped in d

Re: [Python-Dev] PEP 370 heads up

2008-05-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 6, 2008, at 6:38 PM, Christian Heimes wrote: Guido has accepted my user site directory PEP today. http://python.org/dev/peps/pep-0370/ I'm about the merge the code. But first I like to let you know some things and get your opinion. Very aw

[Python-Dev] PEP 370 heads up

2008-05-06 Thread Christian Heimes
Dear fellow Pythonistas! Guido has accepted my user site directory PEP today. http://python.org/dev/peps/pep-0370/ I'm about the merge the code. But first I like to let you know some things and get your opinion. The location of the user site-package directory stays as written in my PEP. The mast

Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Greg Ewing
Tristan Seligmann wrote: The correct way to do this is to create a temporary directory, and then generate a filename underneath that directory to use. Yes, otherwise you can get bitten by the race condition that's the reason for mktemp being deprecated. -- Greg ___

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

2008-05-06 Thread Greg Ewing
Jeroen Ruigrok van der Werven wrote: Is it a reference to Gerrit Rietveld (Dutch architect and furniture designer)? I guess the architect part would make sense for a code review tool. :) According to Wikipedia, he was also a friend of Mondrian and incorporated some of Mondrian's ideas into his

Re: [Python-Dev] Another GSoC Student Introduction

2008-05-06 Thread Robert Schuppenies
Hi Everybody. My name is Robert Schuppenies and I also got accepted for this years Google Summer of Code. I will be working on the Python Core with the Memory Usage Profiler project and my mentor will be Martin von Löwis. I am very happy that I got selected and look forward to work on my project.

Re: [Python-Dev] ctypes documentation

2008-05-06 Thread Benjamin Peterson
On Tue, May 6, 2008 at 11:43 AM, Bill Janssen <[EMAIL PROTECTED]> wrote: > I just made another attempt to use ctypes to wrap a library, and am > facing the same problem I had the last time: the documentation doesn't > really work. I'm wondering if we have any projects underway to > re-write it

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

2008-05-06 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Tue, May 6, 2008 at 10:41 AM, Alexander Michael <[EMAIL PROTECTED]> wrote: | > Was it also a coincidence that Mondrian and Rietveld were both members | > of the De Stijl movement? If so, a very nice one! | | No

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

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 10:41 AM, Alexander Michael <[EMAIL PROTECTED]> wrote: > Was it also a coincidence that Mondrian and Rietveld were both members > of the De Stijl movement? If so, a very nice one! No, that's my naming scheme. :-) -- --Guido van Rossum (home page: http://www.python.org/~g

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

2008-05-06 Thread Alexander Michael
On Tue, May 6, 2008 at 1:26 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 12:51 AM, Jeroen Ruigrok van der Werven > <[EMAIL PROTECTED]> wrote: > > -On [20080505 05:38], Guido van Rossum ([EMAIL PROTECTED]) wrote: > > > http://code.google.com/p/rietveld/source/browse

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

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 12:51 AM, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > -On [20080505 05:38], Guido van Rossum ([EMAIL PROTECTED]) wrote: > > http://code.google.com/p/rietveld/source/browse > > Is it a reference to Gerrit Rietveld (Dutch architect and furniture > designer)?

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

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 12:48 AM, Jeroen Ruigrok van der Werven wrote: > -On [20080505 18:28], Guido van Rossum ([EMAIL PROTECTED]) wrote: > >- AppEngine has a built-in API for dealing with Google Accounts, but > >not for OpenID > > > >- Apparently OpenID requires some crypto that would be slow

Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 4:19 AM, Tristan Seligmann <[EMAIL PROTECTED]> wrote: > * Antoine Pitrou <[EMAIL PROTECTED]> [2008-05-06 10:47:23 +]: > > Sorry to revive this thread, but mktemp() is very useful when the file is > meant > > to be created by another application (e.g. launched by subpro

Re: [Python-Dev] [Python-3000] PEP 370 (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-06 Thread Guido van Rossum
All, I've accepted PEP 370, Christian Heimes's proposal to add a per-user site-package directory. The location will be somewhere under ~/.local for Unix/Linux/OS X, and %APPDATA%/Python for Windows (per the original proposal in the PEP). Congratulations Christian, and thanks for championing this.

[Python-Dev] ctypes documentation

2008-05-06 Thread Bill Janssen
I just made another attempt to use ctypes to wrap a library, and am facing the same problem I had the last time: the documentation doesn't really work. I'm wondering if we have any projects underway to re-write it? Bill ___ Python-Dev mailing list Pyth

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

2008-05-06 Thread skip
>> /usr/.local to /usr/local? If not, then why prefer ~/.local to ~/local? Alec> Because unlike a home directory, users don't frequently perform Alec> directory listings or tab completion of /usr/. For a frequently Alec> used personal directory one wants the minimum of noise. I

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

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 7:37 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > If you want it visible, make a visible symbolic link! Note that the point is moot, since I'm going to accept Christian's PEP, i.e. ~/.local, but this argument "you can make it visible yourself" is bogus. The point of visibi

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

2008-05-06 Thread Guido van Rossum
On Tue, May 6, 2008 at 8:11 AM, Alec Thomas <[EMAIL PROTECTED]> wrote: > Python would not be unique. Mozilla/Firefox does exactly this, putting > per-user plugins in ~/.mozilla. Note that this is moot since I'm going to accept the PEP as it stands (i.e. ~/.local) but I want to point out somethin

Re: [Python-Dev] AST Optimization: Branch Elimination in Generator Functions

2008-05-06 Thread Jeremy Hylton
I'm not sure I understand the problem exactly. If we have one pass converting the concrete syntax to the AST, we can mark functions as generators as part of that pass. In a later pass, you can remove the unreachable code. Jeremy On Sat, May 3, 2008 at 12:51 AM, Thomas Lee <[EMAIL PROTECTED]> wr

Re: [Python-Dev] Optimization of Python ASTs: How should we deal with constant values?

2008-05-06 Thread Jeremy Hylton
On Fri, May 2, 2008 at 1:38 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Thomas Lee wrote: > > Martin v. Löwis wrote: > >>> This leaves us with a few options: > >>> > >> > >> 5. Reuse/Abuse Num(object) for arbitrary constants. > >>AFAICT, this should work out of the box. > >> > >>

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

2008-05-06 Thread Mike Meyer
On Fri, 02 May 2008 00:03:24 - [EMAIL PROTECTED] wrote: > On 11:45 pm, [EMAIL PROTECTED] wrote: > >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 nee

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

2008-05-06 Thread Bill Janssen
> > /usr/.local to /usr/local? If not, then why prefer ~/.local to ~/local? > > Because unlike a home directory, users don't frequently perform > directory listings or tab completion of /usr/. For a frequently used > personal directory one wants the minimum of noise. Glad someone around here kn

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

2008-05-06 Thread Alec Thomas
2008/5/7 <[EMAIL PROTECTED]>: > > Alec> FWIW my vote is for ~/.python. ~/.local comes in a distant second > Alec> due to non-obviousness and ~/Python is several light years beyond > Alec> that. > > I guess we're going to have to agree to disagree. I find hiding directories > which c

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

2008-05-06 Thread skip
Alec> FWIW my vote is for ~/.python. ~/.local comes in a distant second Alec> due to non-obviousness and ~/Python is several light years beyond Alec> that. I guess we're going to have to agree to disagree. I find hiding directories which contain executable code extremely non-obvious.

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

2008-05-06 Thread Nick Coghlan
Alec Thomas wrote: FWIW my vote is for ~/.python. ~/.local comes in a distant second due to non-obviousness and ~/Python is several light years beyond that. I think if the obviousness (or lack thereof) of the chosen directory name ever really matters to anyone, we did it wrong. After all, unle

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

2008-05-06 Thread Alec Thomas
2008/5/6 Barry Warsaw <[EMAIL PROTECTED]>: > On May 1, 2008, at 8:03 PM, [EMAIL PROTECTED] wrote: > > Am I the only guy who finds software that insists on visible, fixed files > in my home directory rude? vmware, for example, wants a "~/vmware" > directory, but pretty much every other application

Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Tristan Seligmann
* Antoine Pitrou <[EMAIL PROTECTED]> [2008-05-06 10:47:23 +]: > pobox.com> writes: > > > > Back in r29829, Guido commented out the security hole warning for > > tempfile.mktemp: > > > [...] > > > > Comment out the warnings about mktemp(). These are too annoying, and > > often unav

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

2008-05-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 1, 2008, at 8:03 PM, [EMAIL PROTECTED] wrote: Am I the only guy who finds software that insists on visible, fixed files in my home directory rude? vmware, for example, wants a "~/ vmware" directory, but pretty much every other application

Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Antoine Pitrou
pobox.com> writes: > > Back in r29829, Guido commented out the security hole warning for > tempfile.mktemp: > [...] > > Comment out the warnings about mktemp(). These are too annoying, and > often unavoidable. > > Any thought about whether this warning should be restored? We're 5+ ye

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

2008-05-06 Thread Jeroen Ruigrok van der Werven
-On [20080505 05:38], Guido van Rossum ([EMAIL PROTECTED]) wrote: > http://code.google.com/p/rietveld/source/browse Is it a reference to Gerrit Rietveld (Dutch architect and furniture designer)? I guess the architect part would make sense for a code review tool. :) -- Jeroen Ruigrok van der Wer

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

2008-05-06 Thread Jeroen Ruigrok van der Werven
-On [20080505 18:28], Guido van Rossum ([EMAIL PROTECTED]) wrote: >- AppEngine has a built-in API for dealing with Google Accounts, but >not for OpenID > >- Apparently OpenID requires some crypto that would be slow without >additional API support > >- I'm not personally familiar with OpenID Check