[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

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

2009-02-06 Thread Chema Cortés
Chema Cortés dev.xt...@gmail.com added the comment: I also agree to close this bug as invalid. Indeed, there is not any reason to make equal id(a) and hash(a), but the description of hashable object from the documentation (but this is a different issue). 'hash' and 'id' returns the

<    1   2   3