Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread David Borowitz
On Fri, May 7, 2010 at 21:04, Senthil Kumaran wrote: > On Sat, May 8, 2010 at 8:19 AM, David Abrahams wrote: > > > > This is a bug report. bugs.python.org seems to be down. > > Tracked here: http://bugs.python.org/issue8656 > > > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > > Is 'git+

Re: [Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread Senthil Kumaran
On Sat, May 8, 2010 at 8:19 AM, David Abrahams wrote: > > This is a bug report.  bugs.python.org seems to be down. Tracked here: http://bugs.python.org/issue8656 >  >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) Is 'git+file' a valid protocol? Or was it just your example? I don't see any r

[Python-Dev] urlparse.urlunsplit should be smarter about +

2010-05-07 Thread David Abrahams
This is a bug report. bugs.python.org seems to be down. >>> from urlparse import * >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) git+file:/foo/bar/baz Note the dropped slashes after the colon. -- Dave Abrahams Meet me at BoostCon: http://www.boostcon.com BoostPro Computi

Re: [Python-Dev] audience-instructors for Teach Me Python Bugfixing needed

2010-05-07 Thread Nick Coghlan
Vincent Davis wrote: > As a wanabe Dev I think the hardest thing is to find an open issue I can > actually fix and to have a mentor to help make sure I don't miss > something I did not know about. Does the "easy" tag help with that at all? It's intended to mark issues that aren't delving into dee

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Nick Coghlan
A.M. Kuchling wrote: > On Fri, May 07, 2010 at 07:52:49PM +1000, Nick Coghlan wrote: >> 3.x). I'll take a stab at a more accurate rationale: > > Thanks! I've applied the scalpel and reduced it to: I saw this go by on the checkin list - looks good (although Philip is right about mentioning PYTHON

Re: [Python-Dev] audience-instructors for Teach Me Python Bugfixing needed

2010-05-07 Thread Vincent Davis
On Thu, May 6, 2010 at 9:29 AM, Antoine Pitrou wrote: > > Scanning through open issues will also give you a general idea of what > kind of functionalities are looking for improvement, or need fixing. > > (you can create a new issue and start tackling it yourself, too) > > As a wanabe Dev I think

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Terry Reedy
There is obviously interest in your proposal. I suggest you open an issue on the tracker. Make it a library feature request for 3.2. Upload the patch as a separate file. I would include the subclass form in the post to show the intneded effect, for discussion, and also so people can test and us

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Isaac Morland
On Fri, 7 May 2010, VanL wrote: I make no effort to look for functional equality between two different functions. too many side effects could go off trying to make that work, and it would still be only inconsistently right. (IIRC, doing it completely is NP-hard.) Actually, doing it completely

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread VanL
On 5/7/2010 12:41 PM, Steven D'Aprano wrote: >> Now, if I write >> >> def f1(x,y): return x+y >> def f2(x,y): return x+y >> >> I don't expect f1==f2 to be True, even though f1 and f2 behave in >> exactly the same way, and indeed it is not. This is not what I am getting after; these (IMO)

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Martin v. Löwis
A.M. Kuchling wrote: > On Fri, May 07, 2010 at 09:30:00AM +0200, "Martin v. Löwis" wrote: >> I agree with Terry: how did you arrive at the 4 years for 2.x releases? >> Bug fixes releases stopped after the next feature release being made, >> which gave (counting between initial release and last bug

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Philip Jenvey
On May 7, 2010, at 9:09 AM, A.M. Kuchling wrote: > You can re-enable display of :exc:`DeprecationWarning` messages by > running Python with the :option:`-Wdefault` (short form: > :option:`-Wd`) switch, or you can add > ``warnings.simplefilter('default')`` to your code. The new PYTHONWARNINGS

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Steven D'Aprano
On Sat, 8 May 2010 03:57:06 am Steve Holden wrote: > Steven D'Aprano wrote: > > On Sat, 8 May 2010 02:07:55 am Rob Cliffe wrote: > >> Sorry to grouse, but isn't this maybe being a bit too clever? > >> Using your example, > >> p1 = partial(operator.add) > >> is creating a callable, p1, i.e. a so

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Brett Cannon
On Fri, May 7, 2010 at 09:09, A.M. Kuchling wrote: > On Fri, May 07, 2010 at 07:52:49PM +1000, Nick Coghlan wrote: > > 3.x). I'll take a stab at a more accurate rationale: > > Thanks! I've applied the scalpel and reduced it to: > > * A policy decision was made to silence warnings only of interes

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Michael Foord
On 07/05/2010 19:57, Steve Holden wrote: Steven D'Aprano wrote: On Sat, 8 May 2010 02:07:55 am Rob Cliffe wrote: Sorry to grouse, but isn't this maybe being a bit too clever? Using your example, p1 = partial(operator.add) is creating a callable, p1, i.e. a sort of function. Yes

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Steve Holden
Steven D'Aprano wrote: > On Sat, 8 May 2010 02:07:55 am Rob Cliffe wrote: >> Sorry to grouse, but isn't this maybe being a bit too clever? >> Using your example, >> p1 = partial(operator.add) >> is creating a callable, p1, i.e. a sort of function. Yes I know >> technically it's not a function,

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Steven D'Aprano
On Sat, 8 May 2010 02:07:55 am Rob Cliffe wrote: > Sorry to grouse, but isn't this maybe being a bit too clever? > Using your example, > p1 = partial(operator.add) > is creating a callable, p1, i.e. a sort of function. Yes I know > technically it's not a function, but it behaves very much like

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Alexander Belopolsky
On Fri, May 7, 2010 at 11:02 AM, Antoine Pitrou wrote: > VanL gmail.com> writes: .. >> While I was at it, I also added a nice repr. Would this group be >> interested in a patch, or is this not interesting? > > It would be more useful to provide equality, hashing and repr to partial > itself, > r

[Python-Dev] Summary of Python tracker Issues

2010-05-07 Thread Python tracker
ACTIVITY SUMMARY (2010-04-30 - 2010-05-07) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2658 open (+44) / 17807 closed (+24) / 20465 total (+68) Open issues with patches: 1081 Ave

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread A.M. Kuchling
On Fri, May 07, 2010 at 07:52:49PM +1000, Nick Coghlan wrote: > 3.x). I'll take a stab at a more accurate rationale: Thanks! I've applied the scalpel and reduced it to: * A policy decision was made to silence warnings only of interest to developers by default. :exc:`DeprecationWarning` and it

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Rob Cliffe
Sorry to grouse, but isn't this maybe being a bit too clever? Using your example, p1 = partial(operator.add) is creating a callable, p1, i.e. a sort of function. Yes I know technically it's not a function, but it behaves very much like one. Now, if I write def f1(x,y): return x+y def

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread A.M. Kuchling
On Fri, May 07, 2010 at 09:30:00AM +0200, "Martin v. Löwis" wrote: > I agree with Terry: how did you arrive at the 4 years for 2.x releases? > Bug fixes releases stopped after the next feature release being made, > which gave (counting between initial release and last bug fix release): I used the

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Antoine Pitrou
VanL gmail.com> writes: > > I created a subclass of functools.partial that provides appropriate > __eq__ and __hash__ methods, so that this works as expected. I called > the subclass a Job: [...] > > While I was at it, I also added a nice repr. Would this group be > interested in a patch, or is

Re: [Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread Michael Foord
On 07/05/2010 16:37, VanL wrote: Howdy all - I have an app where I am using functools.partial to bundle up jobs to do, where a job is defined as a callable + args. In one case, I wanted to keep track of whether I had previously seen a job, so I started putting them into a set... only to find out

[Python-Dev] Possible patch for functools partial - Interested?

2010-05-07 Thread VanL
Howdy all - I have an app where I am using functools.partial to bundle up jobs to do, where a job is defined as a callable + args. In one case, I wanted to keep track of whether I had previously seen a job, so I started putting them into a set... only to find out that partials never test equal to

Re: [Python-Dev] Issue #8610: Set default file system encoding to ascii on error?

2010-05-07 Thread M.-A. Lemburg
Victor Stinner wrote: > Python 3.0 introduced PyUnicode_DecodeFSDefault() and > PyUnicode_DecodeFSDefaultAndSize() functions. These functions fallback to > UTF-8 if getting the file system encoding failed or the encoding is unknown > (there is not nl_langinfo(CODESET) function). > > UTF-8 is no

Re: [Python-Dev] Issue #8610: Set default file system e ncoding to ascii on error?

2010-05-07 Thread Victor Stinner
Le vendredi 07 mai 2010 13:24:18, Antoine Pitrou a écrit : > > UTF-8 is not a good choice for the fallback because it's incompatible > > with other encodings like Latin1. I would like to fallback to ASCII on > > error which is compatible with all encodings (thanks to > > surrogateescape). > > What

Re: [Python-Dev] Issue #8610: Set default file system encoding to ascii on error?

2010-05-07 Thread Antoine Pitrou
Le Fri, 07 May 2010 13:05:52 +0200, Victor Stinner a écrit : > > UTF-8 is not a good choice for the fallback because it's incompatible > with other encodings like Latin1. I would like to fallback to ASCII on > error which is compatible with all encodings (thanks to > surrogateescape). What do you

[Python-Dev] Issue #8610: Set default file system encoding to ascii on error?

2010-05-07 Thread Victor Stinner
Python 3.0 introduced PyUnicode_DecodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() functions. These functions fallback to UTF-8 if getting the file system encoding failed or the encoding is unknown (there is not nl_langinfo(CODESET) function). UTF-8 is not a good choice for the fallback b

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Nick Coghlan
Terry Reedy wrote: > Then the warnings stuff >> >> * Because 2.7 will be running production applications, a policy > > Every major version (xcept 3.0) has run production application, and 3.1 > may be and 3.2 certainly will be. So this reasoning is not clear to me. > >>decision was made to sil

Re: [Python-Dev] What's New text on future maintenance

2010-05-07 Thread Martin v. Löwis
> * It's very likely the 2.7 release will have a longer period of > maintenance compared to earlier 2.x versions. Python 2.7 will > continue to be maintained while the transition to 3.x is in > progress, and that transition will itself be lengthy. Most 2.x > versions are maintained for ab