Undocumented
Constant | O |
Undocumented |
Constant | P |
Undocumented |
Constant | UPPER_TABLE |
Undocumented |
Variable | all |
Undocumented |
Variable | AllOnes |
Undocumented |
Variable | allP |
Undocumented |
Variable | arity_lookup |
Undocumented |
Variable | bints |
Undocumented |
Variable | bintsO |
Undocumented |
Variable | chartoname |
Undocumented |
Variable | cmplx |
Undocumented |
Variable | cmplxO |
Undocumented |
Variable | cmplxP |
Undocumented |
Variable | cmplxvec |
Undocumented |
Variable | defdict |
Undocumented |
Variable | False_ |
Undocumented |
Variable | flts |
Undocumented |
Variable | fltsO |
Undocumented |
Variable | fltsP |
Undocumented |
Variable | inexact |
Undocumented |
Variable | inexactvec |
Undocumented |
Variable | int64 |
Undocumented |
Variable | intflt |
Undocumented |
Variable | intfltcmplx |
Undocumented |
Variable | ints |
Undocumented |
Variable | intsO |
Undocumented |
Variable | MinusInfinity |
Undocumented |
Variable | nobool_or_datetime |
Undocumented |
Variable | nobool_or_obj |
Undocumented |
Variable | nocmplx |
Undocumented |
Variable | nocmplxO |
Undocumented |
Variable | nocmplxP |
Undocumented |
Variable | nodatetime_or_obj |
Undocumented |
Variable | noint |
Undocumented |
Variable | nointP |
Undocumented |
Variable | None_ |
Undocumented |
Variable | noobj |
Undocumented |
Variable | notimes_or_obj |
Undocumented |
Variable | One |
Undocumented |
Variable | ReorderableNone |
Undocumented |
Variable | sints |
Undocumented |
Variable | timedeltaonly |
Undocumented |
Variable | times |
Undocumented |
Variable | True_ |
Undocumented |
Variable | uint64 |
Undocumented |
Variable | uints |
Undocumented |
Variable | Zero |
Undocumented |
Class | FullTypeDescr |
Undocumented |
Class | FuncNameSuffix |
Stores the suffix to append when generating functions names. |
Class | TypeDescription |
Type signature for a ufunc. |
Class | Ufunc |
Description of a ufunc. |
Function | build_func_data |
Undocumented |
Function | english_upper |
Apply English case rules to convert ASCII strings to all upper case. |
Function | indent |
Undocumented |
Function | make_arrays |
Undocumented |
Function | make_code |
Undocumented |
Function | make_ufuncs |
Undocumented |
Function | TD |
Undocumented |
Variable | _fdata_map |
Undocumented |
Undocumented
Value |
|
Apply English case rules to convert ASCII strings to all upper case.
This is an internal utility function to replace calls to str.upper() such that we can avoid changing behavior with changing locales. In particular, Turkish has distinct dotted and dotless variants of the Latin letter "I" in both lowercase and uppercase. Thus, "i".upper() != "I" in a "tr" locale.
s : str
uppered : str
>>> from numpy.lib.utils import english_upper >>> s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_' >>> english_upper(s) 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' >>> english_upper('') ''