[issue43145] Leak of locks from multiprocessing.Process
Boris Staletic added the comment: The `multiprocessing.Process`, on Linux, ends up doing something like this: pid = os.fork() if pid == 0: os._exit() Translated to C: int main() { Py_Initialize(); PyOS_BeforeFork(); pid_t pid = fork(); if (pid == 0) { PyOS_AfterFork_Child(); // Reinitializes stuff. _exit(0); // Child process exits without cleanup. } PyOS_AfterFork_Parent(); Py_Finalize(); } The call to `_exit()` happens in Lib/multiprocessing/popen_fork.py#L73 My attempts at cleaning this up resulted in even more problems. -- ___ Python tracker <https://bugs.python.org/issue43145> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43145] Leak of locks in a subprocess
Boris Staletic added the comment: Slightly simpler C example: #include int main() { Py_Initialize(); PyObject* multiprocessing = PyImport_ImportModule("multiprocessing"); PyObject* Process = PyObject_GetAttrString(multiprocessing, "Process"); PyObject* p = PyObject_CallNoArgs(Process); PyObject* start = PyObject_GetAttrString(p, "start"); PyObject* join = PyObject_GetAttrString(p, "join"); Py_DECREF(PyObject_CallNoArgs(start)); Py_DECREF(PyObject_CallNoArgs(join)); Py_DECREF(join); Py_DECREF(start); Py_DECREF(p); Py_DECREF(Process); Py_DECREF(multiprocessing); Py_Finalize(); } -- ___ Python tracker <https://bugs.python.org/issue43145> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43145] Leak of locks in a subprocess
New submission from Boris Staletic : The following C code leaks 7 locks allocated with PyThread_allocate_lock: #include int main() { Py_Initialize(); PyObject* multiprocessing = PyImport_ImportModule("multiprocessing"); PyObject* Process = PyObject_GetAttrString(multiprocessing, "Process"); PyObject* args = PyTuple_New(0); PyObject* kw = PyDict_New(); PyDict_SetItemString(kw, "target", Process); PyObject* p = PyObject_Call(Process, args, kw); PyObject* start = PyObject_GetAttrString(p, "start"); PyObject* join = PyObject_GetAttrString(p, "join"); PyObject_CallNoArgs(start); PyObject_CallNoArgs(join); Py_DECREF(join); Py_DECREF(start); Py_DECREF(p); Py_DECREF(kw); Py_DECREF(args); Py_DECREF(Process); Py_DECREF(multiprocessing); Py_Finalize(); } The following locks are leaked: 1. https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L78 2. https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L84 3. https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L90 4. https://github.com/python/cpython/blob/master/Python/ceval.c#L810 5. https://github.com/python/cpython/blob/master/Python/import.c#L126 6. and 7. https://github.com/python/cpython/blob/master/Modules/_threadmodule.c#L597 In the attachment is valgrind's output. -- components: C API files: log messages: 386558 nosy: bstaletic priority: normal severity: normal status: open title: Leak of locks in a subprocess type: resource usage versions: Python 3.10, Python 3.9 Added file: https://bugs.python.org/file49793/log ___ Python tracker <https://bugs.python.org/issue43145> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42961] Use-after-free (of a heap type) during finalization
Boris Staletic added the comment: Oops... I uploaded (and pasted) the wrong file. The /correct/ example can be found here: https://github.com/pybind/pybind11/pull/2797/#pullrequestreview-570541151 However, I have just realized that the example doesn't really need the embedded module. The following also shows the use-after-free: #include static void pybind11_object_dealloc(PyObject *self) { auto type = Py_TYPE(self); type->tp_free(self); Py_DECREF(type); } static PyType_Slot base_slots[] = {{Py_tp_dealloc, (void*)pybind11_object_dealloc}, {0, nullptr}}; static PyType_Spec base_spec{"B", sizeof(PyObject), 0, Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE, base_slots}; int main() { Py_InitializeEx(1); auto base_type = PyType_FromSpec(&base_spec); auto globals = PyDict_New(); PyDict_SetItemString(globals, "B", base_type); auto derived_t = PyRun_String("def f():\n" " class C:\n" "class D(B):pass\n" "b=D()\n" "f()", Py_file_input, globals, nullptr); Py_DECREF(globals); Py_DECREF(derived_t); Py_Finalize(); } -- ___ Python tracker <https://bugs.python.org/issue42961> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42961] Use-after-free (of a heap type) during finalization
[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`
Boris Staletic added the comment: Thanks for looking into this. > Looks like a bug in valgrind. That actually explains why I wasn't able to reproduce this problem on my local machine. Ubuntu 20.04 comes with valgrind 3.15.0, while my local machine has 3.16.1. Upgrading valgrind on Ubuntu 20.04 does fix the issue. This is good enough for me and I guess this can be closed as "not a bug". -- ___ Python tracker <https://bugs.python.org/issue42176> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35286] wrong result for difflib.SequenceMatcher
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`
Boris Staletic added the comment: I can also reproduce the same problem with the ubuntu packaged python3, which is 3.8.5 on Ubuntu 20.04. The only problem is that, with a stripped library, you don't get line numbers in valgrind's output. Steps to repro: 1. apt install valgrind gcc python3-config 2. Save the same attached file from the first comment as test.c. 3. gcc $(python3-config --includes) $(python3-config --ldflags) -lpython3.8 -o python-error 4. PYTHONMALLOC=malloc valgrind ./python-error Valgrind output: ==1200== Conditional jump or move depends on uninitialised value(s) ==1200==at 0x4A7B37B: PyUnicode_Decode (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0) ==1200==by 0x109264: main (in /python-error) ==1200== ==1200== Conditional jump or move depends on uninitialised value(s) ==1200==at 0x4A7AE57: PyUnicode_AsEncodedString (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0) ==1200==by 0x109280: main (in /python-error) I have not checked earlier versions of python. -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue42176> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`
New submission from Boris Staletic : When running valgrind on a C code that calls `PyUnicode_AsEncodedString` and `PyUnicode_Decode`, valgrind reports that there's a conditional jump based on uninitialized variable, if the encoding is "latin1". I am able to replicate the error 100% of the time, on Ubuntu 20.04, with python 3.9.0 installed with pyenv. I also have repro'd the error in my CI (link below). Steps to repro: 1. docker run -it ubuntu:20.04 /bin/bash 2. apt update 3. apt install valgrind gcc build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git 4. curl https://pyenv.run | bash 5. export PATH="/root/.pyenv/bin:$PATH" 6. eval "$(pyenv init -)" 7. PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.0 8. Take the attached C file. 9. gcc -ggdb3 -I/root/.pyenv/versions/3.9.0/include/python3.9 -L/root/.pyenv/versions/3.9.0/lib test2.c -lpython3.9 10. LD_LIBRARY_PATH=/root/.pyenv/versions/3.9.0/lib/ PYTHONMALLOC=malloc valgrind ./a.out Valgrind output: ==22783== Conditional jump or move depends on uninitialised value(s) ==22783==at 0x49ABE64: PyUnicode_Decode (unicodeobject.c:3443) ==22783==by 0x49ABE64: PyUnicode_Decode (unicodeobject.c:3398) ==22783==by 0x109251: main (test2.c:5) ==22783== ==22783== Conditional jump or move depends on uninitialised value(s) ==22783==at 0x499A294: PyUnicode_AsEncodedString (unicodeobject.c:3732) ==22783==by 0x499A294: PyUnicode_AsEncodedString (unicodeobject.c:3688) ==22783==by 0x10926D: main (test2.c:6) CI log: https://dev.azure.com/borisstaletic/3ce92110-caa5-4c49-b8c3-44a433da676b/_apis/build/builds/1338/logs/6 Repository for testing the bug: https://github.com/bstaletic/ycmd/tree/python-error -- components: Interpreter Core files: test.c messages: 379790 nosy: bstaletic priority: normal severity: normal status: open title: Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode` type: compile error versions: Python 3.9 Added file: https://bugs.python.org/file49542/test.c ___ Python tracker <https://bugs.python.org/issue42176> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35289] wrong result for difflib.SequenceMatcher
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35289> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35287] wrong result for difflib.SequenceMatcher
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35287> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35288] wrong result for difflib.SequenceMatcher
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35288> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35289] wrong result for difflib.SequenceMatcher
New submission from Boris Yang : How to repeat: # -*- coding: UTF-8 -*- from difflib import SequenceMatcher seqMatcher = SequenceMatcher(None, "德阳孩子", "孩子德阳") seqMatcher.get_matching_blocks() Expect Result: [Match(a=0, b=3, size=2), Match(a=2, b=0, size=2), Match(a=5, b=5, size=0)] Current Result: [Match(a=0, b=3, size=2), Match(a=5, b=5, size=0)] -- messages: 330175 nosy: Boris Yang priority: normal severity: normal status: open title: wrong result for difflib.SequenceMatcher type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue35289> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23794] http package should support HTTP/2
Changes by Boris Dušek : -- nosy: +dusek ___ Python tracker <http://bugs.python.org/issue23794> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3905] subprocess failing in GUI applications on Windows
Boris added the comment: Probably the same issue: everything works when called from command line, but when called via a desktop shortcut I get ... _winapi.DUPLICATE_SAME_ACCESS) OSError: [WinError 6] The handle is invalid Changing pythonw to python solved the problem. ...this could be expected behavior. If anyone is interested I can attach my test files. -- nosy: +borisompol versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue3905> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue672115] Assignment to __bases__ of direct object subclasses
Changes by Boris : -- nosy: +borisompol ___ Python tracker <http://bugs.python.org/issue672115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24196] Fail to create file if name starts with prn.
New submission from Boris: >>> f=open('prn.txt','w') Traceback (most recent call last): File "", line 1, in f=open('prn.txt','w') FileNotFoundError: [Errno 2] No such file or directory: 'prn.txt' Names that fail: prn. prn.txt prn.yourmmama.txt ... Names that do not fail: prn prn_.txt npr.txt ... Happens on Windows 7, Python3.3, both 32 bit and 64 bit This should be easy to replicate. -- components: IO messages: 243219 nosy: borisompol priority: normal severity: normal status: open title: Fail to create file if name starts with prn. type: behavior versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue24196> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23972] Asyncio reuseport
New submission from Boris FELD: I'm trying to create some UDP sockets for doing multicast communication. I have the working code in synchronous way and try to port it to asyncio. One last issue is blocking for me, I'm on Mac OS X and for multicast UDP to work, the SO_REUSEPORT must be set on socket before bind. The problem is that I don't have access on socket, it's created inside asyncio method _create_connection_transport. I've seen that SO_REUSEADDR is already set (https://github.com/gvanrossum/tulip-try3/blob/7b2d8abfce1d7ef18ef516f9b1b7032172630375/asyncio/base_events.py#L720), so maybe we could also set SO_REUSEPORT only on platforms where it's available. `if hasattr(socket, 'SO_REUSEPORT')` should works. Or we could add an optional arguments with could be used to set some socket options, it could be more flexible that set SO_REUSEPORT. I could provide a patch for the best solution selected. -- components: asyncio messages: 241213 nosy: Boris.FELD, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: Asyncio reuseport type: behavior versions: Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue23972> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22897] IDLE - MacOS: freeze on non-ASCII save with open debugger
New submission from Boris: When attempting to save a file containing an Å character with the debugger open, IDLE freezes with/or without partially opening the warning window. (Mac OS X 10.9.5, IDLE running python 2.7.5). Reproducible steps: - Create and save file with one line: 1+1 # A - Open IDLE - Open the debugger - Open the file - Delete the "A", type A - type s to save. This triggers the problem. Application hangs ("not responding") and needs to force quit. Sometimes the graphics memory of other applications gets corrupted. -- components: IDLE messages: 231338 nosy: steipe priority: normal severity: normal status: open title: IDLE - MacOS: freeze on non-ASCII save with open debugger type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue22897> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express
Changes by Boris Dayma : -- nosy: +Borisd13 ___ Python tracker <http://bugs.python.org/issue7511> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21436] Consider leaving importlib.abc.Loader.load_module()
Changes by Boris Dayma : -- nosy: +Borisd13 ___ Python tracker <http://bugs.python.org/issue21436> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13943] distutils’ build_py fails when package string is unicode
Boris FELD added the comment: An issue has been opened in pip repository: https://github.com/pypa/pip/issues/1441 -- ___ Python tracker <http://bugs.python.org/issue13943> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13943] distutils’ build_py fails when package string is unicode
Boris FELD added the comment: I've the same problem today with package https://pypi.python.org/pypi/httpretty/0.7.1 but only when I try to install one of my project which requires httpretty, if I try to install it directly it works like a charm. pip install httpretty -> works pip install mypkg -> doesn't works Looks like HTTPretty is using __file__ variable in setup.py (https://github.com/gabrielfalcao/HTTPretty/blob/master/setup.py#L35) and pip seems to pass the file as unicode: http://0bin.net/paste/dQfsSAmguWNYyY7w#0O/gcrWA44wKicfTdsGT4KqRYhbZLyhN9BUXNQD1XZA= At the last line: "__file__=u'/home/lothiraldan/.virtualenvs/test/build/httpretty/setup.py'" -- nosy: +Boris.FELD ___ Python tracker <http://bugs.python.org/issue13943> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8906] Document TestCase attributes in class docstring
Boris FELD added the comment: Add a patch for this issue, move attributes comments in TestCase docstring. I think it should be a good idea too to add their in unittest doc. -- keywords: +patch nosy: +Boris.FELD Added file: http://bugs.python.org/file24024/unittest_docstring.patch ___ Python tracker <http://bugs.python.org/issue8906> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10805] traceback.print_exception throws AttributeError when exception is None
Boris FELD added the comment: I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 and python3.3. I use 2.x behavior as reference. I don't know if we should add an assertion in traceback.print_exception or traceback._iter_chain, so I add the test for traceback.print_exception. -- keywords: +patch nosy: +Boris.FELD Added file: http://bugs.python.org/file24011/new_traceback_test_print_traceback.patch ___ Python tracker <http://bugs.python.org/issue10805> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5492] Error on leaving IDLE with quit() or exit() under Linux
Boris FELD added the comment: The problem still exists in trunk with 3.2 and 3.3. -- nosy: +Boris.FELD versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue5492> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file24002/stringbench_log_cpython3.3 ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Removed file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file24001/compare.py ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
New submission from Boris FELD : Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - (b"A"*1000).rfind(b"A") (*1000): -70.103093% - (b"A"*1000).find(b"B") (*1000): -48.372093% - (b"A"*1000).rindex(b"A") (*1000): -68.89% - s=b"ABC"*33; (s+b"E"+(b"D"+s)*500).rfind(s+b"E") (*100): -28.982301% - (b"C"+b"AB"*300).rfind(b"CA") (*1000): -29.565217% - (b"AB"*1000).index(b"AB") (*1000): -68.539326% - b"Andrew".endswith(b"w") (*1000): -21.212121% - (b"A"*1000).index(b"A") (*1000): -71.11% - (b"BC"+b"AB"*300).rfind(b"BC") (*1000): -42.788462% - b"Andrew".startswith(b"Andrew") (*1000): -20.588235% - (b"AB"*1000).find(b"AB") (*1000): -69.318182% - (b"AB"*1000).rfind(b"AB") (*1000): -69.791667% - (b"A"*1000).rfind(b"B") (*1000): -37.988827% - (b"AB"*300+"C").index(b"BC") (*1000): -28.75% - b"B" in b"A"*1000 (*1000): -24.479167% - (b"AB"*300+"CA").find(b"CA") (*1000): -33.673469% - (b"AB"*1000).rindex(b"AB") (*1000): -67.78% - (b"C"+"AB"*300).rindex(b"CA") (*1000): -29.017857% - (b"AB"*300+"C").find(b"BC") (*1000): -28.451883% - b"Andrew".startswith(b"A") (*1000): -21.212121% - b"Andrew".startswith(b"Anders") (*1000): -21.212121% - (b"A"*1000).partition(b"B") (*1000): -30.656934% - (b"AB"*1000).rfind(b"CA") (*1000): -20.603015% - (b"AB"*1000).rfind(b"BC") (*1000): -35.645472% - (b"A"*1000).find(b"A") (*1000): -70.454545% My environment is: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149689 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Bytes performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23999/stringbench_log_cpython3.2 ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Boris FELD added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Boris FELD added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- ___ Python tracker <http://bugs.python.org/issue13622> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file23997/compare.py ___ Python tracker <http://bugs.python.org/issue13622> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file23996/stringbench_log_cpython3.3 ___ Python tracker <http://bugs.python.org/issue13622> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
New submission from Boris FELD : Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - (b"A"*1000).find(b"B") (*1000): -30.379747% - b"Hello\t \t".rstrip() (*1000): -33.33% - b"this\nis\na\ntest\n".rsplit(b"\n") (*1000): -23.437500% - b"\nHello!\n".strip() (*1000): -33.33% - dna.split(b"ACTAT") (*10): -21.07% - b"Andrew".endswith(b"w") (*1000): -23.529412% - b"...text.with.2000.lines...replace(b"\n", b" ") (*10): -37.668161% - b"\t \tHello".rstrip() (*1000): -33.33% - (b"A"*1000).rpartition(b"A") (*1000): -21.212121% - (b"Here are some words. "*2).split() (*1000): -22.105263% - b"this\nis\na\ntest\n".split(b"\n") (*1000): -23.437500% - b"Hello!\n".rstrip() (*1000): -35.714286% - b"B" in b"A"*1000 (*1000): -32.089552% - b"Hello!\n".strip() (*1000): -35.714286% - b"\nHello!".strip() (*1000): -28.571429% - b"Andrew".startswith(b"A") (*1000): -20.588235% - b"\nHello!".rstrip() (*1000): -35.714286% - b"Andrew".endswith(b"Andrew") (*1000): -22.857143% - b"Andrew".endswith(b"Anders") (*1000): -23.529412% - b"Andrew".startswith(b"Anders") (*1000): -23.529412% - b"this--is--a--test--of--the--emergency--broadcast--system".split(b"--") (*1000): -22.429907% - b"Andrew"+b"Dalke" (*1000): -23.076923% Hope it help -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149683 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Bytes performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23995/stringbench_log_cpython3.2 ___ Python tracker <http://bugs.python.org/issue13622> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file23994/compare.py ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD : Removed file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD : Added file: http://bugs.python.org/file23992/stringbench_log_cpython3.3 ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
New submission from Boris FELD : Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some unicode tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - ("A"*1000).find("B") (*1000): -30.379747% - "Hello\t \t".rstrip() (*1000): -33.33% - "this\nis\na\ntest\n".rsplit("\n") (*1000): -23.437500% - "\nHello!\n".strip() (*1000): -33.33% - dna.split("ACTAT") (*10): -21.07% - "Andrew".endswith("w") (*1000): -23.529412% - "...text.with.2000.lines...replace("\n", " ") (*10): -37.668161% - "\t \tHello".rstrip() (*1000): -33.33% - ("A"*1000).rpartition("A") (*1000): -21.212121% - ("Here are some words. "*2).split() (*1000): -22.105263% - "Hello!\n".rstrip() (*1000): -35.714286% - "B" in "A"*1000 (*1000): -32.089552% - "Hello!\n".strip() (*1000): -35.714286% - "\nHello!".strip() (*1000): -28.571429% - "this\nis\na\ntest\n".split("\n") (*1000): -23.437500% - "Andrew".startswith("A") (*1000): -20.588235% - "\nHello!".rstrip() (*1000): -35.714286% - "Andrew".endswith("Andrew") (*1000): -22.857143% - "Andrew".endswith("Anders") (*1000): -23.529412% - "The %(k1)s is %(k2)s the %(k3)s."%{"k1":"x","k2":"y","k3":"z",} (*1000): -49.411765% - "Andrew".startswith("Anders") (*1000): -23.529412% - "this--is--a--test--of--the--emergency--broadcast--system".split("--") (*1000): -22.429907% - "Andrew"+"Dalke" (*1000): -23.076923% -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149681 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Unicode performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23991/stringbench_log_cpython3.2 ___ Python tracker <http://bugs.python.org/issue13621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1469629] __dict__ = self in subclass of dict causes a memory leak?
Changes by Boris FELD : -- nosy: +Boris.FELD ___ Python tracker <http://bugs.python.org/issue1469629> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10154] locale.normalize strips "-" from UTF-8, which fails on Mac
Boris FELD added the comment: Bug confirmed on python2.5+ and python3.2-. If it works with the dash, is agree with the Marc-Andre solution. -- nosy: +Boris.FELD versions: +Python 2.5, Python 2.6 ___ Python tracker <http://bugs.python.org/issue10154> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution
Boris FELD added the comment: It also fails with python 2.5 and python 2.7 with install_dist command. -- versions: +Python 2.5, Python 2.7 ___ Python tracker <http://bugs.python.org/issue11025> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
Boris FELD added the comment: The new command for installation is install_dist, sorry. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue11026> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
Changes by Boris FELD : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue11026> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
New submission from Boris FELD : Distutils2 install command fail with both python 2.5 and python 2.7 while it works with python 2.6. $ python -V python 2.5.4 $ python -m "distutils2.run" install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: run.py --help [cmd1 cmd2 ...] or: run.py --help-commands or: run.py cmd --help error: Invalid command install $ python -V Python 2.7.1 $ python -m "distutils2.run" install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: run.py --help [cmd1 cmd2 ...] or: run.py --help-commands or: run.py cmd --help error: Invalid command install It fail it a setup.cfg exists or not in the current directory. -- assignee: tarek components: Distutils2 messages: 127192 nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade priority: normal severity: normal status: open title: Distutils2 install command fail with python 2.5/2.7 versions: Python 2.5, Python 2.7 ___ Python tracker <http://bugs.python.org/issue11026> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution
New submission from Boris FELD : Distutils2 install command don't display error if you try to launch it in a directory without setup.py nor setup.cfg files. It install an UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data file set to UNKNOWN. -- assignee: tarek components: Distutils2 files: METADATA messages: 127190 nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade priority: normal severity: normal status: open title: Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution versions: Python 2.6 Added file: http://bugs.python.org/file20545/METADATA ___ Python tracker <http://bugs.python.org/issue11025> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com