Re: [Python-3000] Warning for 2.6 and greater

2007-01-09 Thread Thomas Wouters
On 1/9/07, Aahz <[EMAIL PROTECTED]> wrote: Hey! What's this about __cmp__?! Python 3.0x (p3yk:53295, Jan 8 2007, 09:32:17) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. object.__cmp__ Traceback (most re

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Guido van Rossum
On 1/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > FWIW, I wasn't aware that things like "except T, (a, b, c):" were > possible until I started work on this patch; I thought was all > you _could_ use. And, given the secial semantics for this position, I would support changing the syntax to *on

Re: [Python-3000] Lazy strings (was Re: Py3k release schedule worries)

2007-01-09 Thread Guido van Rossum
> > On 12/30/06, Talin <[EMAIL PROTECTED]> wrote: > > > Maybe this would be a good time to review, or at least restate, the > > > specific plans for strings in Py3K? I know that there's been a great > > > deal of discussion on this, but a lot of that discussion took place > > > *before* Larry's wor

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Collin Winter
On 1/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > And, given the secial semantics for this position, I would support > changing the syntax to *only* allow a single simple name there -- not > even x.y.z. Thsh should handle 99.9% of existing code anyway. > > (And yes, if someone wants to add t

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Tim Delaney
Guido van Rossum wrote: > On 1/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: >> FWIW, I wasn't aware that things like "except T, (a, b, c):" were >> possible until I started work on this patch; I thought was all >> you _could_ use. > > And, given the secial semantics for this position, I would s

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Phillip J. Eby
At 08:10 AM 1/10/2007 +1100, Tim Delaney wrote: >Guido van Rossum wrote: > > > On 1/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > >> FWIW, I wasn't aware that things like "except T, (a, b, c):" were > >> possible until I started work on this patch; I thought was all > >> you _could_ use. > > >

[Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
Since the threads on what modules to remove has puttered out (which I take it to mean people no longer are having any fits over the list which makes me happy =), I figured we can move on to the open issue of new packages. Lots of people seem to pick up on it when I posted the full PEP so I am hopi

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Guido van Rossum
On 1/9/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > That seems fine for 2.x, but 3.x should have Only One Way To Do It. 2.x > needs both syntaxes to support writing forward-compatible code. Really? I personally expect that that's a lost cause. A much more modest goal would be to write code tha

Re: [Python-3000] PEP 3108 and modules to be removed (current list)

2007-01-09 Thread Collin Winter
On 1/5/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > Obsolete > > > Becoming obsolete signifies that either another module in the stdlib > or a widely distributed third-party library provides a better solution > for what the module is meant for. How about the sets module? The set and froz

Re: [Python-3000] PEP 3108 and modules to be removed (current list)

2007-01-09 Thread Brett Cannon
On 1/9/07, Collin Winter <[EMAIL PROTECTED]> wrote: > On 1/5/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > Obsolete > > > > > > Becoming obsolete signifies that either another module in the stdlib > > or a widely distributed third-party library provides a better solution > > for what the

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Fred L. Drake, Jr.
On Tuesday 09 January 2007 17:27, Brett Cannon wrote: >     - syslog There's nothing Unix-specific about syslog (other than history), but the syslog module itself is Unix-specific. Given that there's a Python implementation of a syslog client in the logging module, would it make sense to refa

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Mike Klaas
On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > * 'collections' package > > + heapq > + Queue Putting this in a collections package might exacerbate the confusion over its intended use. It really is more of a threading synchronization tool than a general queue datastructure (though it

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
On 1/9/07, Fred L. Drake, Jr. <[EMAIL PROTECTED]> wrote: > On Tuesday 09 January 2007 17:27, Brett Cannon wrote: > > - syslog > > There's nothing Unix-specific about syslog (other than history), but the > syslog module itself is Unix-specific. Given that there's a Python > implementation of a sys

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
On 1/9/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > > > * 'collections' package > > > > + heapq > > + Queue > > Putting this in a collections package might exacerbate the confusion > over its intended use. It really is more of a threading >

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Collin Winter
On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > On 1/9/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > > Does the sets module serve any purpose other than backward > > compatibility? Why not remove those module for py3k? > > Same reason that the User* modules still exist I suppose. Plus I > don'

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
On 1/9/07, Collin Winter <[EMAIL PROTECTED]> wrote: > On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > On 1/9/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > > > Does the sets module serve any purpose other than backward > > > compatibility? Why not remove those module for py3k? > > > > Same rea

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Adam Olsen
On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > * Profiling > > + cProfile > + profile > + hotshot > + pstats Perhaps 'diagnostics' instead, with pdb thrown in? Hopefully there will be more tools in the future. -- Adam Olsen, aka Rhamphoryncus __

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Collin Winter
On 1/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 1/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > FWIW, I wasn't aware that things like "except T, (a, b, c):" were > > possible until I started work on this patch; I thought was all > > you _could_ use. > > And, given the secial seman

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Bill Janssen
OK, let me repeat myself. I see no point in grouping modules just because they're servers. I'd suggest a Web module containing: html: htmlentitydefs htmllib HTMLParser sgmllib (?) server: BaseHTTPServer cgi CGIHTTPServer Cookie wsgiref client: co

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
On 1/9/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > OK, let me repeat myself. > OK. > I see no point in grouping modules just because they're servers. > That's fine. But they do server a similar purpose and so it is a legit suggestion. If no one else likes it then it won't go anywhere. I wil

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Brett Cannon
On 1/9/07, Collin Winter <[EMAIL PROTECTED]> wrote: > On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > On 1/9/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > > > Does the sets module serve any purpose other than backward > > > compatibility? Why not remove those module for py3k? > > > > Same rea

Re: [Python-3000] Warning for 2.6 and greater

2007-01-09 Thread Anthony Baxter
cc'ing python-dev - followups should probably go there, rather than the p3yk list. So here's my latest plan: - Add a Py3KDeprecationWarning, as a subclass of DeprecationWarning (or maybe just of Warning) - Add a -W py3k shortcut, which is the same as "-W once:Py3kDeprecationWarning" - Add a C

[Python-3000] test_hotshot failing -- what's up?

2007-01-09 Thread Guido van Rossum
In the p3yk branch, test_hotshot seems to be failing. Does anybody have any idea why? Is this an artefact of the latest merge? (BTW thanks for doing another merge, Thomas -- it's greatly appreciated!) -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Josiah Carlson
"Brett Cannon" <[EMAIL PROTECTED]> wrote: > * Databases > + anydbm > + dbhash > + dbm > + bsddb > + dumbdbm > + gdbm > + whichdb What about sqlite3? > * Internet (leaving out all questionable modules leads to a Web > grouping) I'm not a real big fan of the Internet package, but

Re: [Python-3000] self-contained exceptions

2007-01-09 Thread Josiah Carlson
"Collin Winter" <[EMAIL PROTECTED]> wrote: > On 1/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 1/8/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > > FWIW, I wasn't aware that things like "except T, (a, b, c):" were > > > possible until I started work on this patch; I thought was all

Re: [Python-3000] test_hotshot failing -- what's up?

2007-01-09 Thread Anthony Baxter
On Wednesday 10 January 2007 16:31, Guido van Rossum wrote: > In the p3yk branch, test_hotshot seems to be failing. Does > anybody have any idea why? Is this an artefact of the latest > merge? (BTW thanks for doing another merge, Thomas -- it's > greatly appreciated!) It works fine for me...

Re: [Python-3000] possible new packages (PEP 3108)

2007-01-09 Thread Oleg Broytmann
On Tue, Jan 09, 2007 at 06:18:21PM -0800, Bill Janssen wrote: > server: > Cookie > > client: > cookielib server: cookie client: cookie ? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSU