Re: [Python-Dev] undocumented help() function change in Python 3.4?

2014-03-10 Thread Georg Brandl
Am 11.03.2014 06:31, schrieb Ned Deily: > In article > , > Nick Coghlan wrote: >> On 11 March 2014 11:29, R. David Murray wrote: >> > The whatsnew updates (including the one for help) weren't copied into >> > rc3. They will be in final though, unless Larry forgets. >> >> Oh, cool - yes, it wi

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Georg Brandl
Am 10.03.2014 23:58, schrieb Allen Li: > I'm not a dev, so my comment doesn't have that much weight, but it is > possible to stop flooding the mailing list with idle chitchat about > something mostly irrelevant and non-productive? > > There's nothing wrong with the current Python versioning scheme

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Stephen J. Turnbull
Paul Moore writes: > I understand that - my concern is that people reading such comments > out of context might not realise this ("after all, that was what > Python 3000 meant, then you went and implemented it"). Sure, but why worry about it? The important part of "willful ignorance" is the "

Re: [Python-Dev] Whats New in 3.4 is pretty much done...

2014-03-10 Thread Eric Snow
On Mon, Mar 10, 2014 at 8:05 PM, R. David Murray wrote: > Well, I think What's New for 3.4 is done. I've been through all of the > NEWS items from the start of 3.4 through the beta1 release. > > I'm pretty much out of time for this project since > Final is almost upon us. I'll be making at least

Re: [Python-Dev] undocumented help() function change in Python 3.4?

2014-03-10 Thread Ned Deily
In article , Nick Coghlan wrote: > On 11 March 2014 11:29, R. David Murray wrote: > > The whatsnew updates (including the one for help) weren't copied into > > rc3. They will be in final though, unless Larry forgets. > > Oh, cool - yes, it will be good to have an up to date What's New > shipp

Re: [Python-Dev] undocumented help() function change in Python 3.4?

2014-03-10 Thread Nick Coghlan
On 11 March 2014 11:29, R. David Murray wrote: > The whatsnew updates (including the one for help) weren't copied into > rc3. They will be in final though, unless Larry forgets. Oh, cool - yes, it will be good to have an up to date What's New shipped, especially as part of the compiled Windows d

Re: [Python-Dev] Whats New in 3.4 is pretty much done...

2014-03-10 Thread Eric V. Smith
Thanks for all of the great work! -- Eric. > On Mar 10, 2014, at 10:05 PM, "R. David Murray" wrote: > > Well, I think What's New for 3.4 is done. I've been through all of the > NEWS items from the start of 3.4 through the beta1 release. I've gone > over the list of changes Serhiy found via th

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Cameron Simpson
On 10Mar2014 14:55, Victor Stinner wrote: > Last 5 years, I spend significant time to port a lot of Python 2 code > on Python 3. [... troubles ...] > So can we please try to stop scheduling another major Python version > breaking almost all modules and all applications just to be pendantic? > No,

[Python-Dev] Whats New in 3.4 is pretty much done...

2014-03-10 Thread R. David Murray
Well, I think What's New for 3.4 is done. I've been through all of the NEWS items from the start of 3.4 through the beta1 release. I've gone over the list of changes Serhiy found via the versionadded/versionchanged in the docs. (Since he marked some that didn't turn out to be 3.4 changes, I assu

Re: [Python-Dev] undocumented help() function change in Python 3.4?

2014-03-10 Thread R. David Murray
On Mon, 10 Mar 2014 14:15:28 +0100, =?UTF-8?B?SnVya28gR29zcG9kbmV0acSH?= wrote: >Hi. > > On 8.3.2014. 6:48, Nick Coghlan wrote: > > Yeah, the changes to help() are doubly indirect - help() uses pydoc > > which uses inspect, and inspect saw a lot of changes. > > > > I'll make a few updates to

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Antoine Pitrou
On Mon, 10 Mar 2014 16:08:52 -0700 (PDT) "Jim J. Jewett" wrote: > It may also be more common to have multiple __del__ methods in the > same cycle, if cycles are created by a framework. So the problems > aren't new, but they may have become considerably more painful. Multiple __del__s shouldn't c

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Jim J. Jewett
On Mon Mar 10 18:56:17 CET 2014 (and earlier quotes), Maciej Fijalkowski wrote: Maciej:>> You should not rely on __del__s being called timely one way or Maciej:>> another. Why would you require this for the program to work Maciej:>> correctly in the particular example of __traceback__? To the e

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Allen Li
I'm not a dev, so my comment doesn't have that much weight, but it is possible to stop flooding the mailing list with idle chitchat about something mostly irrelevant and non-productive? There's nothing wrong with the current Python versioning scheme. Python 4 is not planned for the near future.

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Mark Lawrence
On 10/03/2014 22:28, Greg Ewing wrote: Chris Angelico wrote: Terrible idea. Would wreak havoc with comparisons. No. Python 3 is all about Unicode, so the right way to proceed is 3.8, 3.9, 3.:, 3.;, 3.<, 3.=, 3.>, 3.?, 3.@, 3.A. And we have all of UCS-4 to play with, so for all practical purpos

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Greg Ewing
MRAB wrote: What does "irregardless" mean? It's what people say when they misunderestimate the importance of correct prefix usage in English. -- Greg ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-de

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Greg Ewing
Chris Angelico wrote: Terrible idea. Would wreak havoc with comparisons. No. Python 3 is all about Unicode, so the right way to proceed is 3.8, 3.9, 3.:, 3.;, 3.<, 3.=, 3.>, 3.?, 3.@, 3.A. And we have all of UCS-4 to play with, so for all practical purposes the 3.x line can live forever! The d

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Mark Lawrence
On 10/03/2014 19:28, Ethan Furman wrote: On 03/10/2014 11:21 AM, MRAB wrote: What does "irregardless" mean? The same thing as "regardless", with an extra syllable just for fun. -- ~Ethan~ Is this the UK, US, Australian or some other "regardless"? -- My fellow Pythonistas, ask not what our

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Paul Moore
On 10 March 2014 19:42, Serhiy Storchaka wrote: > 10.03.14 20:50, Paul Moore написав(ла): > >> I have seen a number of postings recently pointing to things as "not >> until Python 4000" or "not until Python 4.0" (yours was not one that I >> noticed, actually, this is a more general point). > > > T

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Chris Barker
On Mon, Mar 10, 2014 at 12:42 PM, Serhiy Storchaka wrote: > This is just an euphemism for "not in observable future". > > is ANY of the future observable? Oh right, The Time Machine! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(2

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Nick Coghlan
On 11 Mar 2014 01:44, "Brett Cannon" wrote: > > > > On Mon Mar 10 2014 at 11:41:27 AM, Jurko Gospodnetić < jurko.gospodne...@pke.hr> wrote: >> >>Hi Nick. >> >> On 10.3.2014. 14:25, Nick Coghlan wrote:> What is supposed to happen >> when that code gets loaded from a ZIP archive? >> > >> > __f

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2014 02:50 PM, Paul Moore wrote: > I have seen a number of postings recently pointing to things as "not > until Python 4000" or "not until Python 4.0" (yours was not one that > I noticed, actually, this is a more general point). > > I do thi

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Oleg Broytman
On Mon, Mar 10, 2014 at 09:47:32PM +0200, Serhiy Storchaka wrote: > 10.03.14 19:44, Oleg Broytman написав(ла): > >There is one minor annoyance with double digits: > > > >$ ls -l > >total 16 > >drwx-- 2 phd phd 4096 Mar 10 21:42 3.1 > >drwx-- 2 phd phd 4096 Mar 10 21:42 3.10 > >drwx---

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Ethan Furman
On 03/10/2014 11:21 AM, MRAB wrote: What does "irregardless" mean? The same thing as "regardless", with an extra syllable just for fun. -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Serhiy Storchaka
10.03.14 19:44, Oleg Broytman написав(ла): There is one minor annoyance with double digits: $ ls -l total 16 drwx-- 2 phd phd 4096 Mar 10 21:42 3.1 drwx-- 2 phd phd 4096 Mar 10 21:42 3.10 drwx-- 2 phd phd 4096 Mar 10 21:42 3.2 ... ... drwx-- 2

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Emile van Sebille
On 3/10/2014 12:29 PM, Chris Angelico wrote: I don't think there'd be huge problems with a 4.0 release that's just like 3.10 except that it's a little more free with removal of deprecateds. Maybe that could be the point at which 2.x compatibility is dropped, ... and the point at which those of

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Serhiy Storchaka
10.03.14 20:50, Paul Moore написав(ла): I have seen a number of postings recently pointing to things as "not until Python 4000" or "not until Python 4.0" (yours was not one that I noticed, actually, this is a more general point). This is just an euphemism for "not in observable future". _

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Chris Angelico
On Tue, Mar 11, 2014 at 5:17 AM, Ryan Gonzalez wrote: > You forgot 3., and 3.$. > They're both earlier than digits. Comma is 2C and dollar is 24, I remember those from the earliest days of playing around in assembly language on an Epson PC-compatible running MS-DOS 5 :) But that's beside the poi

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Paul Moore
On 10 March 2014 17:08, R. David Murray wrote: > We had this discussion a bit ago, and my sense was that we tentatively > decided that we were just going to deprecate and remove things as > appropriate, irregardless of version number. I used "4.0" in my > message about 'U' as a shorthand for "som

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Ryan Gonzalez
This is my standpoint. The major releases would remove the code that's been marked as "deprecated". You probably would've know for the past 3 versions anyway... On Mon, Mar 10, 2014 at 12:13 PM, Chris Angelico wrote: > On Tue, Mar 11, 2014 at 4:08 AM, R. David Murray > wrote: > > (That said,

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Eric V. Smith
On 03/10/2014 02:21 PM, MRAB wrote: > On 2014-03-10 17:08, R. David Murray wrote: >> On Mon, 10 Mar 2014 16:06:22 -, Brett Cannon >> wrote: >>> On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner >>> >>> wrote: >>> >>> > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer >>> : >>> > > I don't see the

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Donald Stufft
On Mar 10, 2014, at 2:21 PM, MRAB wrote: > On 2014-03-10 17:08, R. David Murray wrote: >> On Mon, 10 Mar 2014 16:06:22 -, Brett Cannon wrote: >>> On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner >>> wrote: >>> >>> > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer : >>> > > I don't see the p

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Ryan Gonzalez
You forgot 3., and 3.$. On Mon, Mar 10, 2014 at 12:06 PM, Chris Angelico wrote: > On Tue, Mar 11, 2014 at 3:56 AM, Antoine Pitrou > wrote: > > On Mon, 10 Mar 2014 17:04:08 +0100 > > "Stefan Richthofer" wrote: > > > >> > Guido famously hates two digit minor version numbers. :) > >> > >> This i

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread MRAB
On 2014-03-10 17:08, R. David Murray wrote: On Mon, 10 Mar 2014 16:06:22 -, Brett Cannon wrote: On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner wrote: > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer : > > I don't see the point in this discussion. > > As far as I know, the major version i

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread MRAB
On 2014-03-10 17:06, Chris Angelico wrote: On Tue, Mar 11, 2014 at 3:56 AM, Antoine Pitrou wrote: On Mon, 10 Mar 2014 17:04:08 +0100 "Stefan Richthofer" wrote: > Guido famously hates two digit minor version numbers. :) This is no problem either. Simply switch to hexadecimal numbering ;) O

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Martin v. Löwis
Am 10.03.14 18:01, schrieb Tres Seaver: > On 03/10/2014 12:49 PM, Brett Cannon wrote: > >> I think it got lost in email threading, but Barry pointed out that >> Guido famously hates double digit version numbers (as do I, probably >> partially because he does after all these years =). > > "Guido h

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Guido van Rossum
On Mon, Mar 10, 2014 at 10:56 AM, Maciej Fijalkowski wrote: > On Mon, Mar 10, 2014 at 7:49 PM, Guido van Rossum > wrote: > > On Mon, Mar 10, 2014 at 10:39 AM, Maciej Fijalkowski > > wrote: > >> > >> On Mon, Mar 10, 2014 at 7:35 PM, Guido van Rossum > >> wrote: > >> > On Mon, Mar 10, 2014 at 10:

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Larry Hastings
On 03/10/2014 08:59 AM, Barry Warsaw wrote: On Mar 10, 2014, at 04:25 PM, Stefan Richthofer wrote: I don't see any reason to bump the major version number until after Python 3.9. Even then, there is no need for 4.0; you can just have 3.10, 3.11 etc. Guido famously hates two digit minor versio

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Maciej Fijalkowski
On Mon, Mar 10, 2014 at 7:49 PM, Guido van Rossum wrote: > On Mon, Mar 10, 2014 at 10:39 AM, Maciej Fijalkowski > wrote: >> >> On Mon, Mar 10, 2014 at 7:35 PM, Guido van Rossum >> wrote: >> > On Mon, Mar 10, 2014 at 10:30 AM, Maciej Fijalkowski >> > wrote: >> >> >> >> On Mon, Mar 10, 2014 at 3:

Re: [Python-Dev] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Martin v. Löwis
Am 10.03.14 14:03, schrieb Jurko Gospodnetić: > Is this as issue or desired behaviour? See my response in the tracker. It's desired by Microsoft. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/lis

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Guido van Rossum
On Mon, Mar 10, 2014 at 10:39 AM, Maciej Fijalkowski wrote: > On Mon, Mar 10, 2014 at 7:35 PM, Guido van Rossum > wrote: > > On Mon, Mar 10, 2014 at 10:30 AM, Maciej Fijalkowski > > wrote: > >> > >> On Mon, Mar 10, 2014 at 3:23 PM, Victor Stinner > >> wrote: > >> > 2014-03-10 13:11 GMT+01:00 Ma

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Oleg Broytman
On Mon, Mar 10, 2014 at 04:37:45PM +, Brett Cannon wrote: > On Mon Mar 10 2014 at 12:08:55 PM, Victor Stinner > wrote: > > > >> I suggest to wait less than 8 years > > >> for Python 4. > > > > > > Why? What's special about 8 years? > > > > It's the time between Python 2.0 and 3.0. > > But

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Oleg Broytman
Hi! On Mon, Mar 10, 2014 at 04:49:44PM +, Brett Cannon wrote: > I think it got lost in email threading, but Barry pointed out that Guido > famously hates double digit version numbers (as do I, probably partially > because he does after all these years =). There is one minor annoyance wit

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Maciej Fijalkowski
On Mon, Mar 10, 2014 at 7:35 PM, Guido van Rossum wrote: > On Mon, Mar 10, 2014 at 10:30 AM, Maciej Fijalkowski > wrote: >> >> On Mon, Mar 10, 2014 at 3:23 PM, Victor Stinner >> wrote: >> > 2014-03-10 13:11 GMT+01:00 Maciej Fijalkowski : >> >> It was agreed long time ago that the immediate final

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Guido van Rossum
On Mon, Mar 10, 2014 at 10:30 AM, Maciej Fijalkowski wrote: > On Mon, Mar 10, 2014 at 3:23 PM, Victor Stinner > wrote: > > 2014-03-10 13:11 GMT+01:00 Maciej Fijalkowski : > >> It was agreed long time ago that the immediate finalization is an > >> implementation specific detail and it's not guaran

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Maciej Fijalkowski
On Mon, Mar 10, 2014 at 3:23 PM, Victor Stinner wrote: > 2014-03-10 13:11 GMT+01:00 Maciej Fijalkowski : >> It was agreed long time ago that the immediate finalization is an >> implementation specific detail and it's not guaranteed. You should not >> rely on __del__s being called timely one way or

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Chris Angelico
On Tue, Mar 11, 2014 at 4:08 AM, R. David Murray wrote: > (That said, I > do see some merit to doing some extra cleaning at the 4.0 > boundary, just for mental convenience.) A transition from 3.9 to 4.0 that removes a whole lot of deprecated aliases and such wouldn't be a bad thing. It's technic

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread R. David Murray
On Mon, 10 Mar 2014 16:06:22 -, Brett Cannon wrote: > On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner > wrote: > > > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer : > > > I don't see the point in this discussion. > > > As far as I know, the major version is INTENDED to > > > indicate backwa

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Chris Angelico
On Tue, Mar 11, 2014 at 3:56 AM, Antoine Pitrou wrote: > On Mon, 10 Mar 2014 17:04:08 +0100 > "Stefan Richthofer" wrote: > >> > Guido famously hates two digit minor version numbers. :) >> >> This is no problem either. Simply switch to hexadecimal numbering ;) > > Or wrap around to negative number

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2014 12:49 PM, Brett Cannon wrote: > I think it got lost in email threading, but Barry pointed out that > Guido famously hates double digit version numbers (as do I, probably > partially because he does after all these years =). "Guido hates

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Antoine Pitrou
On Mon, 10 Mar 2014 17:04:08 +0100 "Stefan Richthofer" wrote: > > Guido famously hates two digit minor version numbers. :) > > This is no problem either. Simply switch to hexadecimal numbering ;) Or wrap around to negative numbers (a minus sign isn't technically a digit, is it?). Regards Anto

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Antoine Pitrou
On Mon, 10 Mar 2014 16:50:12 +0100 Victor Stinner wrote: > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer : > > I don't see the point in this discussion. > > As far as I know, the major version is INTENDED to > > indicate backward-incompatible changes. > > This is not a strict rule. I would like t

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Ethan Furman
On 03/10/2014 06:55 AM, Victor Stinner wrote: What do you think? I think Python 4.0 will follow Python 3.9. No need to rush things [1]. -- ~Ethan~ [1] The Python 2 line ended early because we had a major paradigm shift with moving to Unicode by default. Unless we experience another major

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Brett Cannon
On Mon Mar 10 2014 at 12:47:21 PM, Chris Barker wrote: > On Mon, Mar 10, 2014 at 8:04 AM, Steven D'Aprano wrote: > > >> If Python 4 is a conservative release, I don't see any reason to bump >> the major version number until after Python 3.9. > > > and why even then? > > >> Perhaps we need a long-

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Chris Barker
On Mon, Mar 10, 2014 at 8:04 AM, Steven D'Aprano wrote: > If Python 4 is a conservative release, I don't see any reason to bump > the major version number until after Python 3.9. and why even then? > Perhaps we need a long-term schedule? > why not: 3.5: August 2015 > 3.6: February 2017 > 3.

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Brett Cannon
On Mon Mar 10 2014 at 12:08:55 PM, Victor Stinner wrote: > >> I suggest to wait less than 8 years > >> for Python 4. > > > > Why? What's special about 8 years? > > It's the time between Python 2.0 and 3.0. > But I'm willing to bet that's going to be an anomaly. Python 3 came into existence when

Re: [Python-Dev] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread Serhiy Storchaka
10.03.14 15:09, Nick Coghlan написав(ла): Huh, I missed that change. Don't we still need U when writing 2/3 compatible code at this point? If so, perhaps we may want to reconsider this particular deprecation in 3.4.1. In most cases the 'U' mode either no-op or forbidden in Python 3. It may be

Re: [Python-Dev] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2014 09:09 AM, Nick Coghlan wrote: > Don't we still need U when writing 2/3 compatible code at this point? io.TextIOWrapper was already the superior strategy for anyone straddling Python 2.6+ - Py3k. Tres. - -- ==

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Jurko Gospodnetić
Hi Brett. On 10.3.2014. 16:44, Brett Cannon wrote: > __file__ is optional and left off when it doesn't make any sense. > Since importlib._bootstrap is a frozen module by default it doesn't > have __file__ set. Issue #20884 opened for this (http://bugs.python.org/issue20884). Best regards,

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Victor Stinner
>> I suggest to wait less than 8 years >> for Python 4. > > Why? What's special about 8 years? It's the time between Python 2.0 and 3.0. Victor ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Stefan Richthofer
> Guido famously hates two digit minor version numbers. :) This is no problem either. Simply switch to hexadecimal numbering ;) > Gesendet: Montag, 10. März 2014 um 16:59 Uhr > Von: "Barry Warsaw" > An: python-dev@python.org > Betreff: Re: [Python-Dev] Python 4: don't remove anything, don't bre

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Brett Cannon
On Mon Mar 10 2014 at 11:50:54 AM, Victor Stinner wrote: > 2014-03-10 16:25 GMT+01:00 Stefan Richthofer : > > I don't see the point in this discussion. > > As far as I know, the major version is INTENDED to > > indicate backward-incompatible changes. > > This is not a strict rule. I would like to

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Barry Warsaw
On Mar 10, 2014, at 04:25 PM, Stefan Richthofer wrote: >> I don't see any reason to bump >> the major version number until after Python 3.9. > >Even then, there is no need for 4.0; you can just have 3.10, 3.11 etc. Guido famously hates two digit minor version numbers. :) -Barry

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Mark Lawrence
On 10/03/2014 13:55, Victor Stinner wrote: So can we please try to stop scheduling another major Python version breaking almost all modules and all applications just to be pendantic? I've missed the announcement about this, can we have a link please? -- My fellow Pythonistas, ask not what ou

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Victor Stinner
2014-03-10 16:25 GMT+01:00 Stefan Richthofer : > I don't see the point in this discussion. > As far as I know, the major version is INTENDED to > indicate backward-incompatible changes. This is not a strict rule. I would like to follow Linux 3 which didn't break the API between Linux 2 and Linux 3

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Brett Cannon
On Mon Mar 10 2014 at 11:41:27 AM, Jurko Gospodnetić < jurko.gospodne...@pke.hr> wrote: >Hi Nick. > > On 10.3.2014. 14:25, Nick Coghlan wrote:> What is supposed to happen > when that code gets loaded from a ZIP archive? > > > > __file__ is expected to always be set (including when loaded fro

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread MRAB
On 2014-03-10 15:04, Steven D'Aprano wrote: On Mon, Mar 10, 2014 at 02:55:26PM +0100, Victor Stinner wrote: [...] So can we please try to stop scheduling another major Python version breaking almost all modules and all applications just to be pendantic? No, we should not remove any old feature

Re: [Python-Dev] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Jurko Gospodnetić
Hi Paul. On 10.3.2014. 14:54, Paul Moore wrote: On 10 March 2014 13:03, Jurko Gospodnetić wrote: Is this as issue or desired behaviour? Should I open an issue for it? Sounds like a bug, but a pretty long-standing one. I can't think that the registry schema Python uses would *ever* have dis

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Stefan Richthofer
I don't see the point in this discussion. As far as I know, the major version is INTENDED to indicate backward-incompatible changes. The meaning of the versioning scheme is literally [API compatibility].[new features].[bug fixes], isn't it? So all you are asking for is never do produce a Python

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Jurko Gospodnetić
Hi Nick. On 10.3.2014. 14:25, Nick Coghlan wrote:> What is supposed to happen when that code gets loaded from a ZIP archive? > > __file__ is expected to always be set (including when loaded from a > zipfile - in that case it's the zipfile name concatenated with the > path within the zip file)

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Brian Curtin
On Mon, Mar 10, 2014 at 8:55 AM, Victor Stinner wrote: > For example, I propose to release the next major Python version (3.5) > with the version 4.0 but without removing anything. People put a lot of weight behind version numbers, often much more than they should. Jumping to 4.0 would be a PR ni

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread R. David Murray
On Mon, 10 Mar 2014 23:25:17 +1000, Nick Coghlan wrote: > On 10 Mar 2014 19:15, "Jurko Gospodnetić" wrote: > > > > Hi all. > > > > Python 3.4 introduced a change to Lib/importlib/__init__.py that added > the following code to it: > > > >> else: > >> # importlib._bootstrap is the built-in

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Steven D'Aprano
On Mon, Mar 10, 2014 at 02:55:26PM +0100, Victor Stinner wrote: [...] > So can we please try to stop scheduling another major Python version > breaking almost all modules and all applications just to be pendantic? > > No, we should not remove any old feature in Python 4. Python 4 should > be just

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Barry Warsaw
On Mar 10, 2014, at 02:55 PM, Victor Stinner wrote: >So can we please try to stop scheduling another major Python version >breaking almost all modules and all applications just to be pendantic? > >What do you think? Just that it's crazy to be talking about Python 4 right now. We have at least 9

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Barry Warsaw
On Mar 10, 2014, at 11:25 PM, Nick Coghlan wrote: >__file__ is expected to always be set (including when loaded from a zipfile Actually, __file__ is an optional attribute on modules since PEP 420 and Python 3.2. It's *usually* there, but unlike in previous version of Python, if the module doesn'

Re: [Python-Dev] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Paul Moore
On 10 March 2014 13:03, Jurko Gospodnetić wrote: > Is this as issue or desired behaviour? Should I open an issue for it? Sounds like a bug, but a pretty long-standing one. I can't think that the registry schema Python uses would *ever* have distinguished (the WOW64 component of the all-users entr

[Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Victor Stinner
Hi, Last 5 years, I spend significant time to port a lot of Python 2 code on Python 3. First, using the 2to3 tool + extra manual patches. Sorry, it was not usable in practice. The conversion was very slow, it didn't fix doctests nor all other minor "details". "Fixing Python 2 code" was no always p

Re: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread Nick Coghlan
On 10 Mar 2014 23:26, "Antoine Pitrou" wrote: > > On Mon, 10 Mar 2014 23:09:53 +1000 > Nick Coghlan wrote: > > On 10 Mar 2014 11:36, "r.david.murray" wrote: > > > > > > +* The ``U`` mode accepted by various ``open`` functions is deprecated. > > > + In Python3 it does not do anything useful, and

Re: [Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Nick Coghlan
On 10 Mar 2014 19:15, "Jurko Gospodnetić" wrote: > > Hi all. > > Python 3.4 introduced a change to Lib/importlib/__init__.py that added the following code to it: > >> else: >> # importlib._bootstrap is the built-in import, ensure we don't create >> # a second copy of the module. >>

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Victor Stinner
2014-03-10 13:11 GMT+01:00 Maciej Fijalkowski : > It was agreed long time ago that the immediate finalization is an > implementation specific detail and it's not guaranteed. You should not > rely on __del__s being called timely one way or another. Why would you > require this for the program to wor

Re: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread R. David Murray
On Mon, 10 Mar 2014 23:09:53 +1000, Nick Coghlan wrote: > On 10 Mar 2014 11:36, "r.david.murray" wrote: > > > > http://hg.python.org/cpython/rev/2d5544afb510 > > changeset: 89547:2d5544afb510 > > user:R David Murray > > date:Sun Mar 09 20:33:35 2014 -0400 > > summary: > > wha

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.4.0 release candidate 3

2014-03-10 Thread Nick Coghlan
On 10 Mar 2014 19:50, "Victor Stinner" wrote: > > Hi, > > I tested Python 3.4rc3 installer on Windows: > > - all menu entries work (doc, doc server, help, IDLE, command line, etc.) > - pip is installed, yeah! > - my tracemalloc module works on Windows too ;-) > - The uninstaller fully removes C:\P

Re: [Python-Dev] undocumented help() function change in Python 3.4?

2014-03-10 Thread Jurko Gospodnetić
Hi. On 8.3.2014. 6:48, Nick Coghlan wrote: Yeah, the changes to help() are doubly indirect - help() uses pydoc which uses inspect, and inspect saw a lot of changes. I'll make a few updates to the What's New to help make the consequences of this clearer. Just looked through the latest 3.4r

Re: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).

2014-03-10 Thread Nick Coghlan
On 10 Mar 2014 11:36, "r.david.murray" wrote: > > http://hg.python.org/cpython/rev/2d5544afb510 > changeset: 89547:2d5544afb510 > user:R David Murray > date:Sun Mar 09 20:33:35 2014 -0400 > summary: > whatsnew: 'U' mode deprecation (#15204). > > files: > Doc/whatsnew/3.4.rst

Re: [Python-Dev] [Python-checkins] cpython: whatsnew: venv with_pip, pyvenv --without-pip (#19552)

2014-03-10 Thread Nick Coghlan
On 10 Mar 2014 08:51, "r.david.murray" wrote: > > http://hg.python.org/cpython/rev/a140caad76bc > changeset: 89539:a140caad76bc > user:R David Murray > date:Sun Mar 09 18:09:51 2014 -0400 > summary: > whatsnew: venv with_pip, pyvenv --without-pip (#19552) > > files: > Doc/wh

[Python-Dev] Windows 'for current user' installation - 32/64-bit registrations overwrite each other

2014-03-10 Thread Jurko Gospodnetić
Hi. When running the Python Windows installer 'for all users', the 32-bit installation and the 64-bit installation each gets a separate registration in the Windows registry. E.g. under: HKEY_LOCAL_MACHINE\Software\Python\PythonCore\3.4 and: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Py

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Maciej Fijalkowski
On Mon, Mar 10, 2014 at 12:10 PM, Victor Stinner wrote: > 2014-03-08 16:30 GMT+01:00 Maciej Fijalkowski : >> How about fixing cyclic gc to deal with __del__ instead? That sounds >> like an awful change to the semantics. > > Hum? That's the purpose of the PEP 442 which is implemented in Python 3.4.

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Victor Stinner
2014-03-08 16:30 GMT+01:00 Maciej Fijalkowski : > How about fixing cyclic gc to deal with __del__ instead? That sounds > like an awful change to the semantics. Hum? That's the purpose of the PEP 442 which is implemented in Python 3.4. As I wrote, it's not enough to fix all issues. Usually, I see

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.4.0 release candidate 3

2014-03-10 Thread Victor Stinner
Hi, I tested Python 3.4rc3 installer on Windows: - all menu entries work (doc, doc server, help, IDLE, command line, etc.) - pip is installed, yeah! - my tracemalloc module works on Windows too ;-) - The uninstaller fully removes C:\Python34 The major Windows installer issues are fixed in the RC

Re: [Python-Dev] What is the precise problem? [was: Reference cycles in Exception.__traceback__]

2014-03-10 Thread Mark Shannon
On 08/03/14 15:30, Maciej Fijalkowski wrote: On Sat, Mar 8, 2014 at 5:14 PM, Victor Stinner wrote: 2014-03-08 14:33 GMT+01:00 Antoine Pitrou : Ok, it's actually quite trivial. The whole chain is kept alive by the "fut" global variable. If you arrange for it to be disposed of: fut = async

[Python-Dev] Python 3.4 change in importlib/__init__.py breaking cxFreeze?

2014-03-10 Thread Jurko Gospodnetić
Hi all. Python 3.4 introduced a change to Lib/importlib/__init__.py that added the following code to it: else: # importlib._bootstrap is the built-in import, ensure we don't create # a second copy of the module. _bootstrap.__name__ = 'importlib._bootstrap' _bootstrap.__pac

[Python-Dev] [RELEASED] Python 3.4.0 release candidate 3

2014-03-10 Thread Larry Hastings
On behalf of the Python development team, I'm pleased to announce the third and final** release candidate of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python 3.4 includes a range of improvements of the 3.x series, including hundreds of small