Skip to content

Memory allocation error found in float and complex data. #7631

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
neerajpatel2505 opened this issue Apr 12, 2025 · 2 comments
Closed

Memory allocation error found in float and complex data. #7631

neerajpatel2505 opened this issue Apr 12, 2025 · 2 comments
Labels
bug status:Needs Triage Applied to issues that need triage

Comments

@neerajpatel2505
Copy link

### In jupyter notbook
1. For float data:

x = 1.5
y = 1.5
print(id(x),id(y))

2. For complex data:

x = 1+5j
y = 1+5j
print(id(x),id(y))

Hear, In both examples we found different memory address allocation from jupyter notebook but in other platform likes vs-code or other online compilers gives same memory address.

@neerajpatel2505 neerajpatel2505 added bug status:Needs Triage Applied to issues that need triage labels Apr 12, 2025
@danyeaw
Copy link

danyeaw commented Apr 15, 2025

Hi @neerajpatel2505, thanks for submitting this issue. Unfortunately, I don't think this is a Notebook issue. In the latest version of Python 3.13.3 (run from the terminal), I also see different memory address allocation. So I think you are comparing CPython functionality between different versions of Python.

@neerajpatel2505
Copy link
Author

Hi @danyeaw, thanks for your valuable response.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants