raylib 5.0.0.5__cp313-cp313-manylinux2014_aarch64.whl → 5.5.0.3__cp313-cp313-manylinux2014_aarch64.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 raylib might be problematic. Click here for more details.

pyray/__init__.py CHANGED
@@ -29,9 +29,8 @@ current_module = __import__(__name__)
29
29
 
30
30
 
31
31
  def _underscore(word: str) -> str:
32
- """
33
- from inflection
34
- """
32
+ word = re.sub('2D$', '_2d', word)
33
+ word = re.sub('3D$', '_3d', word)
35
34
  word = re.sub(r"([A-Z]+)([A-Z][a-z])", r'\1_\2', word)
36
35
  word = re.sub(r"([a-z\d])([A-Z])", r'\1_\2', word)
37
36
  word = word.replace("-", "_")
@@ -127,7 +126,7 @@ def _make_struct_constructor_function(struct):
127
126
  or isinstance(arg, (array, bytes, bytearray, memoryview)))):
128
127
  arg = ffi.from_buffer(field[1].type, arg)
129
128
  modified_args.append(arg)
130
- s = ffi.new(f"struct {struct} *", modified_args)[0]
129
+ s = ffi.new(f"{struct} *", modified_args)[0]
131
130
  global_weakkeydict[s] = modified_args
132
131
  return s
133
132
 
@@ -136,7 +135,7 @@ def _make_struct_constructor_function(struct):
136
135
 
137
136
  for name, attr in getmembers(rl):
138
137
  # print(name, attr)
139
- uname = _underscore(name).replace('3_d', '_3d').replace('2_d', '_2d')
138
+ uname = _underscore(name)
140
139
  if isbuiltin(attr) or str(type(attr)) == "<class '_cffi_backend.__FFIFunctionWrapper'>" or str(
141
140
  type(attr)) == "<class '_cffi_backend._CDataBase'>":
142
141
  # print(attr.__call__)