Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support list / tuple of strings for format #16

Open
nhairs opened this issue Jun 4, 2024 · 0 comments
Open

Support list / tuple of strings for format #16

nhairs opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request open for discussion Community feedback is wanted

Comments

@nhairs
Copy link
Owner

nhairs commented Jun 4, 2024

Many other JSON formatting libraries allow or directly use a list of strings for the format. This suggests that it might be worth us adding in support for it.

Pros:

  • No parsing means no testing for a correct format - we can directly use the list.
  • Allows for clearer config when using dictConfig with the () user-defined object indicator, or instantiating within Python itself.

Cons:

  • Must always use the () custom class indicator when using dictConfig.
  • Not compatible with fileConfig.
  • Not compatible with other formatters
@nhairs nhairs added enhancement New feature or request open for discussion Community feedback is wanted labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for discussion Community feedback is wanted
Projects
None yet
Development

No branches or pull requests

1 participant