[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: This is clearly an invalid issue for python, but I wanted to keep it open until I or someone else gets a chance to report it to numpy project. I was hoping to close this with a link to numpy tracker. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6251] c++ extension module implementation guide/example in extending/embedding documentation
Terry J. Reedy tjre...@udel.edu added the comment: I suggest you put your example on the Python wiki or even Python cookbook site. Or announce on Python list and you should get some feedback from C++ users. I am closing this until there is some. Writing it against 3.x capi would be more useful in the long run if not now. Most reviewers prefer plain text attachments they can open in the browser. -- nosy: +terry.reedy resolution: - later status: open - closed versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6251 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: - use test.script_helper.run_python rather than rolling your own run_command (or, at least, just make run_command a thin wrapper around run_python). I've been trying to trim down the number of different ways the test suite launches interpreter subprocesses for testing purposes, and script_helper also does a bit of extra cleanup to try to eliminate false alarms regarding reference leaks. After a quick grep, it seems script_helper is really in the minority (it's only used in three test files) while ad hoc calls to subprocess with sys.executable are all over the place. I'd rather open a separate feature request for that new script_helper function than convert all uses of subprocess in this issue. - update the description of gc.DEBUG_UNCOLLECTABLE in the docs to specifically mention that the complete list of uncollectable objects will also be printed at interpreter shutdown. Ah, indeed. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8938] Mac OS dialogs(Save As..., Load) translation
Terry J. Reedy tjre...@udel.edu added the comment: This should be closed unless there is a verified problem with 2.7 or 3.1. -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8938 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9517] Make test.script_helper more comprehensive, and use it in the test suite
New submission from Antoine Pitrou pit...@free.fr: test.script_helper has a couple of dedicated functions to launch a Python interpreter instance in a subprocess. Unfortunately, it is little used and most test modules use their own ad hoc calls to subprocess instead. Remedying the situation would require: - adding functions to script_helper (currently, the available functions merge stdout and stderr together, which is clearly undesireable) - perhaps improve the existing functions (kill_python() does a strange dance instead of calling communicate() on the subprocess.Popen object, is there a reason for that?) - convert most uses of subprocess.some_func([sys.executable, ...]) in the test suite to use script_helper instead This was suggested by Nick in issue477863. -- components: Tests messages: 112917 nosy: ezio.melotti, ncoghlan, pitrou priority: normal severity: normal status: open title: Make test.script_helper more comprehensive, and use it in the test suite type: feature request versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7077] SysLogHandler can't handle Unicode
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - commit review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6310] Windows App Paths key is not checked when installed for current user
Terry J. Reedy tjre...@udel.edu added the comment: Anatoly, please current installers that might be fixed. -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6310 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5319] I/O error during one-liner fails to return OS error status
Terry J. Reedy tjre...@udel.edu added the comment: Georg, are you saying that there is or is not a problem with 2.6 (which is beyond non-critical bug fixes) and/or 3.1? -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue477863] Print warning at shutdown if gc.garbage not empty
Antoine Pitrou pit...@free.fr added the comment: Here is a new patch with doc. -- Added file: http://bugs.python.org/file18394/gc_fini3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue477863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected
Terry J. Reedy tjre...@udel.edu added the comment: I presume your report is about the fact that the mode is 'a' even though you specified 'a+'. The answer is this block from RotatingFileHandler.__init__ (3.1.2, but presume same for 2.x): if maxBytes 0: mode = 'a' # doesn't make sense otherwise! I do not understand the comment, but there it is. So DOC PATCH In 15.6.12.5. RotatingFileHandler, replace If mode is not specified, 'a' is used. with If mode is not specified or if maxBytes 0, the mode is 'a'. -- assignee: - d...@python components: +Documentation -Library (Lib) keywords: +easy, patch nosy: +d...@python, terry.reedy versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4430] time.strptime does not allow same format directive twice
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2233] Makefile.pre.in contains extra slash before $(DESTDIR) which can cause Cygwin build to fail
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9319] segfault when searching modules with help()
Ron Adam ron_a...@users.sourceforge.net added the comment: I added you to this Victor because it looks like what your doing to rewrite the imports to work with Unicode (issue:9425) overlaps this. See the test in the patch. Your rewrite may fix this as the segfault has to do with getting the file encoding. My apologies if this isn't the case. Ron -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9319 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5319] I/O error during one-liner fails to return OS error status
Antoine Pitrou pit...@free.fr added the comment: Here is a possible patch for 3.x. It doesn't change the return status of the process, though. -- keywords: +patch nosy: +pitrou versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file18395/devfull.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3099] On windows, import nul always succeed
Terry J. Reedy tjre...@udel.edu added the comment: it is likely that the new import library will correct the problem. Did it? With standard 3.1.2, import nul ... ImportError: DLL load failed: The specified module could not be found. import con ... ImportError: No module named con So is there any problem with 2.7, or should we close this? -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517993] IDLE: config-main.def contains windows-specific settings
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1517993 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5765] stack overflow evaluating eval(() * 30000)
Terry J. Reedy tjre...@udel.edu added the comment: On 3.1.2, WinXP, I immediately get TypeError: 'tuple' object is not callable so this seems to have been fixed for 3.x. If released 2.7 is ok, we can close this. -- nosy: +terry.reedy versions: -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5765 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9518] PyModuleDef_HEAD_INIT does not explicitly initial all fields of m_base
New submission from Dave Malcolm dmalc...@redhat.com: Attempting to compile Python 3 extension modules on GCC with -Wmissing-field-initializers enabled leads to warnings from the PyModuleDef_HEAD_INIT macro Seen attempting to build SELinux python bindings against python 3.1 with -W -Werror, the -W implies -Wmissing-field-initializers: cc -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python3.1 -fPIC -DSHARED -c -o audit2why.lo audit2why.c cc1: warnings being treated as errors audit2why.c:439: error: missing initializer audit2why.c:439: error: (near initialization for ?moduledef.m_base.m_init¹) make: *** [audit2why.lo] Error 1 The PyModuleDef_HEAD_INIT is intended to initialize m_base within a PyModuleDef, but only explicitly initializes the PyObject_HEAD fields: #define PyModuleDef_HEAD_INIT {PyObject_HEAD_INIT(NULL)} typedef struct PyModuleDef_Base { PyObject_HEAD PyObject* (*m_init)(void); Py_ssize_t m_index; PyObject* m_copy; } PyModuleDef_Base; typedef struct PyModuleDef{ PyModuleDef_Base m_base; const char* m_name; const char* m_doc; Py_ssize_t m_size; PyMethodDef *m_methods; inquiry m_reload; traverseproc m_traverse; inquiry m_clear; freefunc m_free; } PyModuleDef; The attached patch extends it to also explicitly zero the other m_base fields. -- components: Extension Modules files: py3k-initialize-all-of-m_base.patch keywords: patch, patch messages: 112926 nosy: dmalcolm priority: normal severity: normal stage: patch review status: open title: PyModuleDef_HEAD_INIT does not explicitly initial all fields of m_base type: compile error versions: Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file18396/py3k-initialize-all-of-m_base.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3099] On windows, import nul always succeed
Éric Araujo mer...@netwok.org added the comment: 3.1 does not use importlib for imports. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base
Changes by Dave Malcolm dmalc...@redhat.com: -- title: PyModuleDef_HEAD_INIT does not explicitly initial all fields of m_base - PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8435] It is possible to observe a mutating frozenset
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9514 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5251 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1823 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4391] optparse: use proper gettext plurals forms
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: rejected - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1985 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7985] access to infinitely recursive list
Terry J. Reedy tjre...@udel.edu added the comment: This is a close duplicate of issue5765. Except that #5765 is apparently not a 3.x issue, while this example, WinXP, 3.1.2 crashes the command window in about 5 sec, while IDLE gets locked (^C does not break). -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7985 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2090] __import__ with fromlist=
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3467] sqlite3 path is hard coded in setup.py
Terry J. Reedy tjre...@udel.edu added the comment: If anyone reopens this, change the version to the then current trunk version if 3.2 is already out. -- resolution: - later status: open - closed type: compile error - feature request versions: +Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1474680] pickling files works with protocol=2.
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1474680 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1474680] pickling files works with protocol=2.
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1474680 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2658] decode_header() fails on multiline headers
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2658 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9519] IDLE cannot do example 4.1 in tutorial (if statements)
New submission from Robert Buckley drbuc...@comcast.net: In both Python 2.7 and 3.1 the IDLE is unable to handle example 4.1 in the tutorial (if statements). Works OK with the command line shell, but not the IDLE shell. -- messages: 112930 nosy: drbuckle priority: normal severity: normal status: open title: IDLE cannot do example 4.1 in tutorial (if statements) type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8757] Automatic set-to-frozenset conversions not thread-safe
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, the current docs adequately cover the existing situation: Note, the elem argument to the __contains__(), remove(), and discard() methods may be a set. To support searching for an equivalent frozenset, the elem set is temporarily mutated during the search and then restored. During the search, the elem set should not be read or mutated since it does not have a meaningful value. That being said, I'm going to get rid of set_swap_bodies technique. Instead, will use an atomic full-copy of the set into a separate frozenset. That will cure the most egregious problems at the expense of some speed and of creating a new frozenset object that will be visible to a user determined to see it. -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4434] Embedding into a shared library fails
John Levon movem...@users.sourceforge.net added the comment: Terry, what in the above discussion leads you to believe there is no bug? The original complaint Python cannot be embedded in shared library due to dependency problems with lib-dynload is still valid. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2401] Solaris: ctypes tests being skipped despite following #1516
Stefan Krah stefan-use...@bytereef.org added the comment: Well, with release-2.7 test_ctypes segfaults om OpenSolaris: make: *** [test] Segmentation Fault (core dumped) ./python -Wd -3 -E -tt ./Lib/test/regrtest.py -l == CPython 2.7.0+ (release27-maint:82854, Jul 13 2010, 19:49:12) [C] == Solaris-2.11-i86pc-i386-32bit-ELF little-endian == /export/home/stefan/svn/release27-maint/build/test_python_768 Perhaps this should be a new issue though. -- nosy: +skrah status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5723] Incomplete json tests
Changes by joshua williams jowil...@gmail.com: -- nosy: +jowillia ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754] WindowsError messages are not properly encoded
Terry J. Reedy tjre...@udel.edu added the comment: The message is definitely an str (unicode) string. WinXP,3.1.2, import os try: os.rmdir('nonexist') except Exception as e: print(repr(e.args[1]), '\n', repr(e.strerror), '\n', e.filename) os.rmdir('nonexist') # prints 'The system cannot find the file specified' 'The system cannot find the file specified' nonexist ... WindowsError: [Error 2] The system cannot find the file specified: 'nonexist' -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5289] ctypes.util.find_library does not work under Solaris
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2401] Solaris: ctypes tests being skipped despite following #1516
Terry J. Reedy tjre...@udel.edu added the comment: I doubt it matters much. ctypes and Solaris do not get along well together. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6792] Distutils-based installer does not detect 64bit versions of Python
Santoso Wijaya santa@me.com added the comment: Does anyone know of any workaround, for now? -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9520] Add Patricia Trie high performance container (python's defaultdict(int) is unusable on datasets with 10, 000, 000+ keys.)
New submission from Dmitry Chichkov dchich...@gmail.com: On large data sets (10-100 million keys) the default python dictionary implementation fails to meet memory and performance constraints. It also apparently fails to keep O(1) complexity (after just 1M keys). As such, there is a need for good, optimized, practical implementation of a high-performance container that can store such datasets. One of the alternatives is a regular Patricia Trie data structure. It can meet performance requirements on such datasets. Criteria: * strictly O(1); * works well on large datasets (~100M keys); memory efficient; * same or better performance as dict(); * supports regular dict | counter interface; * supports unicode keys; * supports any characters in the keys; * persistent (can be pickled); * in-memory library; There are a few existing implementations available: * BioPython trie - http://biopython.org/ * py-radix - http://www.mindrot.org/projects/py-radix/ * PyPi trie - http://pypi.python.org/pypi/trie A few other relevant alternatives/implementations: * NIST trie - http://www.itl.nist.gov/div897/sqg/dads/HTML/patriciatree.html * C++ Trie Library - http://wikipedia-clustering.speedblue.org/trie.php * PyAvl trie - http://pypi.python.org/pypi/pyavl/1.12_1 * PyJudy tree - http://www.dalkescientific.com/Python/PyJudy.html * Redis - http://code.google.com/p/redis/ * Memcached - http://memcached.org/ An alternative to a basic Patricia Trie could be some state-of-the-art approach from some modern research (i.e. http://www.aclweb.org/anthology/W/W09/W09-1505.pdf ), The best existing implementation I've been able to find so far is one in the BioPython. Compared to defaultdict(int) on the task of counting words. Dataset 123,981,712 words (6,504,484 unique), 1..21 characters long: * bio.tree - 459 Mb/0.13 Hours, good O(1) behavior * defaultdict(int) - 693 Mb/0.32 Hours, poor, almost O(N) behavior At 8,000, keys python defaultdict(int) starts showing almost O(N) behavior and gets unusable with 10,000,000+ unique keys. A few usage/installatio notes on BioPython trie: $ sudo apt-get install python-biopython from Bio import trie trieobj = trie.trie() trieobj[hello] = 5 trieobj[hello] += 1 print trieobj[hello] print trieobj.keys() More examples at: http://python-biopython.sourcearchive.com/documentation/1.54/test__triefind_8py-source.html -- components: Library (Lib) messages: 112937 nosy: dmtr priority: normal severity: normal status: open title: Add Patricia Trie high performance container (python's defaultdict(int) is unusable on datasets with 10,000,000+ keys.) type: performance versions: Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2401] Solaris: ctypes tests being skipped despite following #1516
Stefan Krah stefan-use...@bytereef.org added the comment: As I understand, this report was about test_ctypes being skipped. This is not the case anymore, so I agree that setting the issue to pending is fine. I can open another issue for the segfault. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4434] Embedding into a shared library fails
Terry J. Reedy tjre...@udel.edu added the comment: I carefully and specifically questioned the existence of current 'Python bug', which is what this tracker is for. For Linux, that would mean a bug in any of the source files in a current 2.7, 3.1.2, or 3.2.1a1 tarball release or the newer source repository versions thereof. But I do not see any claim that there is any problem with any of the files. There certainly is no bug report for any specific stdlib module, which is what is meant by the Library (Lib) component. This issue *is* about lib-dynload that I gather is supplied by Ubuntu. There may or may not be a bug in how Ubuntu packages, compiles, and loads Python 2.5.2. John, your msg76536, beginning If *Ubuntu*..., it [Ubuntu] also needs... suggests that. But unless you *know* that that results from a bug in the files downloaded by Ubuntu, you should take that up with them. So I will follow Ralf's suggestion and close this, and suggest in turn that this issue be taken to an Ubuntu support list where help is more likely. There might even be knowledgeable Ubuntu users on python-list, I don't know. Another possible suggestion to the OP is compile everything yourself with whatever compile flags you need to get all your stuff to work together. In particular, can you make your own lib-dynload that acts the way you want it to work? (But here is not the place to ask about how.) -- resolution: - invalid status: open - closed versions: +Python 2.5 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
Terry J. Reedy tjre...@udel.edu added the comment: A link can be added at any time. Closing does nothing except remove an issue from searches of open issues. Please close this or allow me to. There is a cost to keeping things like this open -- the puzzlement of anyone reading it and the time cost to triage maintainers like me ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6310] Windows App Paths key is not checked when installed for current user
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg112918 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6310 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6310] Windows App Paths key is not checked when installed for current user
Terry J. Reedy tjre...@udel.edu added the comment: Anatoly, can you check the behavior of the current 2.7+ installers? Those that might be changed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6310 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4434] Embedding into a shared library fails
rb rb-os...@justgohome.co.uk added the comment: Original reporter here. lib-dynload is part of Python's dynamic loading mechanism. Perhaps somewhere like Python/dynload_dl.c is the relevant code? Lib seemed like the right place to put the bug at the time, since it was the stdlib module files that were missing dependency declarations. Although perhaps Extension Modules would have been better? In any case, I've just tried to reproduce the bug with 2.7 (on Debian Squeeze pulling version 2.7-2 of python2.7 and python2.7-dev from experimental), and failed (both 32- and 64-bit). So it seems that this bug has been fixed at some point since 2.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4434] Embedding into a shared library fails
Terry J. Reedy tjre...@udel.edu added the comment: perhaps Extension Modules would have been better? For future reference (like if some 3.x is not ok), yes So it seems that this bug has been fixed at some point since 2.5. Great! -- resolution: invalid - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9520] Add Patricia Trie high performance container (python's defaultdict(int) is unusable on datasets with 10, 000, 000+ keys.)
Ezio Melotti ezio.melo...@gmail.com added the comment: I think it would be better to propose this on the python-ideas mailing list. -- nosy: +ezio.melotti, rhettinger type: performance - feature request versions: -Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7996] concurrency problem in regrtest -jX
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8041] No documentation for Py_TPFLAGS_HAVE_STACKLESS_EXTENSION or Py_TPFLAGS_HAVE_VERSION_TAG.
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8041 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8052] subprocess close_fds behavior should only close open fds
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - needs patch versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8003] Fragile and unexpected error-handling in asyncore
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - unit test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5879] multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8161] inconsistency behavior in ctypes.c_char_p dereferencing
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8170] Wrong Paths for distutils build --plat-name=win-amd64
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8184] multiprocessing.managers will not fail if listening ocket already in use
Mark Lawrence breamore...@yahoo.co.uk added the comment: Ran code snippet on Windows Vista with 3.1.2 and it ran fine. I'll close this unless anyone objects. -- nosy: +BreamoreBoy resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8184 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8285] IDLE not smart indenting correctly in nested statements
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +taleinat, terry.reedy stage: - needs patch versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com