[issue3031] distutils package_dir/package_data failure
Tarek Ziadé ziade.ta...@gmail.com added the comment: works, and even tested in test_build_py.test_empty_package_dir -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3987] removed types from distutils.core [patch]
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r69356 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3987 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3386] [PATCH] distutils.sysconfig.get_python_lib prefix argument broken
Tarek Ziadé ziade.ta...@gmail.com added the comment: The patch looks fine to me. I'll send a mail to Andrew to ask him for a demonstration, and wait a week to commit it. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3986] removed string and type usage from distutils.cmd [patch]
Tarek Ziadé ziade.ta...@gmail.com added the comment: worked started in r3986 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5164] backport distutils 3.x changes into 2.7 when appliabl
New submission from Tarek Ziadé ziade.ta...@gmail.com: It's annoying to get conflicts on changes in distutils in the trunk, when forward-porting to 3.x, because other changes where made there and only there. Things like PEP8-ification and modern syntax changes needs to be backported to 2.7 when appliable to reduce the gap. -- assignee: tarek components: Distutils messages: 81253 nosy: tarek priority: high severity: normal status: open title: backport distutils 3.x changes into 2.7 when appliabl type: behavior versions: Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2445] Use The CygwinCCompiler Under Cygwin
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2279] distutils sdist add_defaults does not add data_files
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2624] swig support in distutils should use the build and temp dirs
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2624 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2943] Distutils should generate a better error message when the SDK is not installed
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek type: - behavior versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2945] bdist_rpm does not list dist files (should effect upload)
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2945 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3621] it would be nice if installers made by bdist_wininst stored an EstimatedSize property in the Windows registry
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3902] distutils does not correctly create packages for compiled extensions
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4032] distutils cannot recognize .dll.a as library on cygwin
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4359] at runtime, distutils uses buildtime files
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5134] Compiler warnings in sqlite module
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Technically, both changes (or neither of them) generate the same output binaries, so I Don't Care(tm). My approach for disabling the warnings in the code has (to me) two advantages: 1. You immediately see that warnings are disabled. I would otherwise never expect that to happen in any serious project, because warnings are valuable. 2. You only have to do it once for the single source file, not in every VC project file. Happy weekend! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5134 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5160] Intermittant segmentation fault with ctrl-c (threads and queues)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is stack trace. PyEval_EvalFrameEx(_frame * 0x00a62060, int 83) line 2841 + 6 bytes fast_function(_object * 0x, _object * * * 0x00fbfa98, int 1, int 1, int 9870576) line 3946 call_function(_object * * * 0x00fbfa98, int 0) line 3880 + 16 bytes PyEval_EvalFrameEx(_frame * 0x00a60ac0, int 131) line 2515 fast_function(_object * 0x, _object * * * 0x00fbfbe0, int 1, int 1, int 9870576) line 3946 call_function(_object * * * 0x00fbfbe0, int 0) line 3880 + 16 bytes PyEval_EvalFrameEx(_frame * 0x00a60918, int 131) line 2515 PyEval_EvalCodeEx(PyCodeObject * 0x00a142c8, _object * 0x00a60918, _object * 0x0001, _object * * 0x00a194ac, int 1, _object * * 0x, int 0, _object * * 0x, int 0, _object * 0x) line 3104 + 11 bytes function_call(_object * 0x00a35350, _object * 0x00a19498, _object * 0x) line 529 + 64 bytes PyObject_Call(_object * 0x00a35350, _object * 0x00a19498, _object * 0x) line 2506 + 15 bytes instancemethod_call(_object * 0x00a35350, _object * 0x00a19498, _object * 0x) line 2579 + 17 bytes PyObject_Call(_object * 0x009fdef8, _object * 0x008c1038, _object * 0x) line 2506 + 15 bytes PyEval_CallObjectWithKeywords(_object * 0x009fdef8, _object * 0x008c1038, _object * 0x) line 3729 t_bootstrap(void * 0x008c7608) line 426 + 26 bytes bootstrap(void * 0x00234d08) line 122 + 7 bytes _threadstartex(void * 0x009aeaf0) line 227 + 13 bytes KERNEL32! 77e5b3bc() // if (tstate-frame-f_exc_type != NULL) /* crash: tstate-frame is NULL */ reset_exc_info(tstate); else { assert(tstate-frame-f_exc_value == NULL); assert(tstate-frame-f_exc_traceback == NULL); } -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin
Antoine Calando acala...@free.fr added the comment: Hi Martin, Actually, I just investigated the problem in the libs and did not check the python exe source code. I guess you are right, this looks more like an issue from cygwin. I was a bit irritated by hours of debugging when entering the bug, and also tired of thinking it seems :) Regards, Antoine - Martin v. Löwis rep...@bugs.python.org a écrit : Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug in Python? It sounds like a bug in Cygwin to me? Python delegates to the C library as-is, with not attempt to second-guessing the C library. So if the C library says file exists, then this is also what Python must tell you. Closing as third-party bug. -- nosy: +loewis resolution: - invalid status: open - closed versions: +3rd party -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5157 ___ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5165] os.rename and other raise WindowsError
New submission from Kristján Valur Jónsson krist...@ccpgames.com: in lib/test/test_os.py, there is a test class, Win32ErrorTests, that tests that certain functions return a WindowsError on failure. And indeed they do that, but that is in contradiction with the documentation. From the 2.6 docs: Note All functions in this module raise OSError in the case of invalid or inaccessible file names and paths, or other arguments that have the correct type, but are not accepted by the operating system. -- components: Interpreter Core messages: 81256 nosy: krisvale severity: normal status: open title: os.rename and other raise WindowsError type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1835] Update version number in __init__.py
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-05 14:23, Thomas Heller wrote: Thomas Heller thel...@ctypes.org added the comment: The distutils version number is now updated automatically by the Python release process, so the comment in that file can be removed. How does this mechanism work? I'm wondering if I should use a similar mechanism for the ctypes version number... This is done by Barry's release.py script: http://svn.python.org/view/sandbox/trunk/release/release.py in bump(). ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5167] distutils/test_customize_compiler fails on windows
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: test_customize_compiler fails on windows with following error message. ERROR: test_customize_compiler (distutils.tests.test_sysconfig.SysconfigTestCase ) -- Traceback (most recent call last): File e:\python-dev\trunk\lib\distutils\tests\test_sysconfig.py, line 54, in test_customize_compiler sysconfig.customize_compiler(comp) File e:\python-dev\trunk\lib\distutils\sysconfig.py, line 181, in customize_ compiler cpp = cc + -E # not always TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' I hope attached patch will fix this. -- components: Distutils, Tests files: fix_distutils_test.patch keywords: patch messages: 81261 nosy: ocean-city, tarek severity: normal stage: patch review status: open title: distutils/test_customize_compiler fails on windows versions: Python 2.7 Added file: http://bugs.python.org/file12951/fix_distutils_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4804] Python on Windows disables all C runtime library assertions
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry, I don't have VS2005. By the way, _PyVerify_fd seems to be required to VC6 too. Because fdopen(fd = _NHANDLE_) crashes on debug build and fdopen(bad fd _NHANDLE_) won't set errno to EBADF. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5168] shutil.copystat does not copy the hidden flag on windows
New submission from Horváth István Róbert thr...@gmail.com: Hi! While copying hidden files on windows, the hidden flag is lost (surprisingly the read-only flag is copied). Is this a bug or a feature? The documentation only says that flags are also copied by shutil.copystat, but no details. See the attached file for an example. Cheers, Robert -- components: Windows files: copyHiddenFile.zip messages: 81263 nosy: throbi severity: normal status: open title: shutil.copystat does not copy the hidden flag on windows type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file12952/copyHiddenFile.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5165] os.rename and other raise WindowsError
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: WindowsError is a subclass of OSError, so it's not entirely contradictory, just a little misleading... :-) -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5165] os.rename and other raise WindowsError
Kristján Valur Jónsson krist...@ccpgames.com added the comment: ah, well, silly me. then I'll just close this as Invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2527] Pass a namespace to timeit
Georg Brandl ge...@python.org added the comment: I'm sorry, this should have been another issue. Reassigning to you. -- assignee: pitrou - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5066] IDLE documentation for Unix obsolete/incorrect
Georg Brandl ge...@python.org added the comment: I don't know any. But since rst is so lightweight, it is usually not too much of a pain to just copy the text from the browser and reintroduce formatting because you're likely to have to go over and edit the whole content anyway. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5158] Document distutils 'depends' option for extensions
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: georg.brandl - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
New submission from Chema Cortés dev.xt...@gmail.com: Sometimes, the default hash for user-defined object is not equal to the id of the object: In [1]: class A: ...: pass In [2]: a=A() In [3]: id(a),hash(a) Out[3]: (3082955212L, -1212012084) The test box has an AMD Sempron, a 64bit CPU archictecture emulating a 32bit one. This following relation can be deduced: hash(a)=id(a)-2**32 -- components: Interpreter Core messages: 81269 nosy: chemacortes, jcea severity: normal status: open title: Default hash not equal to id on AMD Sempron type: behavior versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Antoine Pitrou pit...@free.fr added the comment: I wouldn't qualify this as a bug. hash() doesn't need to be equal to the id() even in the default case. Actually, it may be better for hash() to be equal to id()/4 or id()/8, depending on the standard alignment of the memory allocator. -- nosy: +pitrou, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4804] Python on Windows disables all C runtime library assertions
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I see. I had thought your code was for VS2005 (VC8) I have changed the patch to work with VS2005 as well. I don't think we need to worry about VS2003 so much, as I don't think it is an officially supported compiler for the current python versions. Also, the problem with close() et al only started when we ported the code to Visual Studio 2005, and this is the version of VisualStudio that starts to make assertions about its file descriptors. Anyway, I upload an updated version of the patch, which copes with VS2005 as well as VS2008 Added file: http://bugs.python.org/file12953/__pioinfo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Eric, I noticed you said Fedora 6, so I checked which tcl/tk it includes and apparently it is 8.4.13, is that correct ? I tried using tcl/tk 8.4.13 and I managed to hang it too :) Try running test_tcl followed by test_ttk_guionly with regrtest. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML
New submission from Denis S. Otkidach denis.otkid...@gmail.com: ElementTree and minidom allow creation of not well-formed XML, that can't be parsed: from xml.etree import ElementTree element = ElementTree.Element('element') element.text = u'\0' xml = ElementTree.tostring(element, encoding='utf-8') ElementTree.fromstring(xml) [...] xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 9 from xml.dom import minidom doc = minidom.getDOMImplementation().createDocument(None, None, None) element = doc.createElement('element') element.appendChild(doc.createTextNode(u'\0')) DOM Text node doc.appendChild(element) DOM Element: element at 0xb7ca688c xml = doc.toxml(encoding='utf-8') minidom.parseString(xml) [...] xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, colum I believe they should raise some exception when there are characters not allowed in XML (http://www.w3.org/TR/REC-xml/#NT-Char) are used in attribute values, text nodes and CDATA sections. -- components: Library (Lib) messages: 81259 nosy: ods severity: normal status: open title: ElementTree and minidom don't prevent creation of not well-formed XML type: behavior versions: Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Eric Smith e...@trueblade.com added the comment: Yes, I have these installed: tcl-8.4.13-3.fc6 tcl-devel-8.4.13-3.fc6 tk-8.4.13-3.fc6 tk-devel-8.4.13-3.fc6 When I run ./python Lib/test/regrtest.py test_tcl test_ttk_guionly, it hangs. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5170] logging to file + encoding
New submission from shamilbi shami...@gmail.com: if i configure logging into a file with encoding = 'cp1251' and do logger.debug(u'...') then i get crash with UnicodeError i suggest reimplementing method FileHandler.emit(): ... if isinstance(msg, unicode): stream.write(f % msg)# it works! ... -- components: Library (Lib) messages: 81274 nosy: shamilbi severity: normal status: open title: logging to file + encoding type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4804] Python on Windows disables all C runtime library assertions
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I agree. Please focus on _MSC_VER = 1400. I'll post new issue about VC6 after this issue will be solved. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5170] logging to file + encoding
Changes by Benjamin Peterson benja...@python.org: -- assignee: - vsajip nosy: +vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: When I run ./python Lib/test/regrtest.py test_tcl test_ttk_guionly, it hangs. I have isolated it now: Traceback (most recent call last): File stdin, line 1, in module File /home/gpolo/python-dev/python-trunk/Lib/lib-tk/Tkinter.py, line 1649, in loadtk self.tk.loadtk() _tkinter.TclError: no display name and no $DISPLAY environment variable Tkinter.Tk() hang! Very nice, much more solvable now after getting to know the tcl/tk version. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Mark Dickinson dicki...@gmail.com added the comment: It looks like this is a platform with sizeof(long) == 4 and sizeof(void *) == 8. Is that right? As Antoine says, I can't see any problem here. Why do you think that hash(a) should be equal to id(a) in this case? Antoine, in what way would id()/4 be better than id()? -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4010] configure options don't trickle down to distutils
Changes by Akira Kitada akit...@gmail.com: Removed file: http://bugs.python.org/file12868/issue4010.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4010] configure options don't trickle down to distutils
Akira Kitada akit...@gmail.com added the comment: s/get_config_vars/get_config_var/ -- versions: +Python 3.1 Added file: http://bugs.python.org/file12954/issue4010.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4804] Python on Windows disables all C runtime library assertions
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I've taken the patch from Hirokazu and enhanced it: 1) it needed work to function with Visual Studio 2008 2) It now exposes a function so that _fileio.c can make use of it too. 3) Turned off the CRT manipulation in exceptions.c 4) Fixed minor problems, e.g. with dup2 5) Added comments A VS2008 compilation runs the testsuite just fine. Maybe Hirozaku can test this with his VS2005? Added file: http://bugs.python.org/file12950/__pioinfo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5167] distutils/test_customize_compiler fails on windows
Tarek Ziadé ziade.ta...@gmail.com added the comment: fixed in r69366 thanks for the patch -- assignee: - tarek status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: After I have isolated it now:, there should be this interactive session (but gmail ate it apparently): import os del os.environ['DISPLAY'] import Tkinter t = Tkinter.Tcl() t.loadtk() Traceback (most recent call last): File stdin, line 1, in module File /home/gpolo/python-dev/python-trunk/Lib/lib-tk/Tkinter.py, line 1649, in loadtk self.tk.loadtk() _tkinter.TclError: no display name and no $DISPLAY environment variable Tkinter.Tk() hang! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Ok, I've found the cause of the problem and the patch attached should solve it but shouldn't be applied! This was just a quick fix I did to confirm what I expected, I will add something more correct later. _tkinter is aware of this deadlock that we are getting (see Tkapp_TkInit), but it is not collaborating to solve it. The problem is avoided if we always use loadtk in Tkinter.py instead of using create to load tk. -- keywords: +patch Added file: http://bugs.python.org/file12955/dont_load_tk_in_tkintercreate.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5171] itertools.product docstring missing 'repeat' argument
New submission from Mark Dickinson dicki...@gmail.com: The docstring for itertools.product seems to be missing any mention of the repeat keyword argument, in both the trunk and py3k, and the maintenance branches. (The itertools.rst docs are fine, though.) -- assignee: rhettinger components: Library (Lib) messages: 81281 nosy: marketdickinson, rhettinger severity: normal status: open title: itertools.product docstring missing 'repeat' argument versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Antoine Pitrou pit...@free.fr added the comment: Because with hash() == id() == address of the PyObject, the hash is always a multiple of 4 or 8 (I think it's 8), so (hash() % dict_or_set_table_size) is non-uniformly distributed in most cases. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Mark Dickinson dicki...@gmail.com added the comment: Hah. Good point. I'd forgotten about the taking-the-low-order-bits thing. Should probably do some timings (and possibly also number-of- collisions measurements) to find out whether using id() 3 actually makes any significant difference (either way) for dicts of objects. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4704] Update pybench for python 3.0
Antoine Pitrou pit...@free.fr added the comment: Updated patch. Added file: http://bugs.python.org/file12956/pybench3.0-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5172] python-dev tracker summary emails contain incorrect median duration of open issues information
New submission from Jean-Paul Calderone exar...@divmod.com: The weekly tracker summary emails sent to python-dev contain incorrect information. The value for the median duration of open issues it reports has recently wrapped around to 0 and started growing from there. Looking at older reports, it's clear that there's a bug in the calculation of this value, since it jumps from a median of several years to a median of one day in the span of one week. -- messages: 81285 nosy: exarkun severity: normal status: open title: python-dev tracker summary emails contain incorrect median duration of open issues information type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4704] Update pybench for python 3.0
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-06 18:35, Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Perfect ! Thanks, Antoine. Please check it in. Well, except for this part that sneaked in: @@ -4,8 +4,6 @@ # -# Note: Please keep this module compatible to Python 1.5.2. -# # Tests may include features in later Python versions, but these # should then be embedded in try-except clauses in the configuration # module Setup.py. It's ok to bump this to Python 2.3, though :-) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5173] What's new claims StandardError was removed in 2.6
New submission from Matthew Woodcraft m...@pearson.co.uk: In the current What's New In Python 3.0 documentation, under Changes To Exceptions, it is claimed that the removal of StandardError is in 2.6 already. But according to the 2.6.1 documentation, StandardError is still there in its usual place. -- assignee: georg.brandl components: Documentation messages: 81288 nosy: georg.brandl, mjwpp severity: normal status: open title: What's new claims StandardError was removed in 2.6 versions: Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5173 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5173] What's new claims StandardError was removed in 2.6
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r69372. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5173 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Eric Smith e...@trueblade.com added the comment: The patch does solve the problem for me. It no longer hangs when running either: ./python Lib/test/regrtest.py test_tcl test_ttk_guionly or: ./python Lib/test/regrtest.py - ... test_traceback test_transformer test_ttk_guionly test_ttk_guionly skipped -- ttk not available: Calling Tk_Init again after a previous call failed might deadlock test_ttk_textonly test_tuple ... - Thanks for tracking this down. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1194378] sendmsg() and recvmsg() for C socket module
Changes by Forest Wilkinson for...@users.sourceforge.net: -- nosy: +forest ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1194378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5135] Expose simplegeneric function in functools module
Paul Moore p.f.mo...@gmail.com added the comment: Here's an updated patch. I've reverted to the name simplegeneric and documented the limitation around ABCs (I've tried to give an explanation why it's there, as well as a hint on now to work around the limitation - let me know if I'm overdoing it, or the text needs rewording). I've also fixed the wrapper to use update_wrapper to copy the attributes. That way, there's no duplication. Added file: http://bugs.python.org/file12957/generic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Mark Dickinson dicki...@gmail.com added the comment: Some preliminary timings indicate that it may well be worth replacing 'return (long)p' with 'return (long)p 3' in _Py_HashPointer (in Objects/object.c): I'm getting a 10% speedup in dict-building and dict-lookup for dicts of plain objects. I'll open a separate issue for this and post details of the timings. In the meantime, I think this issue can be closed as invalid: there's no reason that id(a) and hash(a) have to be equal. (chemacortes, if you disagree then please do comment; we'll still see the comments even though the issue is closed). -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Here is a better patch, for some definition of better. It syncs the failed attempt to load tk that may occur in _tkinter.Tkapp_TkInit, _tkinter.Tcl_AppInit and tkappinit.Tcl_AppInit. And that is done only for tk 8.4.14 now. Said that, I'm a bit worried about the (new macro) TK_VERSION_HEX in _tkinter and tkappinit, maybe it is time to add a _tkinter.h ? Added file: http://bugs.python.org/file12958/checking_for_failed_tk_load.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5139] Add combinatoric counting functions to the math module.
Terry J. Reedy tjre...@udel.edu added the comment: If you semi-optimize the implementation by pre-cancelling out the larger of the denominators, then these functions would be justified as more efficient than the naive use of the factorial function indicated by the formulas. Possible shorter names: ncombos nperms ncombos_with_reps I would prefer that these and other integer-only functions be in a separate imath module. I have the impression that this was not done with the first because we can't have a module with just one function, but these would make at least 4 or 5, which is enough for a module. -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Any chance you can look at the proposed patch, Martin ? I found out that it was you who reported this deadlock back then, so you might want to review the patch. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5172] python-dev tracker summary emails contain incorrect median duration of open issues information
Benjamin Peterson benja...@python.org added the comment: This should be reported to the meta-tracker: http://psf.upfronthosting.co.za/roundup/meta/ -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5170] logging to file + encoding
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The attached test script and output file appear to show logging working correctly. The script writes a log message including the Cyrillic text доброе утро (Good morning) to a CP1251-encoded file, test.log. Opening this file in a Unicode-aware editor (I used BabelPad, http://www.babelstone.co.uk/Software/BabelPad.html) appears to show the Cyrillic characters correctly: see the screenshot at http://img5.imageshack.us/img5/799/cp1251zw2.png Marking as pending. Can you give more specifics about your problem? -- resolution: - works for me status: open - pending Added file: http://bugs.python.org/file12959/encoding-test.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Eric Smith e...@trueblade.com added the comment: The second patch (checking_for_failed_tk_load.diff) also works for me. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Found a place still out of sync, it is fixed on this new patch. To reproduce the problem with the previous patch try this: import os del os.environ['DISPLAY'] import Tkinter Tkinter.Tk() Tkinter.Tcl().loadtk() # should hang now (with a proper tk version) Added file: http://bugs.python.org/file12960/checking_for_failed_tk_load-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2472] Fixed block ordering code in compiler.pyassem
Neil Schemenauer nas-pyt...@arctrix.com added the comment: Thanks Antoine. For some reason I don't think I ever got an email about this issue. I did some further cleanups and optimizations. Committed as SVN rev 69373. Lib/compiler is still in need of some fixing since it doesn't handle decorators and some other new language features. I'll try to keep at it. -- assignee: - nascheme resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5150] IDLE to support reindent.py
Terry J. Reedy tjre...@udel.edu added the comment: If the interactive interpreter did not require blank lines within blocks to have at least one 'trailing' space to avoid prematurely ending the block (as when copy from editor window and paste), IDLE could automatically rstrip lines. Given that that should not be done, a menu item would be nice. -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5150 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML
Changes by Georg Brandl ge...@python.org: -- assignee: - effbot nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5166 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4965] Can doc index of html version be separately scrollable?
Georg Brandl ge...@python.org added the comment: I've experimented with a style variant that keeps the sidebar fixed on the left side, however I did not manage to get it to show a separate scrollbar. Maybe I was just stupid though. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4965 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space
Terry J. Reedy tjre...@udel.edu added the comment: On IDLE 3.0, win xp, cntl-space brings up a selection box with known names to select. What was your actual input? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5156 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Eric Smith e...@trueblade.com added the comment: With the second patch installed, your code snippet does indeed hang for me. With the third patch installed, I get: [trunk]$ ./python Python 2.7a0 (trunk:69369M, Feb 6 2009, 14:59:32) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type help, copyright, credits or license for more information. import os del os.environ['DISPLAY'] import Tkinter Tkinter.Tk() Tkinter.Tk() Traceback (most recent call last): File stdin, line 1, in module File /root/python/trunk/Lib/lib-tk/Tkinter.py, line 1643, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable Tkinter.Tcl().loadtk() # should hang now (with a proper tk version) Traceback (most recent call last): File stdin, line 1, in module File /root/python/trunk/Lib/lib-tk/Tkinter.py, line 1649, in loadtk self.tk.loadtk() _tkinter.TclError: Calling Tk_Init again after a previous call failed might deadlock Which I assume is the expected behavior. Also with the third patch installed, the regrtest's all pass. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5161] wrong paths for ctypes cleanup
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Exactly but I don't open issue as I address it in issue5060 . -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4965] Can doc index of html version be separately scrollable?
Ezio Melotti ezio.melo...@gmail.com added the comment: Something like this maybe? div.sphinxsidebar { float: left; width: 230px; height: 100%; font-size: 90% /* add these: */ margin-top: 30px; height: 100%; overflow: auto; position: fixed; } ... div.related { background-color: #133f52; color: #fff; width: 100%; line-height: 30px; font-size: 90%; /* add this: */ position: fixed; } I tested it only with Firefox3 and the Webdeveloper plugin and it looks ok. position: fixed doesn't work on IE6 and there could be other problems, but it may be a good starting point. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4965 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5169] Default hash not equal to id on AMD Sempron
Jesús Cea Avión j...@jcea.es added the comment: The issue is trivially reproductible in any 32 bits platform, simply allocating objects until you go up the 2GB mark. Since __hash__() wants to take advantage of every bit in a 32 bit platform, and we don't have unsigned integers in python, I vote for invalid too. There is no promise of id(obj)==hash(obj): you can overload __hash__() anytime, and that is already done for strings, integers, tuples, etc. The speed advantage is interesting, though. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5122] test_tcl and test_ttk_guionly don't like each other
Guilherme Polo ggp...@gmail.com added the comment: Eric Smith added the comment: . . Which I assume is the expected behavior. Yes it is expected. Also with the third patch installed, the regrtest's all pass. Very nice. And Eric, thanks for the patience and for testing them all. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5174] xmlrpclib docs include incorrect file closing
New submission from Calvin Spealman ironfro...@users.sourceforge.net: The following example from the xmlrpclib docs has an obviously erronous call to close() after the actual return. (http://docs.python.org/library/xmlrpclib.html) def python_logo(): handle = open(python_logo.jpg) return xmlrpclib.Binary(handle.read()) handle.close() The patch included also makes the whitespace PEP-8 compliant. -- assignee: georg.brandl components: Documentation files: xmlrpc_doc.patch keywords: patch messages: 81309 nosy: georg.brandl, ironfroggy severity: normal status: open title: xmlrpclib docs include incorrect file closing versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12961/xmlrpc_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5174 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5174] xmlrpclib docs include incorrect file closing
Calvin Spealman ironfro...@users.sourceforge.net added the comment: The patch attached uses a with statement for proper file closing in the examples. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5174 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4704] Update pybench for python 3.0
Antoine Pitrou pit...@free.fr added the comment: It's ok to bump this to Python 2.3, though :-) The current version only works with 3.x, due to the use of the print function with the end keyword argument. Should it be fixed? Regards Antoine. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2472] Fixed block ordering code in compiler.pyassem
Antoine Pitrou pit...@free.fr added the comment: Thanks Antoine. For some reason I don't think I ever got an email about this issue. I did some further cleanups and optimizations. Committed as SVN rev 69373. Thanks! If I knew you hadn't received any notification I would have tried to ping you... I'm glad this is finally accepted :) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5139] Add combinatoric counting functions to the math module.
Ezio Melotti ezio.melo...@gmail.com added the comment: Ezio, itertools currently has combinations with and without *replacement*, not repetition. I think you're talking about something slightly different (repetitions in the *iterable*, rather than allowing repeated *drawings* of the same element). The two terms should be interchangeable (I just used repetitions because is the one I learnt at school). itertools already has 'permutations_with_replacement': it's called 'product'. combinations(it, r): select r elements from it, no replacement, no order permutations(it, r): select r elements, no replacement, order is relevant combinations_with_replacement(it, r): replacement, no order product(it, repeat=r): replacement, order Isn't this name (product) not coherent with the others? Also is not immediately clear to me what a function named 'product' is supposed to do (but probably it is too late to change it now). ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1731706] tkinter memory leak problem
Guilherme Polo ggp...@gmail.com added the comment: Committed now. trunk: r69376, r69377 release26-maint: r69378 py3k: r69380 release30-maint: r69381 (hand-merged, as you may notice I forgot to split the patch in two again in py3k) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5175] negative PyLong - C unsigned integral, TypeError or OverflowError?
New submission from Lisandro Dalcin dalc...@gmail.com: At Objects/longobject.c, in almost all cases OverflowError is raised when a unsigned integral is requested from a negative PyLong. However, this one breaks the rules: int _PyLong_AsByteArray(PyLongObject* v, unsigned char* bytes, size_t n, int little_endian, int is_signed) { ... if (!is_signed) { PyErr_SetString(PyExc_TypeError, can't convert negative long to unsigned); return -1; } ... } -- components: Interpreter Core messages: 81316 nosy: dalcinl severity: normal status: open title: negative PyLong - C unsigned integral, TypeError or OverflowError? type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5164] backport distutils 3.x changes into 2.7 when appliabl
Martin v. Löwis mar...@v.loewis.de added the comment: What specific changes do you have in mind? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5176] Special-case string formatting in BINARY_MODULO implementation
New submission from Collin Winter coll...@gmail.com: This patch speeds up the string formatting % operator by avoiding the unnecessary indirection in PyNumber_Remainder(). This particularly benefits templating systems that do a lot of string formatting via %. Performance tested with gcc 4.3.1 x86_64 on Linux 2.6.18: 2to3: Min: 22.443 - 22.306: 0.61% faster Avg: 22.465 - 22.324: 0.63% faster Django: Min: 0.598 - 0.591: 1.24% faster Avg: 0.601 - 0.595: 1.03% faster Spitfire [1]: Min: 0.752 - 0.717: 4.91% faster Avg: 0.754 - 0.719: 4.83% faster The Django test renders a 150x150 cell table 100 times. The Spitfire test renders a 1000x1000 cell table 100 times. The 2to3 test translates all of 2to3 with `-f all` five times. There is no significant impact on PyBench. Less important code like the pure-Python pickle implementation also shows an improvement: Pickling: Min: 6.680 - 6.535: 2.22% faster Avg: 6.740 - 6.576: 2.50% faster This is pickling a list of 4 dicts 100 times. This does not impact unpickling. About the patch: I tested various combinations of PyString_Check and PyString_CheckExact and what you see in the patch demonstrated the best performance across all benchmarks. I also tested changing the definition of PyString_Check to include a short-circuit on PyString_CheckExact, but that did not provide a consistent benefit. [1] - http://code.google.com/p/spitfire/ -- assignee: jyasskin components: Interpreter Core files: faster_modulo.patch keywords: needs review, patch, patch messages: 81319 nosy: collinwinter, jyasskin severity: normal status: open title: Special-case string formatting in BINARY_MODULO implementation type: performance versions: Python 2.7 Added file: http://bugs.python.org/file12962/faster_modulo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5134] Compiler warnings in sqlite module
Martin v. Löwis mar...@v.loewis.de added the comment: My approach for disabling the warnings in the code has (to me) two advantages: What specific file would you put these pragmas into? Are you perhaps proposing to change upstream code? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5134 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5164] backport distutils 3.x changes into 2.7 when appliabl
Tarek Ziadé ziade.ta...@gmail.com added the comment: PEP8 : - removing space between function names and () like: function () - function() - function(arg1, arg2, arg3) becomes function(arg1, arg2, arg3) - remove the usage of string.translate, type(foo) is StringType etc.. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4804] Python on Windows disables all C runtime library assertions
Martin v. Löwis mar...@v.loewis.de added the comment: I think the comment (an invalid fd would be a C program bug) misrepresents the facts. Please don't check it in as-is. An invalid file descriptor is *not* assertable. The authority on file descriptors, the POSIX standard, specifies for, say, write(2) [...] Otherwise, -1 shall be returned and errno set to indicate the error. [...] [EBADF] The fildes argument is not a valid file descriptor open for writing. This is consistent throughout the entire API: the behavior for invalid file descriptors is *not* undefined, and not even implementation-defined. If the CRT would conform to the relevant, long-existing specifications it tries to emulate, it would just set errno to EBADF, and be done. There should be a global declaration of _Py_verify_fd. I would also suggest that it becomes a constant macro unless _MSC_VER is defined. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5168] shutil.copystat does not copy the hidden flag on windows
Martin v. Löwis mar...@v.loewis.de added the comment: It's neither a bug nor a feature. It's simply not possible to copy the hidden flag (or system flag, for that matter), since there is no API for doing so. copystat only copies Unix attributes. If you were to copy the hidden flag, you would also have to copy the read-only flag, the access control list, and possible alternative file streams. You better use the CopyFile API function of Windows for that. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4471] IMAP4 missing support for starttls
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment: As the tests are new, I hope sending the real file is the right way to proceed. Added file: http://bugs.python.org/file12963/test_imapnet.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4471 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4470] smtplib SMTP_SSL not working.
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file12964/test_smtpnet.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file12965/test_popnet.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754094] Tighter co_stacksize computation in stackdepth_walk
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1754094 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5164] backport distutils 3.x changes into 2.7 when appliabl
Martin v. Löwis mar...@v.loewis.de added the comment: Hmm. Ok. I was hoping you could point to a revision number... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment: There is a problem I forgot to state with test_anonlogin: since I try and test both SSL and starttls, the DoS checker at cmu kicks in and refuse the login attempt in PopSSLTest. Since I'd rather avoid cheating, I'm leaning to try logging in as SomeUser, and expecting a failure in both cases. Comments? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue999042] Compiler module doesn't handle global statement correctly
Neil Schemenauer nas-pyt...@arctrix.com added the comment: Fixed in SVN rev 69394 (finally). This was done by having the symbol table differentiate between explicit and implicit globals. -- assignee: jhylton - nascheme nosy: +nascheme resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue999042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue999444] compiler module doesn't support unicode characters in laiter
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: jhylton - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue999444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5064] compiler.parse raises SyntaxErrors without line number information
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5064 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4792] PythonCmd in Modules/_tkinter.c should use the given interp parameter
Guilherme Polo ggp...@gmail.com added the comment: Another way to reproduce it (tested using debug build): Python 2.7a0 (trunk:69375:69376M, Feb 6 2009, 20:27:09) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. import Tkinter Tkinter.Tk() Tkinter.Tk instance at 0xb79c8edc Tkinter.Tk() Tkinter.Tk instance at 0xb79cb06c # close both windows now, get a segfault ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment: I'm enclosing the expected-failure version of test_popnet. It's much simpler to talk and comment about something you can see! Added file: http://bugs.python.org/file12966/test_popnet.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5176] Special-case string formatting in BINARY_MODULO implementation
Jeffrey Yasskin jyass...@gmail.com added the comment: I think this is only valid when PyString_CheckExact is true. A subclass could override __mod__, right? I'm somewhat interested to see how a primarily-numeric benchmark responds to this patch. I'd expect it to get very slightly slower for % operations. Probably, given that there's an indirect call in the way, the extra test would hide in the noise, but it's worth checking. What's a good numeric benchmark suite? `time ./python Lib/test/test_decimal.py`? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3652] Remove DeprecationWarning in _warnings about 'line'
Brett Cannon br...@python.org added the comment: Here is a patch to remove the DeprecationWarning. -- keywords: +patch Added file: http://bugs.python.org/file12967/issue3652.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com