Re: [Python-3000] signature annotation in the function signature or a separate line

2006-08-20 Thread Guido van Rossum
On 8/19/06, Samuele Pedroni <[EMAIL PROTECTED]> wrote:> Given that the meaning of annotations is meant not be predefined,Not sure what that has to do with it. > given that people are comining with arbitrarely verbose examples> thereof,Which I believe are worst-case scenarios and not what we'll see

[Python-3000] raise with traceback?

2006-08-20 Thread Georg Brandl
Hi, as raise ValueError, "something went wrong" is going to go away, how will one raise with a custom traceback? The obvious raise ValueError("something went wrong"), traceback or something more esoteric like raise ValueError("something went wrong") with traceback ? Georg

Re: [Python-3000] raise with traceback?

2006-08-20 Thread Guido van Rossum
The 'with' syntax is attractive because it will flag all unconverted code as a syntax error. I wonder if "raise ValueError" should still be allowed (as equivalent to "raise ValueError()") or that it should be disallowed. --Guido On 8/20/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > Hi, > > as >

Re: [Python-3000] raise with traceback?

2006-08-20 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I wonder if "raise ValueError" should still be allowed (as equivalent > to "raise ValueError()") or that it should be disallowed. +1 for disallow. raise is a simple rule to remember. Having VE == VE() in certain

[Python-3000] Google Sprint Ideas

2006-08-20 Thread Guido van Rossum
I've created a wiki page with some ideas for Python 3000 things we could do at the Google sprint (starting Monday). See: http://wiki.python.org/moin/GoogleSprintPy3k For general info about this sprint -- it's not too late to come! -- see: http://wiki.python.org/moin/GoogleSprint -- --Guido

Re: [Python-3000] raise with traceback?

2006-08-20 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 20, 2006, at 11:53 AM, Guido van Rossum wrote: > The 'with' syntax is attractive because it will flag all unconverted > code as a syntax error. > > I wonder if "raise ValueError" should still be allowed (as equivalent > to "raise ValueError()")

Re: [Python-3000] raise with traceback?

2006-08-20 Thread Georg Brandl
Terry Reedy wrote: > "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I wonder if "raise ValueError" should still be allowed (as equivalent >> to "raise ValueError()") or that it should be disallowed. > > +1 for disallow. > > raise is a simple rule to remember.

Re: [Python-3000] int-long unification

2006-08-20 Thread Martin v. Löwis
Guido van Rossum schrieb: > Are you interested in doing this at the Google sprint next week? Sure; I hadn't any special plans so far. > What do you think? Sounds good. There are two problems I see: - how to benchmark? - there are subtle details in the API that require changes to extension co

Re: [Python-3000] int-long unification

2006-08-20 Thread Guido van Rossum
On 8/20/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Guido van Rossum schrieb: > > Are you interested in doing this at the Google sprint next week? > > Sure; I hadn't any special plans so far. > > > What do you think? > > Sounds good. There are two problems I see: > > - how to benchmark? We

Re: [Python-3000] Fwd: Conventions for annotation consumers

2006-08-20 Thread Jim Jewett
On 8/19/06, Paul Prescod <[EMAIL PROTECTED]> wrote: > On 8/19/06, Ron Adam <[EMAIL PROTECTED]> wrote: > ... don't understand the virtue of bringing > decorators into the picture. Yes, they are > one consumer of metadata. They aren't being brought in as sample *consumers*; they are being suggested

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Osvaldo Santana
Hi Guido, On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I've created a wiki page with some ideas for Python 3000 things we > could do at the Google sprint (starting Monday). See: > > http://wiki.python.org/moin/GoogleSprintPy3k I'm interested in contribute with the task "Rewrite imp

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Guido van Rossum
Excellent! I'm adding Brett to the CC's. Can you update the wiki page adding your name to that task? Are you coming to the sprint in person or are you just going to be sprinting at your own place? --Guido On 8/20/06, Osvaldo Santana <[EMAIL PROTECTED]> wrote: > Hi Guido, > > On 8/20/06, Guido van

Re: [Python-3000] Fwd: Conventions for annotation consumers

2006-08-20 Thread Paul Prescod
On 8/20/06, Jim Jewett <[EMAIL PROTECTED]> wrote: We're discussing the alternative of>>> def f(a:int, b):which is better for some things -- but much worse for others; if themetadata is any longer than int, it is almost certainly worse.  So (I believe) he is suggesting that we just reuse decorator s

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Osvaldo Santana
On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Excellent! I'm adding Brett to the CC's. Cool. Has Brett planned something to this rewrite? > Can you update the wiki page adding your name to that task? Done. > Are you coming to the sprint in person > or are you just going to be sprint

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Neal Norwitz
On 8/20/06, Osvaldo Santana <[EMAIL PROTECTED]> wrote: > On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Excellent! I'm adding Brett to the CC's. > > Cool. Has Brett planned something to this rewrite? I'm not sure exactly what you are asking. It's mostly planned to be a re-implementat

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Paul Moore
On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I've created a wiki page with some ideas for Python 3000 things we > could do at the Google sprint (starting Monday). See: > > http://wiki.python.org/moin/GoogleSprintPy3k I notice that one of the items on there is "Work on the new I/O li

Re: [Python-3000] Fwd: Conventions for annotation consumers

2006-08-20 Thread Ron Adam
Paul Prescod wrote: > I guess I still don't really understand what he's getting at or what the > value of @callmeta is in that example. It just seems like extra noise > with no value to me... > > Ron: what *precisely* does the @callmeta decorator do? If you can > express it in code, so much th

Re: [Python-3000] int-long unification

2006-08-20 Thread Marcin 'Qrczak' Kowalczyk
"Guido van Rossum" <[EMAIL PROTECTED]> writes: > The fatal error strikes me as unpleasant. Perhaps PyInt_Check[Exact] > should return false if the value won't fit in a C long? Maybe. > Or perhaps we could just return -sys.maxint-1? This would be a bad idea: some errors in use programs would yie

Re: [Python-3000] Ctypes as cross-interpreter C calling interface

2006-08-20 Thread Martin v. Löwis
Paul Prescod schrieb: > Thanks for everyone who contributed. It seems that the emerging > consensus (bar a security question from Guido) is that ctypes it the way > forward for calling C code in Python 3000. I don't think that can ever work (so I don't participate in that consensus). There are to

[Python-3000] Keyword Only Argument

2006-08-20 Thread Jiwon Seo
For the implementation of Implement PEP [PEP]3102 - Keyword Only Argument, it would be nice to have a (abstract) data structure representing the signature of a function. Currently, the code object only has # of arguments, # of default values, so if we want to allow something like, def foo(a,b=10,

Re: [Python-3000] signature annotation in the function signature or a separate line

2006-08-20 Thread Josiah Carlson
"Guido van Rossum" <[EMAIL PROTECTED]> wrote: > > given the precedent of type inferenced languages > > that use a separate line for optional type information > > Can you show us an example or two? C/C++ probably doesn't count, being that type information is required, but one can relocate type in

Re: [Python-3000] signature annotation in the function signature or a separate line

2006-08-20 Thread Sam Pointon
On 20/08/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/19/06, Samuele Pedroni <[EMAIL PROTECTED]> wrote: > > given the precedent of type inferenced languages > > that use a separate line for optional type information > > Can you show us an example or two? Haskell: map :: (a -> b) -> [a]

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Guido van Rossum
On 8/20/06, Paul Moore <[EMAIL PROTECTED]> wrote: > On 8/20/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > I've created a wiki page with some ideas for Python 3000 things we > > could do at the Google sprint (starting Monday). See: > > > > http://wiki.python.org/moin/GoogleSprintPy3k > > I n

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Talin
Guido van Rossum wrote: > On 8/20/06, Paul Moore <[EMAIL PROTECTED]> wrote: > Without endorsing every detail of his design, tomer filiba has written > several blog (?) entries about this, the latest being > http://sebulba.wikispaces.com/project+iostack+v2 . You can also look > at sandbox/sio/sio.p

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Guido van Rossum
On 8/20/06, Talin <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On 8/20/06, Paul Moore <[EMAIL PROTECTED]> wrote: > > > Without endorsing every detail of his design, tomer filiba has written > > several blog (?) entries about this, the latest being > > http://sebulba.wikispaces.com/proje

Re: [Python-3000] raise with traceback?

2006-08-20 Thread Greg Ewing
Terry Reedy wrote: > "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>I wonder if "raise ValueError" should still be allowed (as equivalent >>to "raise ValueError()") or that it should be disallowed. > > +1 for disallow. Seems like that would break a lot of c

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Talin
Guido van Rossum wrote: > On 8/20/06, Talin <[EMAIL PROTECTED]> wrote: >> Guido van Rossum wrote: >> > On 8/20/06, Paul Moore <[EMAIL PROTECTED]> wrote: >> >> > Without endorsing every detail of his design, tomer filiba has written >> > several blog (?) entries about this, the latest being >> > htt

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Alexander Belopolsky
Guido van Rossum python.org> writes: [snip] >>> Without endorsing every detail of his design, tomer filiba has written >>> several blog (?) entries about this, the latest being >>> http://sebulba.wikispaces.com/project+iostack+v2 . You can also look >>> at sandbox/sio/sio.py in svn. [snip] > > T

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Martin v. Löwis
Alexander Belopolsky schrieb: > For Py3k, I would like to suggest a buffer protocol modelled > after iovec structure that is used by the readv system call. > On many systems readv is more efficient than repeated calls > to read and I think Py3k will benefit from a direct access to > that feature.

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Guido van Rossum
On 8/20/06, Talin <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On 8/20/06, Talin <[EMAIL PROTECTED]> wrote: > >> Guido van Rossum wrote: > >> > On 8/20/06, Paul Moore <[EMAIL PROTECTED]> wrote: > >> > >> > Without endorsing every detail of his design, tomer filiba has written > >> > sev

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Alexander Belopolsky
On Aug 21, 2006, at 12:01 AM, Martin v. Löwis wrote: > Alexander Belopolsky schrieb: >> For Py3k, I would like to suggest a buffer protocol modelled >> after iovec structure that is used by the readv system call. >> On many systems readv is more efficient than repeated calls >> to read and I thin

Re: [Python-3000] Google Sprint Ideas

2006-08-20 Thread Talin
Guido van Rossum wrote: > On 8/20/06, Talin <[EMAIL PROTECTED]> wrote: >> Guido van Rossum wrote: > How sure are you of all that? I always thought that these have about > the same age, and that the main distinction is byte vs. char > orientation. Also, the InputStreamReader class clearly sits on to