Re: [Python-3000] print() parameters in py3k

2006-11-23 Thread Guido van Rossum
Let me just say -1 on this idea so we can close the thread. None of that convinces me. I don't think that print(a, b) failing when b has a certain unexpected type can be considered consistent. The ElementBuilder example doesn't apply because it takes very limited argument types (string, dict, E; e

Re: [Python-3000] print() parameters in py3k

2006-11-23 Thread Fredrik Lundh
George Sakkis wrote: > a. Will print have to do an isinstance(args[0], format) to decide what > to do ? If so, don't the usual arguments for duck typing and against > type checking apply here ? isinstance (or an equivalent mechanism) would be more robust, in this specific case. > b. print(a,b,c)

Re: [Python-3000] print() parameters in py3k

2006-11-23 Thread Fredrik Lundh
Guido van Rossum wrote: > Hm. While not as obviously from a different universe as Barry's > proposal, this still pretty weird, probably at least from a different > planet (much farther than Iceland anyway :-) it's inspired by http://online.effbot.org/2006_11_01_archive.htm#et-builder which

Re: [Python-3000] print() parameters in py3k

2006-11-23 Thread Fredrik Lundh
Barry Warsaw wrote: >> 2) for convenience, extend print to treat a format object as a format >> specifier for the following arguments: >> >> print (x, y, z, fmt="My X: %s, Your Y: %s, His Z: %s") >> >> becomes >> >> print(format("My X: %s, Your Y: %s, His Z: %s"), x, y ,z) >> >> 3) get r

Re: [Python-3000] print() parameters in py3k

2006-11-19 Thread Brett Cannon
On 11/19/06, Georg Brandl <[EMAIL PROTECTED]> wrote: Guido van Rossum wrote: > PEPs aren't only for difficult discussions. :-) They are also there > for reference and to record agreement. Referring to an email isn't > really a very good answer when someone asks (as happened here) "what > is the

Re: [Python-3000] print() parameters in py3k

2006-11-19 Thread Georg Brandl
Guido van Rossum wrote: > PEPs aren't only for difficult discussions. :-) They are also there > for reference and to record agreement. Referring to an email isn't > really a very good answer when someone asks (as happened here) "what > is the spec"? A PEP may also discourage attempts to add more

Re: [Python-3000] print() parameters in py3k

2006-11-19 Thread Guido van Rossum
On 11/19/06, Georg Brandl <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On 11/19/06, James Thiele <[EMAIL PROTECTED]> wrote: > >> The BDFL has said that print will change from a statement to a function in > >> Python 3. > >> > >> I haven't found anything describing what parameters it wil

Re: [Python-3000] print() parameters in py3k

2006-11-19 Thread Georg Brandl
Guido van Rossum wrote: > On 11/19/06, James Thiele <[EMAIL PROTECTED]> wrote: >> The BDFL has said that print will change from a statement to a function in >> Python 3. >> >> I haven't found anything describing what parameters it will take and what it >> will return. Has this been decided? > > No

Re: [Python-3000] print() parameters in py3k

2006-11-19 Thread Guido van Rossum
On 11/19/06, James Thiele <[EMAIL PROTECTED]> wrote: > The BDFL has said that print will change from a statement to a function in > Python 3. > > I haven't found anything describing what parameters it will take and what it > will return. Has this been decided? Not really, I'm hoping someone would

[Python-3000] print() parameters in py3k

2006-11-19 Thread James Thiele
The BDFL has said that print will change from a statement to a function in Python 3. I haven't found anything describing what parameters it will take and what it will return. Has this been decided? ___ Python-3000 mailing list Python-3000@python.org htt