Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-97

Python wrapper for C library

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0a1
    • Generic
    • None

    Description

      Currently the module is implemented completely in C. This makes it hard for many developers to contribute new features; also, the API is currently somewhat inflexible (e.g. only lists are accepted as query parameters but not tuples, keyword parameters are also out etc.). It took me half an hour to implement Python new style of parameters ("{value}") as a Python wrapper, would take a lot more hours to code same feature in C. Wouldn't it be advantageous for future development to handle calls in Python first, and only pass control to the C library for low-level performance-critical operations? This kind of architecture is common among Python libraries and has its benefits.

      Attachments

        Activity

          People

            georg Georg Richter
            qm2k Marat Khalili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.