Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-20 Thread Georg Brandl
Benjamin Peterson schrieb: svnmerge is written in Python, so wouldn't it be possible to add support for maintaining such renaming to that tool ? svnmerge.py is mostly a wrapper over svn merge, and svn merge can't handle it, so I don't think is easily possible. I don't think that an

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread M.-A. Lemburg
On 2008-05-18 22:24, Brett Cannon wrote: On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I have a misunderstanding of the reasoning behind doing the renaming in the 2.x branch, but it appears that the only reason is to get used to the new

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Nick Coghlan
M.-A. Lemburg wrote: I don't think that an administrative problem such as forward- porting patches to 3.x warrants breakage in the 2.x branch. After all, the renaming was approached for Python 3.0 and not 2.6 *because* it introduces major breakage. AFAIR, the discussion on the stdlib-sig also

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Terry Reedy
Nick Coghlan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | M.-A. Lemburg wrote: | I don't think that an administrative problem such as forward- | porting patches to 3.x warrants breakage in the 2.x branch. | | After all, the renaming was approached for Python 3.0 and not | 2.6

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Mark Hammond
Nick writes: M.-A. Lemburg wrote: I don't think that an administrative problem such as forward- porting patches to 3.x warrants breakage in the 2.x branch. After all, the renaming was approached for Python 3.0 and not 2.6 *because* it introduces major breakage. AFAIR, the discussion

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Raymond Hettinger
Nick writes: M.-A. Lemburg wrote: I don't think that an administrative problem such as forward- porting patches to 3.x warrants breakage in the 2.x branch. After all, the renaming was approached for Python 3.0 and not 2.6 *because* it introduces major breakage. AFAIR, the discussion on

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Lennart Regebro
On Mon, May 19, 2008 at 2:08 PM, M.-A. Lemburg [EMAIL PROTECTED] wrote: Why can't we just provide a from __future__ import renamed_modules which then provides all the new name to old name mappings in some form (e.g. module proxies or whatever) and leave the existing modules in 2.x untouched ?

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Guido van Rossum
On Mon, May 19, 2008 at 8:39 AM, Raymond Hettinger [EMAIL PROTECTED] wrote: Nick writes: M.-A. Lemburg wrote: I don't think that an administrative problem such as forward- porting patches to 3.x warrants breakage in the 2.x branch. After all, the renaming was approached for Python 3.0

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Brett Cannon
On Mon, May 19, 2008 at 9:22 AM, Guido van Rossum [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 8:39 AM, Raymond Hettinger [EMAIL PROTECTED] wrote: Nick writes: M.-A. Lemburg wrote: I don't think that an administrative problem such as forward- porting patches to 3.x warrants breakage in

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Brett Cannon
On Mon, May 19, 2008 at 5:08 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: On 2008-05-18 22:24, Brett Cannon wrote: On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I have a misunderstanding of the reasoning behind doing the renaming in the

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Benjamin Peterson
On Mon, May 19, 2008 at 7:08 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: On 2008-05-18 22:24, Brett Cannon wrote: On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I have a misunderstanding of the reasoning behind doing the renaming in the

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Brett Cannon
On Mon, May 19, 2008 at 3:26 PM, Benjamin Peterson [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 7:08 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: On 2008-05-18 22:24, Brett Cannon wrote: On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Brett Cannon
On Mon, May 19, 2008 at 12:26 PM, Brett Cannon [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 5:08 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: On 2008-05-18 22:24, Brett Cannon wrote: On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-18 Thread M.-A. Lemburg
On 2008-05-17 16:59, Alexandre Vassalotti wrote: On Sat, May 17, 2008 at 5:05 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: I'd like to bring a potential problem to attention that is caused by the recent module renaming approach: Object serialization protocols like e.g. pickle usually store the

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-18 Thread Nick Coghlan
M.-A. Lemburg wrote: Perhaps I have a misunderstanding of the reasoning behind doing the renaming in the 2.x branch, but it appears that the only reason is to get used to the new names. That's a rather low priority argument in comparison to the breakage the renaming will cause in the 2.x branch.

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-18 Thread Brett Cannon
On Sun, May 18, 2008 at 6:14 AM, Nick Coghlan [EMAIL PROTECTED] wrote: M.-A. Lemburg wrote: Perhaps I have a misunderstanding of the reasoning behind doing the renaming in the 2.x branch, but it appears that the only reason is to get used to the new names. That's a rather low priority

[Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread M.-A. Lemburg
I'd like to bring a potential problem to attention that is caused by the recent module renaming approach: Object serialization protocols like e.g. pickle usually store the complete module path to the object class together with the object. They access this module path by looking at the

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread Alexandre Vassalotti
On Sat, May 17, 2008 at 5:05 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: I'd like to bring a potential problem to attention that is caused by the recent module renaming approach: Object serialization protocols like e.g. pickle usually store the complete module path to the object class together

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread Alexandre Vassalotti
Errata: On Sat, May 17, 2008 at 10:59 AM, Alexandre Vassalotti [EMAIL PROTECTED] wrote: And, one solution to this is to use Python 2.6 to regenerate pickle stream. ... to regenerate *the* pickle *streams*. It is surely not the most elegant or robust solution, but I could work. ... but *it*

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread Gregory P. Smith
On Sat, May 17, 2008 at 7:59 AM, Alexandre Vassalotti [EMAIL PROTECTED] wrote: Another solution would be to write a 2to3 pickle converter using the pickletools module. It is surely not the most elegant or robust solution, but I could work. This could be done even for 2.x -- 2.6 to be

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread Greg Ewing
Alexandre Vassalotti wrote: On Sat, May 17, 2008 at 5:05 AM, M.-A. Lemburg [EMAIL PROTECTED] wrote: Object serialization protocols like e.g. pickle usually store the complete module path to the object class together with the object. The opposite problem exists for Python 3.0, too. This is

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-17 Thread glyph
On 10:22 pm, [EMAIL PROTECTED] wrote: When I brought this up earlier, various people assured me that it wasn't a problem in practice. I think we're seeing one situation here where it *is* a problem. Just my two cents here - experience has taught me that it's definitely a problem in practice.