listutils.py
Various list utilities.
- lists
- list
- utilities
- listutil
- listutils
- functions
- list-utilities
Various list utilities.
Just a simple regex function to convert a camel case string ("ClassName") to a lower case string with underscores ("class_name"). Came across a need for this when I was trying to add properties to a model at runtime using `object.__class__.__name__`. This is a modification of the function "get_verbose_name" found in django.db.models.options.
2 snippets posted so far.