Argument of the bool function

Grant Edwards invalid at invalid.invalid
Sat Apr 9 23:35:12 EDT 2011


On 2011年04月09日, Lie Ryan <lie.1296 at gmail.com> wrote:
> On 04/09/11 08:59, candide wrote:
>> Le 09/04/2011 00:03, Ethan Furman a ?crit :
>>>>> > bool([x])

>> dir([object])

>> Not very meaningful, isn't it ?
>> The error says it unambiguously, dir() does not take *keyword*
> arguments; instead dir() takes *positional* argument:
>> dir("Explicit is better than implicit")

I think the point is that both cases are documented exactly the same.
-- 
Grant


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /