[issue3031] distutils package_dir/package_data failure

2009-02-06 Thread Tarek Ziadé
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

[issue3987] removed types from distutils.core [patch]

2009-02-06 Thread Tarek Ziadé
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 ___

[issue3386] [PATCH] distutils.sysconfig.get_python_lib prefix argument broken

2009-02-06 Thread Tarek Ziadé
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

[issue3986] removed string and type usage from distutils.cmd [patch]

2009-02-06 Thread Tarek Ziadé
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

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-06 Thread Tarek Ziadé
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

[issue2445] Use The CygwinCCompiler Under Cygwin

2009-02-06 Thread Tarek Ziadé
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

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-06 Thread Tarek Ziadé
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

[issue2624] swig support in distutils should use the build and temp dirs

2009-02-06 Thread Tarek Ziadé
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 ___

[issue2943] Distutils should generate a better error message when the SDK is not installed

2009-02-06 Thread Tarek Ziadé
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 ___

[issue2945] bdist_rpm does not list dist files (should effect upload)

2009-02-06 Thread Tarek Ziadé
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 ___

[issue3621] it would be nice if installers made by bdist_wininst stored an EstimatedSize property in the Windows registry

2009-02-06 Thread Tarek Ziadé
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 ___

[issue3902] distutils does not correctly create packages for compiled extensions

2009-02-06 Thread Tarek Ziadé
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

[issue4032] distutils cannot recognize .dll.a as library on cygwin

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4032 ___ ___

[issue4359] at runtime, distutils uses buildtime files

2009-02-06 Thread Tarek Ziadé
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

[issue5134] Compiler warnings in sqlite module

2009-02-06 Thread Ulrich Eckhardt
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

[issue5160] Intermittant segmentation fault with ctrl-c (threads and queues)

2009-02-06 Thread Hirokazu Yamamoto
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

[issue5157] os.stat('foo') succeds if 'foo.exe' exists on cygwin

2009-02-06 Thread Antoine Calando
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

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Kristján Valur Jónsson
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

[issue1835] Update version number in __init__.py

2009-02-06 Thread Marc-Andre Lemburg
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

[issue5167] distutils/test_customize_compiler fails on windows

2009-02-06 Thread Hirokazu Yamamoto
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 ) --

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-06 Thread Hirokazu Yamamoto
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.

[issue5168] shutil.copystat does not copy the hidden flag on windows

2009-02-06 Thread Horváth István Róbert
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.

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Matthew Barnett
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

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Kristján Valur Jónsson
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

[issue2527] Pass a namespace to timeit

2009-02-06 Thread Georg Brandl
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

[issue5066] IDLE documentation for Unix obsolete/incorrect

2009-02-06 Thread Georg Brandl
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.

[issue5158] Document distutils 'depends' option for extensions

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: georg.brandl - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5158 ___ ___

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Chema Cortés
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Antoine Pitrou
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. --

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-06 Thread Kristján Valur Jónsson
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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.

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-02-06 Thread Denis S. Otkidach
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,

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
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

[issue5170] logging to file + encoding

2009-02-06 Thread shamilbi
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

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-06 Thread Hirokazu Yamamoto
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

[issue5170] logging to file + encoding

2009-02-06 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - vsajip nosy: +vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5170 ___ ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Mark Dickinson
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

[issue4010] configure options don't trickle down to distutils

2009-02-06 Thread Akira Kitada
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 ___

[issue4010] configure options don't trickle down to distutils

2009-02-06 Thread Akira Kitada
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

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-06 Thread Kristján Valur Jónsson
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)

[issue5167] distutils/test_customize_compiler fails on windows

2009-02-06 Thread Tarek Ziadé
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 ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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,

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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

[issue5171] itertools.product docstring missing 'repeat' argument

2009-02-06 Thread Mark Dickinson
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Antoine Pitrou
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Mark Dickinson
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

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Antoine Pitrou
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 ___

[issue5172] python-dev tracker summary emails contain incorrect median duration of open issues information

2009-02-06 Thread Jean-Paul Calderone
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,

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Marc-Andre Lemburg
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

[issue5173] What's new claims StandardError was removed in 2.6

2009-02-06 Thread Matthew Woodcraft
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

[issue5173] What's new claims StandardError was removed in 2.6

2009-02-06 Thread Georg Brandl
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 ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
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

[issue1194378] sendmsg() and recvmsg() for C socket module

2009-02-06 Thread Forest Wilkinson
Changes by Forest Wilkinson for...@users.sourceforge.net: -- nosy: +forest ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1194378 ___ ___

[issue5135] Expose simplegeneric function in functools module

2009-02-06 Thread Paul Moore
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Mark Dickinson
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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

[issue5139] Add combinatoric counting functions to the math module.

2009-02-06 Thread Terry J. Reedy
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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

[issue5172] python-dev tracker summary emails contain incorrect median duration of open issues information

2009-02-06 Thread Benjamin Peterson
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

[issue5170] logging to file + encoding

2009-02-06 Thread Vinay Sajip
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
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 ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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

[issue2472] Fixed block ordering code in compiler.pyassem

2009-02-06 Thread Neil Schemenauer
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

[issue5150] IDLE to support reindent.py

2009-02-06 Thread Terry J. Reedy
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

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-02-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - effbot nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5166 ___ ___

[issue4965] Can doc index of html version be separately scrollable?

2009-02-06 Thread Georg Brandl
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

[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space

2009-02-06 Thread Terry J. Reedy
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Eric Smith
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,

[issue5161] wrong paths for ctypes cleanup

2009-02-06 Thread Roumen Petrov
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

[issue4965] Can doc index of html version be separately scrollable?

2009-02-06 Thread Ezio Melotti
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

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-06 Thread Jesús Cea Avión
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

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-06 Thread Guilherme Polo
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.

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
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)

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
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

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Antoine Pitrou
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

[issue2472] Fixed block ordering code in compiler.pyassem

2009-02-06 Thread Antoine Pitrou
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

[issue5139] Add combinatoric counting functions to the math module.

2009-02-06 Thread Ezio Melotti
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

[issue1731706] tkinter memory leak problem

2009-02-06 Thread Guilherme Polo
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

[issue5175] negative PyLong - C unsigned integral, TypeError or OverflowError?

2009-02-06 Thread Lisandro Dalcin
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*

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-06 Thread Martin v. Löwis
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 ___

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-06 Thread Collin Winter
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

[issue5134] Compiler warnings in sqlite module

2009-02-06 Thread Martin v. Löwis
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

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-06 Thread Tarek Ziadé
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,

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-06 Thread Martin v. Löwis
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,

[issue5168] shutil.copystat does not copy the hidden flag on windows

2009-02-06 Thread Martin v. Löwis
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

[issue4471] IMAP4 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
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

[issue4470] smtplib SMTP_SSL not working.

2009-02-06 Thread Lorenzo M. Catucci
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 ___

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
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 ___

[issue1754094] Tighter co_stacksize computation in stackdepth_walk

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1754094 ___

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-06 Thread Martin v. Löwis
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 ___

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
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

[issue999042] Compiler module doesn't handle global statement correctly

2009-02-06 Thread Neil Schemenauer
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

[issue999444] compiler module doesn't support unicode characters in laiter

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: jhylton - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue999444 ___

[issue5064] compiler.parse raises SyntaxErrors without line number information

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5064 ___

[issue4792] PythonCmd in Modules/_tkinter.c should use the given interp parameter

2009-02-06 Thread Guilherme Polo
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

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
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 ___

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-06 Thread Jeffrey Yasskin
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 %

[issue3652] Remove DeprecationWarning in _warnings about 'line'

2009-02-06 Thread Brett Cannon
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

  1   2   >