Comments (6)
Issue has been resolved, __class__
cell var is set correctly in the function definition scope
from graalpython.
This fix is included in rc12
from graalpython.
Interesting, I'd never see that pattern. self.__class__()
works, obviously, but we don't set the __class__
cell correctly, it appears.
from graalpython.
self.__class__
is the actual class
__class__
is the class in which member the stuff is defined
class A:
def a(self):
print(__class__, self.__class__)
class B(A):
def b(self):
print(__class__, self.__class__) #B, B
self.a() # A, B
B().b()
from graalpython.
Yes, indeed :-)
As I said, the issue is that we don't set the __class__
cell in the class definition function scope
from graalpython.
Works. Thank you.
from graalpython.
Related Issues (20)
- uv support HOT 1
- Accessing Super Class Methods of a Java Class in Python HOT 2
- Embedding graalpy in Java: `getMetaParents` seems to not be implemented
- String representation of recursive arrays leads to `RecursionError`
- Using the maven plugin with the default VirtualFileSystem leads to pathlib.Path.exists not working
- import paramiko not working HOT 7
- pip install numpy (and others) does not work in arch linux HOT 8
- Bouncy Castle FIPS support HOT 5
- Exporting a method with a different name than its declaration HOT 2
- AttributeError: foreign object has no attribute 'valueOf' HOT 4
- [performance] GraalPython is slow when running Cython HOT 7
- datetime mismatch due to wrong timezone HOT 2
- No such file or directory HOT 4
- Add SSL socket method get_unverified_chain HOT 2
- Cannot create virtual environment by default on OSX amd64 HOT 2
- Unable to pip install scipy HOT 8
- unable to pip install jiter==0.5.0 HOT 5
- NumPy fails with baseline optimization AVX512F HOT 1
- Unable to install scipy==1.10.1 on 24.2.0-dev (20240827_2122) HOT 3
- ShouldNotReachHere reached in 24.2.0-dev-20240827_2122 HOT 2
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 graalpython.