Comments (4)
We could either change the semantic to only support Python-style dict lookup via subscripts (proxy["abc"]
, but not proxy.abc
), or explicitly ban the use of dict methods on a JSObjectProxy (telling Python libraries JSObjectProxy overrides the keys
method for a dict)
from pythonmonkey.
Also JSObjectProxy is missing the iterator
from pythonmonkey.
In an ideal world, proxy["abc"] and proxy.abc would both work. Is that possible?
In the pragmatic world, JSObjectProxy needs to work as a dict so that we can interoperate with python libs that use them.
from pythonmonkey.
We could make Python methods have priority for dot syntax, JS properties have priority for subscript syntax.
See #76 (comment)
from pythonmonkey.
Related Issues (20)
- Unstable xhr test HOT 1
- PyTypeFactory return type leak
- DCP-client: Exception in callback JSFunctionProxy.timerJobWrapper and Spidermonkey uncaught exception: out of memory HOT 3
- Warning: keepalive failed for compute groups service Error: Assertion failure HOT 2
- job-launch.py hangs at times after uploading step HOT 1
- DCPError: cannot send message on closed connection
- Additional requests are made after computation is finished in job-launch.py HOT 1
- implement toString on javascript functions HOT 9
- DCPError: no transports defined HOT 3
- CI: MAC OS 11 runners failing in test_event_loop HOT 2
- Clean up open PRs HOT 5
- XHR: aiohttp calls must support HTTP Keep-Alive HOT 2
- URL string corruption from JS to Python in XHR
- AddressSanitizer: heap-use-after-free in timerJobWrapper HOT 1
- Add timeout debug verbose like those in dcp-timer.js which we are replacing, like we do in xhr HOT 1
- Unexpected error in multithreading HOT 2
- `python3-distutils` is not a thing on Ubuntu 24.04 LTS HOT 3
- Future exception was never retrieved HOT 1
- JS Assert - How to See in Python HOT 4
- Local test failure: xhr-http-keep-alive.bash HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pythonmonkey.