804 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
130
views
PyPy3 on Windows 11 doesn't display non-ASCII characters correctly
PyPy3 doesn't display non-ASCII UNICODE characters correctly.
A simple example, the following:
b'\xce\x9e\xce\xad\xce\xbd\xce\xb7 \xce\x93\xce\xae\xce\xb9\xce\xbd\xce\xbf\xcf\x82'.decode('utf8')
...
1
vote
1
answer
211
views
Can't install numpy with PyPy 7.3.19
I'm trying to install numpy (2.2.3) with PyPy 7.3.19 (Python 3.11.11). I'm using PyPy in a .venv folder. While the venv is active, I've tried running these commands:
python -m pip install numpy
pip ...
3
votes
2
answers
160
views
How does PyPy implement integers?
CPython implements arbitrary-precision integers as PyLongObject, which extends PyObject. On 64-bit platforms they take at least 28 bytes, which is quite memory intensive. Also well-known is that it ...
1
vote
1
answer
247
views
Optimizing sieving code in the Self Initializing Quadratic Sieve for PyPy
I've coded up the Self Initializing Quadratic Sieve (SIQS) in Python, but it has been coded with respect to being as fast as possible in PyPy(not native Python).
Here is the complete code:
import ...
0
votes
1
answer
66
views
Python multiprocessing causes OSError: [Errno 24] Too many open files
Edit: I'm using pypy.
I'm trying to parallelize my python script by using a process Pool of 4 workers from the multiprocessing module. This error seems to suggest that too many pipes are opening, but ...
0
votes
1
answer
87
views
Optimization of a python code that involves reading from a huge file then splitting by a separator then encrypting with preserving format each string
I'm working on a project when I do format preserving encryption (that includes the three types alphabetic, alphanumeric and numeric ) well to achieve this I wrote several methods, then I wrote a ...
0
votes
1
answer
218
views
Scipy Fails to Install with PyPy, Linux
I'm trying to install scipy with pypy, version :
Python 3.8.13 (7.3.9+dfsg-1ubuntu0.1, Nov 15 2022, 06:22:50)
[PyPy 7.3.9 with GCC 11.3.0]
I've done a fresh install of pypy (sudo apt install pypy3) ...
0
votes
1
answer
72
views
Do PyPy int optimizations apply to classes subclassed from int?
From what I recall, PyPy has special optimizations on built-in types like ints and lists, which is great because they are very common, and it would be wasteful to treat an int like any other object.
...
4
votes
1
answer
306
views
Radix sort slower than expected compared to standard sort
I've implemented two versions of radix sort (the version that allows sorting integers whose values go up to n2 where n is the size of the list to sort) in Python for benchmarking against the standard ...
0
votes
1
answer
410
views
*SOLVED* Installing Pip for PyPy on Windows
Can someone help me out with this issue. I am trying to install Pip on Windows to use with PyPy, but I am somehow unable to do it.
Here is what I have tried so far:
C:\>pypy3 --version
Python 3.10....
0
votes
0
answers
247
views
using pip in a venv for running under PyPy?
This question is to disambiguate a similar yet slightly different one in the way that they fan-out to sub-questions, so I do expect some duplicate votes in the spirit of voting duplicate on anything ...
1
vote
2
answers
118
views
Speeding up unpacking of encrypted image file in python
I am currently unpacking an encrypted file from the software I use to get an image (2048x2048) from a file (along with other information). I'm currently able to do this but it takes about 1.7 seconds ...
2
votes
2
answers
2k
views
Difficulty installing packages with pip
I am facing errors when trying to install packages in the pypy environment. This is the error message when I try to install scipy, but I am unable to install any package:
C:\Users\anton\Desktop\pypy3....
-1
votes
1
answer
90
views
pypy3 performs better on W11
I have ryzen 9 7950x3d and two system in dual boot:
Ubuntu 22.04.3 LTS
Windows 11
I have a task in python that is CPU intesive (multi thread)
When I run it with pypy3 it takes approximately:
Ubuntu:...
1
vote
1
answer
286
views
Type annotations in pypy give an error but work in python3
Please compare the following two programs:
#!/usr/bin/env pypy
i: float = 5.0
and this:
#!/usr/bin/env python3
i: float = 5.0
The first one fails:
File "./pypy_test.py", line 3
i: ...