Skip to content

Commit 4e3089d

Browse files
igorlukaninmarianore-muttdata
authored andcommitted
docs: Mention reserved keywords in naming
1 parent a45de00 commit 4e3089d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/pages/product/data-modeling/syntax.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ for dynamic data modeling.
7777
7878
Common rules apply to names of entities within the data model. All names must:
7979
80-
- start with a letter
81-
- consist of letters, numbers, and underscore (`_`) symbols only
80+
- Start with a letter.
81+
- Consist of letters, numbers, and underscore (`_`) symbols only.
82+
- Not be a [reserved keyword in Python][link-python-reserved-words], e.g., `from`, `return`, or `yield`.
8283

8384
It is also recommended that names use [snake case][wiki-snake-case].
8485

@@ -776,3 +777,4 @@ defining dynamic data models.
776777
[ref-polymorphism]: /product/data-modeling/concepts/polymorphic-cubes
777778
[ref-data-blending]: /product/data-modeling/concepts/data-blending
778779
[link-js-template-literals]: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/Strings#embedding_javascript
780+
[link-python-reserved-words]: https://docs.python.org/3/reference/lexical_analysis.html#keywords

0 commit comments

Comments
 (0)