Code Monkey home page Code Monkey logo

Comments (4)

jjtolton avatar jjtolton commented on July 19, 2024

@cnuernber one option -- not a holistic fix, but a fix that would handle most use cases:

I can retool the functions/methods populated by require-python to use (py/call-kw ...). This would still lead to some inconsistencies if users access the lower level raw Python function, but I think it would handle the majority of use cases that users see. The drawback would be a slight hit to performance (an additional nested function call) and the function employed would no longer be a true Python function but a Python function wrapped with a clojure function that calls py/call-kw.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

I would like to take a careful look at this. Everything filters through py/call-kw eventually. The questions I have right now are twofold:

  1. Is this because of the marshalling layer on top of functions that attempts to ensure we don't deep-copy objects but we do shallow copy simple objects?
  2. Is this because the system to detect kwargs via detecting keywords in the arguments?

Basically, I want to know the exact mechanism of failure which could probably be found by printing out the arguments to PyObject_Call xxx.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

Closing this, it works with the referenced changelist.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

Screencast: https://drive.google.com/file/d/1PTXzWqNaRAiIDDZWqkeffIK2KESRWSRh/view?usp=sharing

from libpython-clj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.