Skip to content

Commit 48fff06

Browse files
committed
Add note for how Python handles locale
1 parent 9d7d2c0 commit 48fff06

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
@@ -214,6 +214,12 @@ See [System Requirements for MATLAB Engine API for Python](https://www.mathworks
214214
Why does my script's performance vary between different operating systems and machines?
215215
See [Remarks](/spikesafe_python_lib_docs/Threading/wait/README.md#remarks) describing resolution of system timers between operating systems.
216216

217+
How does Python handle locale?
218+
The [locale](https://docs.python.org/3/library/locale.html#module-locale) module is implemented on top of the _locale module, which in turn uses an ANSI [C locale](https://docs.oracle.com/cd/E19253-01/817-2521/overview-1002/index.html) (also called the "POSIX locale") implementation if available. The C locale is often described as "culture-neutral" because it doesn't apply any regional or language-specific rules for formatting data. It is a basic, system-independent locale that follows standardized rules for formatting data such as numbers, dates, and currency. The C locale uses U.S.-style conventions by default, such as:
219+
- Period (.) as the decimal point for numbers
220+
- Simple ASCII character classification and sorting
221+
- English-style date and time formats
222+
217223
## Support/Feedback
218224

219225
If any further assistance is needed beyond the information provided within this repository, email [email protected].

0 commit comments

Comments
 (0)