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

2009-02-06 Thread Chema Cortés
Chema Cortés 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 same-wordsize integer (32bit):

[issue3652] Remove DeprecationWarning in _warnings about 'line'

2009-02-06 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch to remove the DeprecationWarning. -- keywords: +patch Added file: http://bugs.python.org/file12967/issue3652.diff ___ Python tracker _

[issue5176] Special-case string formatting in BINARY_MODULO implementation

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

[issue4473] POP3 missing support for starttls

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

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

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

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

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- assignee: -> nascheme nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- assignee: jhylton -> nascheme nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing li

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

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

[issue4473] POP3 missing support for starttls

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

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

2009-02-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: Hmm. Ok. I was hoping you could point to a revision number... ___ Python tracker ___ ___ Python-bugs-list ma

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1754094] Tighter co_stacksize computation in stackdepth_walk

2009-02-06 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- assignee: -> nascheme nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue4473] POP3 missing support for starttls

2009-02-06 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file12965/test_popnet.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4470] smtplib SMTP_SSL not working.

2009-02-06 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file12964/test_smtpnet.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4471] IMAP4 missing support for starttls

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

[issue1544277] python compiler support for with stmt

2009-02-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Looks like this has already been fixed in SVN rev 53575. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___

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

2009-02-06 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r69385 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

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

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

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

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

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

[issue5134] Compiler warnings in sqlite module

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

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-06 Thread Collin Winter
New submission from Collin Winter : 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

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

2009-02-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: What specific changes do you have in mind? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-

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

2009-02-06 Thread Lisandro Dalcin
New submission from Lisandro Dalcin : 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,

[issue1731706] tkinter memory leak problem

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

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-06 23:25, Antoine Pitrou wrote: > Antoine Pitrou 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. > Shoul

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

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

[issue2472] Fixed block ordering code in compiler.pyassem

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

[issue4704] Update pybench for python 3.0

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

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
Calvin Spealman added the comment: The patch attached uses a with statement for proper file closing in the examples. ___ Python tracker ___ __

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
New submission from Calvin Spealman : 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.re

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

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

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

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

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

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

[issue5161] wrong paths for ctypes cleanup

2009-02-06 Thread Roumen Petrov
Roumen Petrov added the comment: Exactly but I don't open issue as I address it in issue5060 . -- nosy: +rpetrov ___ Python tracker ___ __

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

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

[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space

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

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

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

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

2009-02-06 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> effbot nosy: +effbot ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5150] IDLE to support reindent.py

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

[issue2472] Fixed block ordering code in compiler.pyassem

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

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

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

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

2009-02-06 Thread Eric Smith
Eric Smith added the comment: The second patch (checking_for_failed_tk_load.diff) also works for me. ___ Python tracker ___ ___ Python-bugs-lis

[issue5170] logging to file + encoding

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

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

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

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

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

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

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

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

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

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

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

[issue5135] Expose simplegeneric function in functools module

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

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

2009-02-06 Thread Forest Wilkinson
Changes by Forest Wilkinson : -- nosy: +forest ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

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

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

2009-02-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69372. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

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

2009-02-06 Thread Matthew Woodcraft
New submission from Matthew Woodcraft : 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. ---

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-06 18:35, Marc-Andre Lemburg wrote: > Marc-Andre Lemburg 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

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Perfect ! Thanks, Antoine. Please check it in. On 2009-02-06 18:19, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > Updated patch. > > Added file: http://bugs.python.org/file12956/pybench3.0-3.patch > >

[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 : 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

[issue4704] Update pybench for python 3.0

2009-02-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch. Added file: http://bugs.python.org/file12956/pybench3.0-3.patch ___ Python tracker ___ ___ Py

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

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

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

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

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

2009-02-06 Thread Mark Dickinson
New submission from Mark Dickinson : 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 (L

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

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

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

2009-02-06 Thread Guilherme Polo
Guilherme Polo 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 "", line 1, in

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

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

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

2009-02-06 Thread Akira Kitada
Changes by Akira Kitada : Removed file: http://bugs.python.org/file12868/issue4010.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

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

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

2009-02-06 Thread Guilherme Polo
Guilherme Polo 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 "", line 1, in File "/home/gpolo/python-dev/python-trunk/Lib/lib-tk/Tkinter.py", line 1649, in loadtk s

[issue5170] logging to file + encoding

2009-02-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> vsajip nosy: +vsajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

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

[issue5170] logging to file + encoding

2009-02-06 Thread shamilbi
New submission from shamilbi : 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! ... --

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

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

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

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

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

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

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

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

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

2009-02-06 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2009-02-06 Thread Chema Cortés
New submission from Chema Cortés : 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 emulati

[issue5158] Document distutils 'depends' option for extensions

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: georg.brandl -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5066] IDLE documentation for Unix obsolete/incorrect

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

[issue2527] Pass a namespace to timeit

2009-02-06 Thread Georg Brandl
Georg Brandl added the comment: I'm sorry, this should have been another issue. Reassigning to you. -- assignee: pitrou -> rhettinger ___ Python tracker ___ _

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: ah, well, silly me. then I'll just close this as "Invalid". -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Matthew Barnett
Matthew Barnett added the comment: WindowsError is a subclass of OSError, so it's not entirely contradictory, just a little misleading... :-) -- nosy: +mrabarnett ___ Python tracker

[issue5167] distutils/test_customize_compiler fails on windows

2009-02-06 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed in r69366 thanks for the patch -- assignee: -> tarek status: open -> closed ___ Python tracker ___ _

[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 : 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 fi

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

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

[issue5167] distutils/test_customize_compiler fails on windows

2009-02-06 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : test_customize_compiler fails on windows with following error message. ERROR: test_customize_compiler (distutils.tests.test_sysconfig.SysconfigTestCase ) -- Traceback (most recent call las

[issue1835] Update version number in __init__.py

2009-02-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-05 14:23, Thomas Heller wrote: > Thomas Heller 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'

[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 : 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') >>> E

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

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

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

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

[issue5165] os.rename and other raise WindowsError

2009-02-06 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : 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 functio

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

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

[issue5134] Compiler warnings in sqlite module

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

[issue4359] at runtime, distutils uses buildtime files

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___ _

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

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___ _

[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é : -- assignee: -> tarek nosy: +tarek versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-l

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

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___ ___ P

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

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ __

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

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___ ___ P

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-06 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek versions: +Python 2.7, Python 3.1 -Python 2.4, Python 2.5 ___ Python tracker ___ _

  1   2   >