Victor Stinner
Victor Stinner
I removed the " needs backport to 3.6" label, the 3.6 branch no longer accept bugfixes (only security fixes are accepted): https://devguide.python.org/#status-of-python-branches
I tested different configurations: Python build works as expected. ## main branch Vendored libmpdec: ``` $ make distclean $ ./configure CFLAGS="-O0" && make 2>&1|tee make.log $ grep -E '^(MODULE_PYEXPAT_DEPS|MODULE__DECIMAL_DEPS|MODULE__ELEMENTTREE_DEPS)' Makefile...
This change can be backported to Python 3.11. Python 3.10 doesn't seem to be affected: ``` $ git clean -fdx $ rm -rf Modules/_decimal/libmpdec/ Modules/expat/ $ ./configure CFLAGS="-O0" --with-system-libmpdec --with-system-expat...
@erlend-aasland: Do you want to review again the PR? I plan to merge it soon. I'm now waiting for last buildbot jobs. > Since there is no way of fixing...
Example: ``` ./configure --prefix ~/prefix make make install COMPILEALL_OPTS="--hardlink-dupes -j4" ``` Output: ``` (...) PYTHONPATH=/home/vstinner/prefix/lib/python3.12 \ ./python -E -Wi /home/vstinner/prefix/lib/python3.12/compileall.py \ -o 0 -o 1 -o 2 --hardlink-dupes -j4 -d...
I tested again to double check. Ah, in fact compileall is called two times: once for Lib/, once for site-packages: ``` (...) PYTHONPATH=/home/vstinner/prefix/lib/python3.12 \ ./python -E -Wi /home/vstinner/prefix/lib/python3.12/compileall.py \ -o...
cc @hroncok
Currently, "import datetime" starts by importing time, math, sys and operator modules, and then execute 2500 lines of Python code, define 7 classes, etc. For what? Just to remove all...
> What do decimals have to datetime? Oops. Sorry, I was confused between "datetime" and "decimal" when I created this issue. I fixed the issue title. My idea is to...
> I believe that there are other modules that have similar situations like heapq, but datetime is probably the worst offender. heapq seems to be a little bit different. \_heapq...