[Python-Dev] Dotted/indexed defs ? Re: PEP 8: Discourage named lambdas?

2008-05-05 Thread Boris Borcic

Mike Klaas wrote:

Another thing to consider is that the def() pattern is only possible 
when the bound variable has no dots.  A common pattern for me is to 
replace an instances method with a lambda to add monitoring hooks or 
disable certain functionality:


inst.get_foo = lambda: FakeFoo()


Good point. That one may write eg

for inst.bar in range(10) : do_something()

makes one wonder whether

def inst.bar(...) : ...

or even

def fn[k](...) : ...

should be similarly permitted. Has this ever been discussed ?

Regards, BB

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-05 Thread Ralf Schmitt
On Thu, May 1, 2008 at 10:26 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> This is a reminder that the LAST planned alpha releases of Python 2.6 and
> 3.0 are scheduled for next Wednesday, 07-May-2008.  Please be diligent over
> the next week so that none of your changes break Python.  The stable
> buildbots look moderately okay, let's see what we can do about getting them
> all green:
>
> http://www.python.org/dev/buildbot/stable/
>
> We have a few showstopper bugs, and I will be looking at these more
> carefully starting next week.
>
>
> http://bugs.python.org/[EMAIL 
> PROTECTED],id,activity,versions,status&@sort=activity&@filter=priority,status&@pagesize=50&@startwith=0&priority=1&status=1&@dispname=Showstoppers
>

running the testsuite segfaults on my 64 bit debian testing in test_pyexpat.
This does not happen in a debug build:

test_pyclbr
test_pydoc
test_pyexpat

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b573851a6e0 (LWP 19486)]
0x in ?? ()
(gdb) bt
#0  0x in ?? ()
#1  0x2f694f0a in doContent (parser=0x1b4bab0, startTagLevel=0,
enc=0x1b4dba0,
s=0x1b4cb3c "", ' ' ,
"frozenset([frozenset([2]),\n", ' ' , "frozenset([0,\n", '
' ...,
end=0x1b4cb40 ' ' , "frozenset([frozenset([2]),\n", '
' , "frozenset([0,\n", ' ' ...,
nextPtr=0x1b4bae0, haveMore=1 '\001')
at extensions/expat/lib/xmlparse.c:2540
#2  0x2f6972ee in contentProcessor (parser=0x1b4bab0, start=0x0,
end=0x1b4c470 "q\001", endPtr=0x0)
at extensions/expat/lib/xmlparse.c:2003
#3  0x2f698662 in doProlog (parser=0x1b4bab0, enc=0x1b4dba0,
s=0x1b4c738 "", 'a' ...,
end=0x1b4cb40 ' ' , "frozenset([frozenset([2]),\n", '
' , "frozenset([0,\n", ' ' ..., tok=29,
next=0x1b4c738 "", 'a' ..., nextPtr=0x1b4bae0,
haveMore=1 '\001') at extensions/expat/lib/xmlparse.c:3803
#4  0x2f69adc3 in prologInitProcessor (parser=0x1b4bab0,
s=0x1b4c710 "", 'a' ...,
end=0x1b4cb40 ' ' , "frozenset([frozenset([2]),\n", '
' , "frozenset([0,\n", ' ' ...,
nextPtr=0x1b4bae0) at extensions/expat/lib/xmlparse.c:3551
#5  0x2f68cc61 in XML_ParseBuffer (parser=0x1d20670, len=28625724,
isFinal=0) at extensions/expat/lib/xmlparse.c:1562
#6  0x2f689467 in xmlparse_Parse (self=0x1d20670,
args=) at extensions/pyexpat.c:922
#7  0x00419b9d in PyObject_Call (func=0x1a52b48, arg=0x2b7a710,
kw=0x1b4c610) at Objects/abstract.c:2490
#8  0x004902f8 in PyEval_EvalFrameEx (f=0x8cba40,
throwflag=) at Python/ceval.c:3944
#9  0x00494824 in PyEval_EvalCodeEx (co=0x2b5738764558,
globals=, locals=,
args=0x23aa130, argcount=4, kws=0x23aa150, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:2908
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Joe Smith


"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

On Sun, May 4, 2008 at 2:58 AM, Stefan Behnel <[EMAIL PROTECTED]> wrote:

 Personally, I would consider the following sufficient:

 1) people who have authenticated themselves against the underlying VCS 
(i.e.

 project members) may post public comments and comment on other comments


Tell me how to authenticate against a SVN project using HTTP only.



Hmm... Is there a good reason not to just migrate over to OpenID?
For one thing, surely an OpenID provider could exist that just authenticates 
a username against an SVN account. Then many people already have a Yahoo 
account or AOL screenname. On the downside, the OpenID system will likely 
not be terribly effective at avoiding spam in the long run, as spammers 
register accounts at providers (especially those without or with weak 
Captchas). On the otherhand, there are already reports of Spammers mass 
signing-up for Google accounts, so it may not be that different in the long 
run anyway. 



___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
If you're asking for reasons not to do this:

- AppEngine has a built-in API for dealing with Google Accounts, but
not for OpenID

- Apparently OpenID requires some crypto that would be slow without
additional API support

- I'm not personally familiar with OpenID

None of these seem insurmountable, so now that it's open source, I'm
looking forward to contributions.

--Guido

On Mon, May 5, 2008 at 8:27 AM, Joe Smith <[EMAIL PROTECTED]> wrote:
>
>  "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
> > On Sun, May 4, 2008 at 2:58 AM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> >
> > >  Personally, I would consider the following sufficient:
> > >
> > >  1) people who have authenticated themselves against the underlying VCS
> (i.e.
> > >  project members) may post public comments and comment on other comments
> > >
> >
> > Tell me how to authenticate against a SVN project using HTTP only.
> >
> >
>
>  Hmm... Is there a good reason not to just migrate over to OpenID?
>  For one thing, surely an OpenID provider could exist that just
> authenticates a username against an SVN account. Then many people already
> have a Yahoo account or AOL screenname. On the downside, the OpenID system
> will likely not be terribly effective at avoiding spam in the long run, as
> spammers register accounts at providers (especially those without or with
> weak Captchas). On the otherhand, there are already reports of Spammers mass
> signing-up for Google accounts, so it may not be that different in the long
> run anyway.
>
>
>  ___
>  Python-Dev mailing list
>  Python-Dev@python.org
>  http://mail.python.org/mailman/listinfo/python-dev
>  Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Martin v. Löwis
> This code is now open source! Browse it here:
> 
>   http://code.google.com/p/rietveld/source/browse

Are you also going to call it Rietveld then? Sounds better
to me than "the open source code review tool".

Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Raghuram Devarakonda
On Mon, May 5, 2008 at 12:28 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:

>  None of these seem insurmountable, so now that it's open source, I'm
>  looking forward to contributions.

Are there any mailing lists associated with this project? I looked at
google code page but couldn't find any.

Thanks,
Raghu
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
On Mon, May 5, 2008 at 9:46 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > This code is now open source! Browse it here:
>  >
>  >   http://code.google.com/p/rietveld/source/browse
>
>  Are you also going to call it Rietveld then? Sounds better
>  to me than "the open source code review tool".

I've been reluctant to use the Rietveld name too much since Americans
can't spell it. :-) But the open source project *is* called Rietveld,
so I suppose I should start using that name...

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
On Mon, May 5, 2008 at 9:49 AM, Raghuram Devarakonda
<[EMAIL PROTECTED]> wrote:
> On Mon, May 5, 2008 at 12:28 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>
>  >  None of these seem insurmountable, so now that it's open source, I'm
>  >  looking forward to contributions.
>
>  Are there any mailing lists associated with this project? I looked at
>  google code page but couldn't find any.

Not yet. Do you want me to create a Google group for it?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Raghuram Devarakonda
>  >  Are there any mailing lists associated with this project? I looked at
>  >  google code page but couldn't find any.
>
>  Not yet. Do you want me to create a Google group for it?

I think that will be very useful.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread skip

Guido> I've been reluctant to use the Rietveld name too much since
Guido> Americans can't spell it. :-) But the open source project *is*
Guido> called Rietveld, so I suppose I should start using that name...

Which reminds me...  What's it mean?  All I saw was a Dutch city and
(maybe?) a Dutch architect by that name.

Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
On Mon, May 5, 2008 at 10:32 AM,  <[EMAIL PROTECTED]> wrote:
>
> Guido> I've been reluctant to use the Rietveld name too much since
> Guido> Americans can't spell it. :-) But the open source project *is*
> Guido> called Rietveld, so I suppose I should start using that name...
>
>  Which reminds me...  What's it mean?  All I saw was a Dutch city and
>  (maybe?) a Dutch architect by that name.
>
>  Skip
>

http://code.google.com/p/rietveld/wiki/CodeReviewBackground

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
Done. I've sent an invite to this list, but just in case it doesn't
make it, here's the group home page:

http://groups.google.com/group/codereview-discuss

On Mon, May 5, 2008 at 10:28 AM, Raghuram Devarakonda
<[EMAIL PROTECTED]> wrote:
> >  >  Are there any mailing lists associated with this project? I looked at
>  >  >  google code page but couldn't find any.
>  >
>  >  Not yet. Do you want me to create a Google group for it?
>
>  I think that will be very useful.
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Georg Brandl

Guido van Rossum schrieb:

On Mon, May 5, 2008 at 9:46 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:

> This code is now open source! Browse it here:
 >
 >   http://code.google.com/p/rietveld/source/browse

 Are you also going to call it Rietveld then? Sounds better
 to me than "the open source code review tool".


I've been reluctant to use the Rietveld name too much since Americans
can't spell it. :-) But the open source project *is* called Rietveld,
so I suppose I should start using that name...


BTW, Google code's Python highlighting is broken, look at
http://code.google.com/p/rietveld/source/browse/trunk/views.py line 205ff.

Where can this be reported?

Georg

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open sourcecode review tool

2008-05-05 Thread Terry Reedy

"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
|I've been reluctant to use the Rietveld name too much since Americans
can't spell it. :-)

Well, it follows the i before e rule, so I think I will manage.
And it is a nice name, unlike Unix 'creat'.
In any case, American programmers are not 'average' Americans ;-).
So I say use it! 



___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
That's a good question. I'll find out.

On Mon, May 5, 2008 at 10:56 AM, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Guido van Rossum schrieb:
>
>
> > On Mon, May 5, 2008 at 9:46 AM, "Martin v. Löwis" <[EMAIL PROTECTED]>
> wrote:
> >
> > > > This code is now open source! Browse it here:
> > >  >
> > >  >   http://code.google.com/p/rietveld/source/browse
> > >
> > >  Are you also going to call it Rietveld then? Sounds better
> > >  to me than "the open source code review tool".
> > >
> >
> > I've been reluctant to use the Rietveld name too much since Americans
> > can't spell it. :-) But the open source project *is* called Rietveld,
> > so I suppose I should start using that name...
> >
>
>  BTW, Google code's Python highlighting is broken, look at
>  http://code.google.com/p/rietveld/source/browse/trunk/views.py line 205ff.
>
>  Where can this be reported?
>
>  Georg
>
>
>
>  ___
>  Python-Dev mailing list
>  Python-Dev@python.org
>  http://mail.python.org/mailman/listinfo/python-dev
>  Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Daniel Berlin
There is a google code support project where google code issues are tracked.

http://code.google.com/p/support/


On Mon, May 5, 2008 at 2:56 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> That's a good question. I'll find out.
>
>
>
>  On Mon, May 5, 2008 at 10:56 AM, Georg Brandl <[EMAIL PROTECTED]> wrote:
>  > Guido van Rossum schrieb:
>  >
>  >
>  > > On Mon, May 5, 2008 at 9:46 AM, "Martin v. Löwis" <[EMAIL PROTECTED]>
>  > wrote:
>  > >
>  > > > > This code is now open source! Browse it here:
>  > > >  >
>  > > >  >   http://code.google.com/p/rietveld/source/browse
>  > > >
>  > > >  Are you also going to call it Rietveld then? Sounds better
>  > > >  to me than "the open source code review tool".
>  > > >
>  > >
>  > > I've been reluctant to use the Rietveld name too much since Americans
>  > > can't spell it. :-) But the open source project *is* called Rietveld,
>  > > so I suppose I should start using that name...
>  > >
>  >
>  >  BTW, Google code's Python highlighting is broken, look at
>  >  http://code.google.com/p/rietveld/source/browse/trunk/views.py line 205ff.
>  >
>  >  Where can this be reported?
>  >
>  >  Georg
>  >
>  >
>  >
>  >  ___
>  >  Python-Dev mailing list
>  >  Python-Dev@python.org
>  >  http://mail.python.org/mailman/listinfo/python-dev
>  >  Unsubscribe:
>  > http://mail.python.org/mailman/options/python-dev/guido%40python.org
>
> >
>
>
>
>  --
>  --Guido van Rossum (home page: http://www.python.org/~guido/)
>  ___
>
>
> Python-Dev mailing list
>  Python-Dev@python.org
>  http://mail.python.org/mailman/listinfo/python-dev
>  Unsubscribe: 
> http://mail.python.org/mailman/options/python-dev/dberlin%40dberlin.org
>
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Guido van Rossum
I reported this: http://code.google.com/p/support/issues/detail?id=1006

The tracker is here: http://code.google.com/p/support/issues

Thanks!

On Mon, May 5, 2008 at 10:56 AM, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Guido van Rossum schrieb:
>
>
> > On Mon, May 5, 2008 at 9:46 AM, "Martin v. Löwis" <[EMAIL PROTECTED]>
> wrote:
> >
> > > > This code is now open source! Browse it here:
> > >  >
> > >  >   http://code.google.com/p/rietveld/source/browse
> > >
> > >  Are you also going to call it Rietveld then? Sounds better
> > >  to me than "the open source code review tool".
> > >
> >
> > I've been reluctant to use the Rietveld name too much since Americans
> > can't spell it. :-) But the open source project *is* called Rietveld,
> > so I suppose I should start using that name...
> >
>
>  BTW, Google code's Python highlighting is broken, look at
>  http://code.google.com/p/rietveld/source/browse/trunk/views.py line 205ff.
>
>  Where can this be reported?
>
>  Georg
>
>
>
>  ___
>  Python-Dev mailing list
>  Python-Dev@python.org
>  http://mail.python.org/mailman/listinfo/python-dev
>  Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Dotted/indexed defs ? Re: PEP 8: Discourage named lambdas?

2008-05-05 Thread Greg Ewing

Boris Borcic wrote:


def inst.bar(...) : ...
def fn[k](...) : ...

should be similarly permitted. Has this ever been discussed ?


Yes, but there didn't seem to be much interest in
the idea. Which is disappointing, because it would
be ideal for setting up function tables and such
like.

One small problem is that there would be no sensible
name to give the function object, but that's no
worse than what you get when using a lambda.

--
Greg
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-3000] Invitation to try out open sourcecode review tool

2008-05-05 Thread Greg Ewing

Terry Reedy wrote:


In any case, American programmers are not 'average' Americans ;-).
So I say use it!


Plus, think of all the millions of people who will have
their lives enriched by learning to spell 'Rietveld'
properly!

--
Greg
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com