Update PYTHON_API_CONVENTIONS.md

This commit is contained in:
Dor Shapira 2022-09-24 14:46:05 +03:00 committed by GitHub
parent f3197d434a
commit 602e243f71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ Here is a list with some code conventions used by raylib in python:
| Class members | lowerCase | `texture.width`, `color.r` |
| Functions | lowerCase & wordSeparationBy_ | `init_window()`, `update_camera_center()` |
| Functions params | lowerCase | `width`, `height` |
| Ternary Operator | result1 if (condition) else result2 | `print("yes" if (value == 0) else "no")` |
| Ternary Operator | result1 if condition else result2 | `print("yes" if value == 0 else "no")` |
[^1] like `macro definitions` of value in C
Some other conventions to follow: