python-msilib 0.1.1__cp314-cp314t-win_amd64.whl → 0.3.0__cp314-cp314t-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of python-msilib might be problematic. Click here for more details.

@@ -1991,7 +1991,7 @@ static inline int Py_fclose(FILE *file)
1991
1991
  #endif
1992
1992
 
1993
1993
 
1994
- #if 0x03090000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1994
+ #if 0x03080000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1995
1995
  static inline PyObject*
1996
1996
  PyConfig_Get(const char *name)
1997
1997
  {
@@ -2032,7 +2032,9 @@ PyConfig_Get(const char *name)
2032
2032
  PYTHONCAPI_COMPAT_SPEC(module_search_paths, WSTR_LIST, "path"),
2033
2033
  PYTHONCAPI_COMPAT_SPEC(optimization_level, UINT, _Py_NULL),
2034
2034
  PYTHONCAPI_COMPAT_SPEC(parser_debug, BOOL, _Py_NULL),
2035
+ #if 0x03090000 <= PY_VERSION_HEX
2035
2036
  PYTHONCAPI_COMPAT_SPEC(platlibdir, WSTR, "platlibdir"),
2037
+ #endif
2036
2038
  PYTHONCAPI_COMPAT_SPEC(prefix, WSTR_OPT, "prefix"),
2037
2039
  PYTHONCAPI_COMPAT_SPEC(pycache_prefix, WSTR_OPT, "pycache_prefix"),
2038
2040
  PYTHONCAPI_COMPAT_SPEC(quiet, BOOL, _Py_NULL),
@@ -2529,6 +2531,10 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer,
2529
2531
  return 0;
2530
2532
  }
2531
2533
 
2534
+ static inline int
2535
+ PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2536
+ Py_GCC_ATTRIBUTE((format(printf, 2, 3)));
2537
+
2532
2538
  static inline int
2533
2539
  PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2534
2540
  {
@@ -2549,6 +2555,39 @@ PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2549
2555
  #endif // PY_VERSION_HEX < 0x030F00A1
2550
2556
 
2551
2557
 
2558
+ #if PY_VERSION_HEX < 0x030F00A1
2559
+ static inline PyObject*
2560
+ PyTuple_FromArray(PyObject *const *array, Py_ssize_t size)
2561
+ {
2562
+ PyObject *tuple = PyTuple_New(size);
2563
+ if (tuple == NULL) {
2564
+ return NULL;
2565
+ }
2566
+ for (Py_ssize_t i=0; i < size; i++) {
2567
+ PyObject *item = array[i];
2568
+ PyTuple_SET_ITEM(tuple, i, Py_NewRef(item));
2569
+ }
2570
+ return tuple;
2571
+ }
2572
+ #endif
2573
+
2574
+
2575
+ #if PY_VERSION_HEX < 0x030F00A1
2576
+ static inline Py_hash_t
2577
+ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
2578
+ {
2579
+ #ifdef PYPY_VERSION
2580
+ (void)op; // unused argument
2581
+ return -1;
2582
+ #elif PY_VERSION_HEX >= 0x03000000
2583
+ return ((PyASCIIObject*)op)->hash;
2584
+ #else
2585
+ return ((PyUnicodeObject*)op)->hash;
2586
+ #endif
2587
+ }
2588
+ #endif
2589
+
2590
+
2552
2591
  #ifdef __cplusplus
2553
2592
  }
2554
2593
  #endif