jaraco/inflect

number_to_words: support for custom comma-separators is broken/incomplete

Offen

#176 geöffnet am 13.02.2023

 (4 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (125 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (1.082 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Discovered while refactoring the number_to_words method, as part of reducing complexity of the package in #174:

Using a custom comma argument to number_to_words appears to be supported based on the docstrings, and that would match the corresponding documentation for the EN::Inflect CPAN module that this library is based on.

However: in practice it seems that providing a comma argument (other than the default ,) does not work as expected.

Contributor Guide