Re: [matplotlib-devel] [Fwd: [Matplotlib-users] Feature request: make labels accept non-string arguments]

2007-03-17 Thread Eric Firing
John Hunter wrote: > On 3/17/07, Eric Firing <[EMAIL PROTECTED]> wrote: >> In response to the feature request: >> >> Does anyone see any disadvantage to making Text.__init__ and >> Text.set_text() either try to call the __str__ method, or use the str() >> builtin, if passed an argument that is not

Re: [matplotlib-devel] [Fwd: [Matplotlib-users] Feature request: make labels accept non-string arguments]

2007-03-17 Thread John Hunter
On 3/17/07, Eric Firing <[EMAIL PROTECTED]> wrote: > In response to the feature request: > > Does anyone see any disadvantage to making Text.__init__ and > Text.set_text() either try to call the __str__ method, or use the str() > builtin, if passed an argument that is not a string? Maybe there is

[matplotlib-devel] [Fwd: [Matplotlib-users] Feature request: make labels accept non-string arguments]

2007-03-17 Thread Eric Firing
In response to the feature request: Does anyone see any disadvantage to making Text.__init__ and Text.set_text() either try to call the __str__ method, or use the str() builtin, if passed an argument that is not a string? Maybe there is no need to even check--just automatically use str(arg)?