Re: [Python-3000] PEP 361: Python 2.6/3.0 release schedule

2008-03-18 Thread Travis Oliphant
Barry Warsaw wrote: > Greetings from Pycon 2008! > > Neal Norwitz and I have worked out the schedule for Python 2.6 and 3.0, > which will be released in lockstep. We will be following a monthly > release schedule, with releases to occur on the first Wednesday of the > month. We'll move to a 2

[Python-3000] A question about Py3K migration

2008-03-18 Thread Paul Moore
This is something that I've been pondering over for a while now, but I haven't been able to come to any strong conclusions. I'd appreciate some comment, and possibly a bit of clarification in the documentation for migrating to 3.0. I'm basically an end user of Python. I don't write libraries or fr

Re: [Python-3000] A question about Py3K migration

2008-03-18 Thread Nick Coghlan
Paul Moore wrote: > As I said at the start, I don't have any good answers. But would it be > worth maintaining something like a wiki page of key libraries and > their expectations for moving to 3.0? It might at least make people > aware of reasonable timescales, and set some expectations for chroni

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 17-03-2008, Pn o godzinie 11:56 -0600, Adam Olsen pisze: > I've replaced __del__ API (which resurrected objects) with a > __finalize__/__finalizeattrs__ API (which doesn't). Attributes listed > in __finalizeattrs__ are proxied into a core object, a finalizer > thread is given a reference to

Re: [Python-3000] A question about Py3K migration

2008-03-18 Thread Martin v. Löwis
> This is something that I've been pondering over for a while now, but I > haven't been able to come to any strong conclusions. I'd appreciate > some comment, and possibly a bit of clarification in the documentation > for migrating to 3.0. As Nick says: Don't worry at all about migrating to 3.0. I

Re: [Python-3000] A question about Py3K migration

2008-03-18 Thread Paul Moore
On 18/03/2008, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > This is something that I've been pondering over for a while now, but I > > haven't been able to come to any strong conclusions. I'd appreciate > > some comment, and possibly a bit of clarification in the documentation > > for migrating

Re: [Python-3000] PEP 361: Python 2.6/3.0 release schedule

2008-03-18 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 18, 2008, at 2:04 AM, Travis Oliphant wrote: > > Hey Barry, > > Thanks for putting this PEP together. This is really helpful. Hi Travis... thanks! > I didn't see discussion of PEP 3118 and it's features back-ported to > Python 2.6. I've alre

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Steven Bethard
On Tue, Mar 18, 2008 at 6:39 AM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 17-03-2008, Pn o godzinie 11:56 -0600, Adam Olsen pisze: > > > I've replaced __del__ API (which resurrected objects) with a > > __finalize__/__finalizeattrs__ API (which doesn't). Attributes listed > >

[Python-3000] from .foo import *

2008-03-18 Thread Martin v. Löwis
When I do a relative star import, I current get SyntaxError: 'import *' not allowed with 'from .' What's the reason for this restriction? Is it ok to remove it? I encountered the issue while porting Django. In django/newforms/__init__.py, they do from widgets import * from fields import * from

Re: [Python-3000] from .foo import *

2008-03-18 Thread Guido van Rossum
I don't recall the reason; it may simply be due to the complexity, or possibly it would have made the _import__ API even uglier. I'm fine with removing the restriction; your use case is compelling. On Tue, Mar 18, 2008 at 10:23 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > When I do a relati

Re: [Python-3000] from .foo import *

2008-03-18 Thread Thomas Wouters
On Tue, Mar 18, 2008 at 8:32 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I don't recall the reason; it may simply be due to the complexity, or > possibly it would have made the _import__ API even uglier. > I don't recall any such issues, and I can't imagine them now. The '.' is resolved bef

Re: [Python-3000] from .foo import *

2008-03-18 Thread Aahz
On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: > > When I do a relative star import, I current get > > SyntaxError: 'import *' not allowed with 'from .' > > What's the reason for this restriction? It was the first step in removing the ability to use "from *" at all. I don't have time right now

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 9:21 AM, Steven Bethard <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008 at 6:39 AM, Marcin 'Qrczak' Kowalczyk > <[EMAIL PROTECTED]> wrote: > > Dnia 17-03-2008, Pn o godzinie 11:56 -0600, Adam Olsen pisze: > > > > > I've replaced __del__ API (which resurrected objects)

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Thomas Heller
Adam Olsen schrieb: > On Tue, Mar 18, 2008 at 9:21 AM, Steven Bethard > <[EMAIL PROTECTED]> wrote: >> On Tue, Mar 18, 2008 at 6:39 AM, Marcin 'Qrczak' Kowalczyk >> <[EMAIL PROTECTED]> wrote: >> > Dnia 17-03-2008, Pn o godzinie 11:56 -0600, Adam Olsen pisze: >> > >> > > I've replaced __del__ AP

Re: [Python-3000] PEP 361: Python 2.6/3.0 release schedule

2008-03-18 Thread Thomas Heller
Barry Warsaw schrieb: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mar 18, 2008, at 2:04 AM, Travis Oliphant wrote: >> >> Hey Barry, >> >> Thanks for putting this PEP together. This is really helpful. > > Hi Travis... thanks! > >> I didn't see discussion of PEP 3118 and it's feature

Re: [Python-3000] [Python-Dev] PEP 361: Python 2.6/3.0 release schedule

2008-03-18 Thread Douglas Mayle
I keep forgetting to reply to the list: This is great news. I was getting ready to submit a patch to fix the Unicode handling in simplejson (which I will probably do anyway), but I'm interested in making sure whichever lib will hit the standard library has a correct implementation. Doug O

[Python-3000] adding json to stdlib (was: Re: [Python-Dev] PEP 361: Python 2.6/3.0 release schedule)

2008-03-18 Thread Neal Norwitz
On Tue, Mar 18, 2008 at 11:17 AM, John Millikin <[EMAIL PROTECTED]> wrote: > > Possible features for 2.6 > > New modules in the standard library: > > - JSON implementation > > > Have there been any plans made for which one? All of the No. This was something I added as a nice to ha

Re: [Python-3000] from .foo import *

2008-03-18 Thread Martin v. Löwis
> It was the first step in removing the ability to use "from *" at all. I > don't have time right now to find the discussion, but I can do that later > if you want. Thanks - that's what I expected; no need to dig out further details. Regards, Martin __

Re: [Python-3000] from .foo import *

2008-03-18 Thread Neal Norwitz
On Tue, Mar 18, 2008 at 11:59 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > > > On Tue, Mar 18, 2008 at 10:49 AM, Aahz <[EMAIL PROTECTED]> wrote: > > > > On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: > > > > > > When I do a relative star import, I current get > > > > > > SyntaxError: 'impor

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 10:15 AM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Adam Olsen schrieb: > > > > On Tue, Mar 18, 2008 at 9:21 AM, Steven Bethard > > <[EMAIL PROTECTED]> wrote: > >> On Tue, Mar 18, 2008 at 6:39 AM, Marcin 'Qrczak' Kowalczyk > >> <[EMAIL PROTECTED]> wrote: > >> > Dnia 1

Re: [Python-3000] from .foo import *

2008-03-18 Thread Benjamin Peterson
On Tue, Mar 18, 2008 at 10:49 AM, Aahz <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: > > > > When I do a relative star import, I current get > > > > SyntaxError: 'import *' not allowed with 'from .' > > > > What's the reason for this restriction? > > It was the first

Re: [Python-3000] from .foo import *

2008-03-18 Thread Benjamin Peterson
On Tue, Mar 18, 2008 at 12:21 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008 at 11:59 AM, Benjamin Peterson > <[EMAIL PROTECTED]> wrote: > > > > > > > > On Tue, Mar 18, 2008 at 10:49 AM, Aahz <[EMAIL PROTECTED]> wrote: > > > > > > On Tue, Mar 18, 2008, "Martin v. L?wis" wrote:

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 18-03-2008, Wt o godzinie 11:24 -0600, Adam Olsen pisze: > If they need access to containing objects the only option is to use > the underlying tool, deathqueues. Deathqueues are a part of python-safethread, right? Interesting, but just like the finalization design, the design with weakrefs

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 1:13 PM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 18-03-2008, Wt o godzinie 11:24 -0600, Adam Olsen pisze: > > > > If they need access to containing objects the only option is to use > > the underlying tool, deathqueues. > > Deathqueues are a part of py

Re: [Python-3000] from .foo import *

2008-03-18 Thread Aahz
On Tue, Mar 18, 2008, Ronald Oussoren wrote: > On 18 Mar, 2008, at 16:49, Aahz wrote: >>On Tue, Mar 18, 2008, "Martin v. L?wis" wrote: >>> >>>When I do a relative star import, I current get >>> >>>SyntaxError: 'import *' not allowed with 'from .' >>> >>>What's the reason for this restriction? >> >>

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 18-03-2008, Wt o godzinie 13:37 -0600, Adam Olsen pisze: > What sort of blocking wait do you use? Or did you mean you don't have one? I meant that I don't have one, I only have iteration over the whole queue, which is equivalent to having trypop. Which prompts the question: what are use cas

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 2:04 PM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 18-03-2008, Wt o godzinie 13:37 -0600, Adam Olsen pisze: > > > > What sort of blocking wait do you use? Or did you mean you don't have one? > > I meant that I don't have one, I only have iteration over t

Re: [Python-3000] [Python-Dev] adding json to stdlib (was: Re: PEP 361: Python 2.6/3.0 release schedule)

2008-03-18 Thread Guido van Rossum
On Tue, Mar 18, 2008 at 11:43 AM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008 at 11:17 AM, John Millikin <[EMAIL PROTECTED]> wrote: > > > Possible features for 2.6 > > > New modules in the standard library: > > > - JSON implementation > > > > > Have there bee

[Python-3000] changing regrtest to handle import errors

2008-03-18 Thread Neal Norwitz
[changing to: and subject: ] On Tue, Mar 18, 2008 at 4:09 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Mar 18, 2008 at 3:58 PM, neal.norwitz > <[EMAIL PROTECTED]> wrote: > > Get this test to pass (UserList/UserDict no longer exist and caused a > skip). > > I think the automatic s

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 18-03-2008, Wt o godzinie 14:32 -0600, Adam Olsen pisze: > The finalizer thread blocks until something's been deleted. Ok. If this is the only use case, I feel quite safe not having this, because my finalizers are implemented independently (and a finalizer thread is created on demand, which

[Python-3000] binascii.crc32 vs zlib.crc32

2008-03-18 Thread Gregory P. Smith
Both modules have a crc32 function. The zlib version is faster when zlib has been compiled optimally or about the same when zlib is old or uses its C code. Should we ditch the binascii.crc32 version in py3k? 64bit Linux (CentOS 5.1): $ python2.4 -m timeit 'foo="abcdefghijklmnop"*10' 'import bin

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 4:04 PM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 18-03-2008, Wt o godzinie 14:32 -0600, Adam Olsen pisze: > > > > The finalizer thread blocks until something's been deleted. > > Ok. If this is the only use case, I feel quite safe not having this, > bec

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 18-03-2008, Wt o godzinie 16:22 -0600, Adam Olsen pisze: > Search for info on java's deprecated Thread.stop() if you're not > already familiar with the problems it has. The problem with Java's Thread.stop() is that it is not possible to block it in a given region, and that it is not possible

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 4:52 PM, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Dnia 18-03-2008, Wt o godzinie 16:22 -0600, Adam Olsen pisze: > > > > Search for info on java's deprecated Thread.stop() if you're not > > already familiar with the problems it has. > > The problem with Java'

[Python-3000] Auto PEP titling? (Re: from .foo import *)

2008-03-18 Thread Greg Ewing
Aahz wrote: > [*] General note to the list: see how I'm using both the PEP number and > the title. Maybe the Python-Dev list server could pass everything through a filter that looks for "PEP " references and inserts the PEP title after them? :-) -- Greg __

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Greg Ewing
Adam Olsen wrote: > I'd tend to assume only *purely* functional languages should have > asynchronous interrupts. Any imperative language with them is > suspect. Yet there are situations where *not* having any such thing can be extremely inconvenient. If I'm performing some background calculation

Re: [Python-3000] python-safethread project status

2008-03-18 Thread Adam Olsen
On Tue, Mar 18, 2008 at 6:47 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Adam Olsen wrote: > > I'd tend to assume only *purely* functional languages should have > > asynchronous interrupts. Any imperative language with them is > > suspect. > > Yet there are situations where *not* having any su

[Python-3000] JSON nit

2008-03-18 Thread skip
Regarding putting some JSON implementation in the standard library... I suppose anyone who uses JSON is aware of its limitations, but this was a bit disconcerting: >>> simplejson.loads(simplejson.dumps({1: 2})) {u'1': 2} Silent type conversion is a Perl thing. I would prefer it if it ra