Lines Matching defs:str
36 -b : issue warnings about str(bytes_instance), str(bytearray_instance)\n\
37 and comparing bytes/bytearray with str. (-bb: issue errors)\n\
125 -X int_max_str_digits=number: limit the size of int<->str conversions.\n\
144 " to seed the hashes of str and bytes objects. It can also be set to an\n"
148 " when converting from a string and when converting an int back to a str.\n"
198 int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */
846 /* Copy str into *config_str (duplicate the string) */
848 PyConfig_SetString(PyConfig *config, wchar_t **config_str, const wchar_t *str)
856 if (str != NULL) {
857 str2 = _PyMem_RawWcsdup(str);
873 const char *str, const char *decode_err_msg)
881 if (str != NULL) {
883 str2 = Py_DecodeLocale(str, &len);
902 #define CONFIG_SET_BYTES_STR(config, config_str, str, NAME) \
903 config_set_bytes_string(config, config_str, str, "cannot decode " NAME)
906 /* Decode str using Py_DecodeLocale() and set the result into *config_str.
911 const char *str)
913 return CONFIG_SET_BYTES_STR(config, config_str, str, "string");
3036 init_dump_ascii_wstr(const wchar_t *str)
3038 if (str == NULL) {
3044 for (; *str != L'\0'; str++) {
3045 unsigned int ch = (unsigned int)*str;