parameters: (self, ext_name)
return_statement: return filename
docstring: r"""Convert the name of an extension (eg. "foo.bar") into the name
      of the file from which it will be loaded (eg. "foo/bar.so", or
      "foo\bar.pyd").
docstring_summary: r"""Convert the name of an extension (eg. "foo.bar") into the name
      of the file from which it will be loaded (eg. "foo/bar.so", or
      "foo\bar.pyd").
docstring_tokens: r Convert the name of an extension ( eg . foo . bar ) into the name of the file from which it will be loaded ( eg . foo / bar . so or foo \ bar . pyd ) .
function: def patched_get_ext_filename(self, ext_name):
      r"""Convert the name of an extension (eg. "foo.bar") into the name
      of the file from which it will be loaded (eg. "foo/bar.so", or
      "foo\bar.pyd").
      """
      filename = _old_get_ext_filename(self, ext_name)
      # Making sure this matches qmake's default extension .dylib, instead of .so
      if platform.system() == "Darwin" and '_dbpi' in ext_name:
          filename = filename.replace('.so', '.dylib')
      return filename
function_tokens: def patched_get_ext_filename ( self , ext_name ) : filename = _old_get_ext_filename ( self , ext_name ) # Making sure this matches qmake's default extension .dylib, instead of .so if platform . system ( ) == "Darwin" and '_dbpi' in ext_name : filename = filename . replace ( '.so' , '.dylib' ) return filename