Skip to content

Commit bfd3fcb

Browse files
committed
Add explanation for camelCase
1 parent 1eac2c5 commit bfd3fcb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@ with make_server("", 8000, app) as httpd:
125125
Due to limitations in the dependency [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern), it may not support all features specified in [the standard](https://urlpattern.spec.whatwg.org/).
126126

127127
Check `pytest.skip` in [`tests/test_lib.py`](https://github.com/urlpattern/python-urlpattern/blob/main/tests/test_lib.py).
128+
129+
## Why camelCase?
130+
131+
In this library, some names such as `baseURL` and `hasRegExpGroups` do not use snake_case.
132+
133+
Like [xml.dom](https://docs.python.org/3/library/xml.dom.html), Python wrappers around web standards typically preserve the original camelCase rather than converting names to snake_case. This library follows that convention as well.

0 commit comments

Comments
 (0)