Not following. In Python, almost anything can be converted to a string. For
example,

str(complex(1,2))

yields

'(1+2j)'



On Tue, May 2, 2023 at 10:22 PM Karen K <[email protected]> wrote:

> I am not sure, so I don't want to edit the accumulators wiki page, but I
> want to ask.
>
> The wiki page says "
>
>    - firstlast. This accumulator accumulates only the first and last
>    entry it has seen, along with their times. It is useful for things like
>    strings, although there is no reason it can't be used for other things."
>
> But if I understand the code right there is a reason why this accumulator
> CANNOT be used for other things than strings. In line 399 of accum.py
> (version 4.10.2) the provided value is converted to a string. So nothing
> else than strings can be used with this accumulator.
>
> Should the wiki page be changed?
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/7d92870c-f3f6-4ca1-815c-aa729b48e8ddn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/7d92870c-f3f6-4ca1-815c-aa729b48e8ddn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAtOFL1koiHYgNRtYHYnkHQvfALu5cWxoV%2BqN841E5zwg%40mail.gmail.com.

Reply via email to