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

2007-01-10 Thread Thomas Wouters
On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> 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!) No tests were failing for me, after

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Phillip J. Eby
At 10:00 PM 1/9/2007 -0800, Josiah Carlson wrote: >I know that one of the points of all of this is so that the name that >the exc_info() stuff gets in the local scope doesn't propagate past the >except clause, That is the *entire* point of this, actualy. :) (Well, the "as" change was supposed t

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

2007-01-10 Thread Aahz
On Tue, Jan 09, 2007, Thomas Wouters wrote: > 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" fo

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

2007-01-10 Thread Guido van Rossum
Hm, then maybe it started failing after I applied Collin Winter's 'except' patches. Collin, does test_hotshot pass or fail for you, with or without your patches? On 1/10/07, Thomas Wouters <[EMAIL PROTECTED]> wrote: > > > On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > In the p3yk bran

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Guido van Rossum
On 1/9/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > I know that one of the points of all of this is so that the name that > the exc_info() stuff gets in the local scope doesn't propagate past the > except clause, but I can't help feeling as if removing the name isn't a > little overenthusiastic.

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

2007-01-10 Thread Jim Jewett
On 1/9/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > Anyway, since this is an Open Issue and slightly controversial I need > explicit voting from people on whether they like any of the proposed > packages. So please don't be silent if there is a package you think > that should (or should not) happ

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Josiah Carlson
"Guido van Rossum" <[EMAIL PROTECTED]> wrote: > > On 1/9/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > I know that one of the points of all of this is so that the name that > > the exc_info() stuff gets in the local scope doesn't propagate past the > > except clause, but I can't help feeling

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

2007-01-10 Thread Bill Janssen
> I already have that package but without the subpackging which I am not > going to do. As I said, I am not going to push for anything more than > a shallow (i.e., one level deep) package introduction. > I am not dealing with any merging unless I have to. Perhaps I should > make that a basic rul

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

2007-01-10 Thread Neal Norwitz
Did the import magic number get changed? That was the cause of my last crash in test_hotshot (not related to this though). n On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Hm, then maybe it started failing after I applied Collin Winter's > 'except' patches. Collin, does test_hotshot p

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

2007-01-10 Thread Bill Janssen
> > * XML-RPC > > > + DocXMLRPCServer > > + SimpleXMLRPCServer > > + xmlrpclib > > Somehow, this grouping seems artificial. I also wonder whether the > Doc server ought to go in a docs package, or the debug package. That > said, I still like it better than no change. How about putting th

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Josiah Carlson
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote: > At 10:00 PM 1/9/2007 -0800, Josiah Carlson wrote: [snip] > Please provide what you'd put in the reference manual as an explanation of > this behavior. (Remember: if the implementation is hard to explain...) If the name to the right of the 'as' keywo

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Greg Falcon
Well, now I have to delurk. I've been watching with growing excitement. Between the changes to the scope rules for list comprehensions, and this change for except blocks, I wondered if Python might have been moving in the direction of block scoped variables where appropriate as a philosophy. I a

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Josiah Carlson
"Greg Falcon" <[EMAIL PROTECTED]> wrote: [snip] > I'm coming from a philosophy, though, that believes any time a > syntactic construct creates a local binding and a new suite to use it > in, the binding shouldn't escape that suite. Yes, I'm really talking > about 'for', and I know this is probabl

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

2007-01-10 Thread Josiah Carlson
Bill Janssen <[EMAIL PROTECTED]> wrote: > > > > * XML-RPC > > > > > + DocXMLRPCServer > > > + SimpleXMLRPCServer > > > + xmlrpclib > > > > Somehow, this grouping seems artificial. I also wonder whether the > > Doc server ought to go in a docs package, or the debug package. That > > said

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Collin Winter
On 1/10/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > According to the translation rules Colin has previously provided... Phillip came up the translation, I just implemented it. > re = get_resource() > ... > try: > something() > except RareException as re: > ...

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Phillip J. Eby
At 07:47 AM 1/10/2007 -0800, Guido van Rossum wrote: >BTW perhaps we should add the same semantics and syntax to 'with expr >as var'? I can't think of a reasonable use case [snip] >... for using anything >more complex than a local variable, BTW.) with multi(ctx1, ctx2, ...) as var1, var2, ...: (

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

2007-01-10 Thread Collin Winter
On 1/10/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: Did the import magic number get changed? That was the cause of my last crash in test_hotshot (not related to this though). I don't think so (at least, I didn't change it). On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Hm, then m

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

2007-01-10 Thread Jim Jewett
On 1/10/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > I am not dealing with any merging unless I have to. Perhaps I should > > make that a basic rule that I am not handling merges into a package > > and that can be done separately. > Then I don't see the point of re-organizing at all. Just dr

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Greg Falcon
On 1/10/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > According to the translation rules Colin has previously provided... > > re = get_resource() > ... > try: > something() > except RareException as re: > ... > ... > re.use_resource() > > is translated into

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Jim Jewett
On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > Phillip came up the translation, I just implemented it. ... > re = get_resource() ... > except RareException as re: ... > re.use_resource() > So 're = None; del re;' is *only* executed if the except body is executed. So re.use_re

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Phillip J. Eby
At 12:05 PM 1/10/2007 -0500, Greg Falcon wrote: >I'm coming from a philosophy, though, that believes any time a >syntactic construct creates a local binding and a new suite to use it >in, the binding shouldn't escape that suite. Yes, I'm really talking >about 'for', and I know this is probably a c

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

2007-01-10 Thread Bill Janssen
> Also, from what I understand, XML-RPC is a specialized web > server, so the two Servers might fit within the http server package, and > xmlrpclib fitting with the http client stuff. Bill ___ Python-3000 mailing list [email protected] http://mail.p

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

2007-01-10 Thread Bill Janssen
Jim Jewett says: > If you want to combine modules, or move code to a more appropriate > place, that might be good too, but it isn't in Brett's scope. All he > is doing is > > (1) Getting rid of stuff that has already been replaced, and > (2) (Maybe) moving modules closer together so that it wil

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Collin Winter
On 1/10/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > re = get_resource() > ... > > except RareException as re: > ... > > re.use_resource() > > > So 're = None; del re;' is *only* executed if the except body is executed. > > So re.u

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Greg Falcon
Some very good points made here. On 1/10/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > Yeah, I like reusing the variable names bound in a for loop. And unless > we are going to attempt to simplify the in... > > for in ...: > ... > > to only be a bare name, and not things like 'i,

Re: [Python-3000] self-contained exceptions

2007-01-10 Thread Josiah Carlson
"Greg Falcon" <[EMAIL PROTECTED]> wrote: [snip] > Per these rules: > On 1/7/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > > On 1/4/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > > > > except ExcType, e: > > > > try: > > > > # body > > > > finally: > > >

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

2007-01-10 Thread Guido van Rossum
On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > On 1/10/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > Did the import magic number get changed? That was the cause of my > > last crash in test_hotshot (not related to this though). > > I don't think so (at least, I didn't change it). Actual

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

2007-01-10 Thread Guido van Rossum
On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > On 1/10/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > Did the import magic number get changed? That was the cause of my > > > last crash in test_hotshot (not related to this thoug

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

2007-01-10 Thread Collin Winter
On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > > On 1/10/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > > Did the import magic number get changed? That was the cause o

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

2007-01-10 Thread Guido van Rossum
On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > It passes there too now, but I'm confused as to whether the magic > > number shuold be changed. Since not too many people ought to be > > affected I'm tempted to forget about the whole episode... > > I thought the magic number was only suppos

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

2007-01-10 Thread Brett Cannon
On 1/9/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > "Brett Cannon" <[EMAIL PROTECTED]> wrote: > > * Databases > > + anydbm > > + dbhash > > + dbm > > + bsddb > > + dumbdbm > > + gdbm > > + whichdb > > What about sqlite3? > Oops. =) > > > * Internet (leaving out all questionabl

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

2007-01-10 Thread Brett Cannon
On 1/10/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > Jim Jewett says: > > If you want to combine modules, or move code to a more appropriate > > place, that might be good too, but it isn't in Brett's scope. All he > > is doing is > > > > (1) Getting rid of stuff that has already been replaced, a

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

2007-01-10 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 10, 2007, at 2:32 PM, Brett Cannon wrote: >>> * Internet (leaving out all questionable modules leads to a Web >>> grouping) >> >> I'm not a real big fan of the Internet package, but you forgot about >> smtpd (an asyncore subclass that is an s

[Python-3000] Changing default __repr__ of type

2007-01-10 Thread Armin Ronacher
Hoi, > gmane workaround What drives me nuts personally is the default __repr__ of classes. (type instances and not class instances). Currently it looks like this:: >>> Foo >>> mymodule.Foo IMHO a better way is this one: >>> Foo Foo >>> mymodule.Foo mymodule.F

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

2007-01-10 Thread Collin Winter
On 1/10/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 1/10/07, Collin Winter <[EMAIL PROTECTED]> wrote: > > > It passes there too now, but I'm confused as to whether the magic > > > number shuold be changed. Since not too many people ought to be > > > affected I'm tempted to forget about the

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

2007-01-10 Thread Josiah Carlson
"Brett Cannon" <[EMAIL PROTECTED]> wrote: > On 1/9/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > "Brett Cannon" <[EMAIL PROTECTED]> wrote: > > > * Internet (leaving out all questionable modules leads to a Web > > > grouping) > > > > I'm not a real big fan of the Internet package, but you for

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

2007-01-10 Thread Josiah Carlson
> Two other quick things: I have an adaptation of smtpd.py that > provides LMTP support (RFC 2033) that might make it into Python 2.6. > Also, I'd really love it if the top level 'email' package name was > reserved for the current code. Agreed. - Josiah _

[Python-3000] 2to3 pattern syntax

2007-01-10 Thread Brian L. Troutwine
As the refactoring tool for the 2 to 3 transition was mentioned some time ago on this list I hope that this is the correct list to post questions about the tool. I apologize if this isn't, of course. My questions are entirely concerned with the pattern matching syntax. The problem is, it would

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

2007-01-10 Thread Jim Jewett
On 1/10/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > Jim Jewett says: > > (2) (Maybe) moving modules closer together so that it will be easier > > to see what refactoring is needed. > > Eliminating some additional modules afterwards would be good too, but > > there may not be time, and step (2

Re: [Python-3000] 2to3 pattern syntax

2007-01-10 Thread Guido van Rossum
On 1/10/07, Brian L. Troutwine <[EMAIL PROTECTED]> wrote: > As the refactoring tool for the 2 to 3 transition was mentioned some time ago > on this list I hope that this is the correct list to post questions about the > tool. I apologize if this isn't, of course. > > My questions are entirely conce

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

2007-01-10 Thread Bill Janssen
> It depends. I'm trying hard to stay out of this thread, but smtpd.py > is more of a server that speaks a protocol that happens to be used > sometimes for email. I really don't know where best to put > it, but another alternative is to have a 'protocols' package perhaps > with client an

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

2007-01-10 Thread Bill Janssen
> Otherwise I am removing the Open Issue and I will > leave it up to someone else to write up a PEP and pitch it to the list > and Guido. That would be my recommendation. Bill ___ Python-3000 mailing list [email protected] http://mail.python.org/ma

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

2007-01-10 Thread Georg Brandl
Anthony Baxter schrieb: > cc'ing python-dev - followups should probably go there, rather than > the p3yk list. > > So here's my latest plan: [...] > Comments? What else should get warnings? Previously, there was some talk about making these warnings guarded by #ifs. Is that still an option? I

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

2007-01-10 Thread Anthony Baxter
On Thursday 11 January 2007 06:32, Georg Brandl wrote: > I guess there are quite a few people who won't start moving to > Python 3.0 with 2.6, or even when 3.1 is out, as long as their > program works fine with the 2.x line. There's no need to punish > them with extra overhead. Checking a single C