Skip to content

Python2 deprecated native method import #924

@kitsek

Description

@kitsek

Environment

  • Pythonnet version: latest
  • Python version: 3.7.4
  • Operating System: MacOS 10.14.6

Details

  • Compiling under xcode for iOS, it throughs PyClass_New reference not found error.
    After diggin' around for a while, there is no PyClass_New definition in Python3 actually.
    Also there are other deprecated python3 APIs need to be nested in #if PYTHON2 condition.

    PyLong_GetMax(not exists)
    PyObject_GC_New(name error, should be _PyObject_GC_New)

[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
 internal static extern IntPtr PyClass_New(IntPtr bases, IntPtr dict, IntPtr name);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy