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
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)
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
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
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
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
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
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
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
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
10 matches
Mail list logo