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

Python wrapper for C library

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: Generic
    • Labels:
      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

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

              Dates

              Created:
              Updated:

                Git Integration