[issue6065] bdist_msi.py failed assert when including extension modules

2009-05-20 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tarek components: +Distutils nosy: +tarek type: - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6065

[issue4174] Performance optimization for min() and max() over lists

2009-05-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I am with Raymond here: I don't think the performance improvement would be worth a significant complification of the code - unless the improvement is /very/ large. -- ___ Python tracker

[issue6067] make error

2009-05-20 Thread gast
New submission from gast gas...@inbox.ru: please help my! OS - AIX 5.3 64x i have need to install Python 2.6 ./configure --with-gcc configure: WARNING: wchar.h: present but cannot be compiled configure: WARNING: wchar.h: check for missing prerequisite headers? configure: WARNING: wchar.h:

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is there a difficulty I did not see? Here is a patch. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14021/staticmethod_func.patch ___ Python tracker

[issue6068] c_ulonglong structure members appear read-only

2009-05-20 Thread higstar
New submission from higstar adr...@higstar.com: When defining a structure with members of ctype type c_ulonglong, some members appear read only? I created this test.py and appended the results below: - import ctypes import time class all_ulong(ctypes.BigEndianStructure): _fields_=

[issue6069] casting error from ctypes array to structure

2009-05-20 Thread higstar
New submission from higstar adr...@higstar.com: Structure fails to correctly cast from a 2 byte bitfield. From my very limited investigation, is looks like when using a member type of less than the total size of the structure (or at least the size of any byte boundaries) the casting is not done

[issue6068] c_ulonglong structure members appear read-only

2009-05-20 Thread higstar
Changes by higstar adr...@higstar.com: -- type: compile error - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6068 ___ ___ Python-bugs-list

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-20 Thread Oleg Broytmann
New submission from Oleg Broytmann p...@phd.pp.ru: On compilation of .pyc/.pyo bytecode files on import Python 2.6 copies Unix file access attributes (-rwx-) from the imported file. I'd think it's ok except for executable (-x-) bit - bytecode files are not directly executable. That is, for a

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread James Broadhead
James Broadhead jamesbroadh...@gmail.com added the comment: Has there been any progress on this since January? It is causing/affecting: http://www.selenic.com/mercurial/bts/issue967 -- nosy: +jamesbroadhead ___ Python tracker

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Hans L
Hans L h...@velum.net added the comment: These patches (well, the 2.6 patch) works for me. If there's something I can do to help get this accepted/applied, I'd be happy to do it. Obviously, I had no part in these patches, but I can take a stab at updating documentation or something if that is

[issue941346] AIX shared library fix

2009-05-20 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de added the comment: Shouldn't line 170 be CCOPT=$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -Wl,-brtl -Wl,-bnortllib -lm -o $objfile instead of CCOPT=$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -brtl -bnortllib -lm -o $objfile Otherwise the -brtl and

[issue941346] AIX shared library fix

2009-05-20 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de added the comment: Addition to last message: More importantly, without -Wl, the flags are not passed to the linker and the tcl/tk libs will not be found. -- ___ Python tracker rep...@bugs.python.org

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Facundo Batista
Facundo Batista facu...@taniquetil.com.ar added the comment: Hans, please take a look to my comment 79573 in this same bug. If you could do that, it'd be amazing... Thank you! -- ___ Python tracker rep...@bugs.python.org

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Hans Lellelid
Hans Lellelid h...@velum.net added the comment: Sure -- I will tackle that this week; I hope I can come up with something satisfactory. As I have not provided doc patches before for Python I may need to spin up a bit on that (and of course on the exact meaning of the set_tunnel method in this

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Senthil
Senthil orsent...@gmail.com added the comment: Sorry for the delay. I know that patches work and I had tested them as well. I shall push those patches to trunk/p3k within this week. -- ___ Python tracker rep...@bugs.python.org

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Senthil
Senthil orsent...@gmail.com added the comment: Facundo Batista facu...@taniquetil.com.ar added the comment: Hans, please take a look to my comment 79573 in this same bug. If you could do that, it'd be amazing... Oops, had missed that one.. Shall update the patch, Facundo. --

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-20 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: reassigning to the volunteer to get this in :) -- assignee: facundobatista - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1424152

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - michael.foord nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6072 ___

[issue6071] no longer possible to hash arrays

2009-05-20 Thread ivank
Changes by ivank i...@ludios.org: -- nosy: +ivank ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6071 ___ ___ Python-bugs-list mailing list

[issue5767] xmlrpclib loads invalid documents

2009-05-20 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Here's a patch which removes sgmlop support from xmlrpclib. -- keywords: +patch Added file: http://bugs.python.org/file14023/xmlrpclib.patch ___ Python tracker rep...@bugs.python.org

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-20 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - amaury.forgeotdarc resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5982 ___

[issue6055] References to pysqlite in documentation of sqlite3 should be changed.

2009-05-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: pysqlite is an alias of sqlite3; it's developed outside of the core under that name. I agree that this can be confusing, and I've now removed almost all mentions (and qualified the remaining one) in r72801. I will not touch occurrences in source

[issue6057] sqlite3 error classes should be documented

2009-05-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - ghaering nosy: +ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6057 ___

[issue6051] smtplib docs should link to email module examples

2009-05-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added a note and a reference in r72802. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6051 ___

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread ivank
Changes by ivank i...@ludios.org: -- nosy: +ivank ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6072 ___ ___ Python-bugs-list mailing list

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: r72219 introduced an `_result´ attribute to `TestCase´. As `TestCase´ is designed specifically with the intent that applications should subclass it -- and frequently -- I would suggest that the attribute be given a name less likely to

[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-05-20 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Here's a new patch which adds SetParamEntityParsing to the pyexpat library docs and adds another test for external entity reference handling. This is probably all I'll do on this ticket. -- Added file:

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch is fine. I'll apply shortly. There was a specific use case for being able to call doCleanups directly which was why the results object needed to be stored. -- ___ Python tracker

[issue1711603] logging

2009-05-20 Thread David Andrzejewski
Changes by David Andrzejewski david.andrzejew...@gmail.com: -- title: syslog syscall support for SysLogLogger - logging versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1711603

[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-05-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Eric. Committed in r72803; backported to trunk in r72805. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5829

[issue1711603] syslog syscall support for SysLogLogger - logging

2009-05-20 Thread David Andrzejewski
Changes by David Andrzejewski david.andrzejew...@gmail.com: -- title: logging - syslog syscall support for SysLogLogger - logging versions: -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1711603

[issue1711603] syslog syscall support for SysLogLogger

2009-05-20 Thread David Andrzejewski
Changes by David Andrzejewski david.andrzejew...@gmail.com: -- title: syslog syscall support for SysLogLogger - logging - syslog syscall support for SysLogLogger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1711603

[issue6071] no longer possible to hash arrays

2009-05-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's probably because hashlib switched to using the new buffer API, and array.array() only supports the old one in 2.x. Perhaps hashlib should have some fallback code for such legacy types... -- nosy: +pitrou priority: - high stage:

[issue6071] no longer possible to hash arrays

2009-05-20 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: It used to be possible to use hashlib with arrays; it no longer seems possible. exar...@charm:~$ python -c ' import sys, hashlib, array print sys.version_info print hashlib.sha1(array.array(b, [1, 2, 3])).hexdigest() ' (2, 5, 2,

[issue1689458] pdb unable to jump to first statement

2009-05-20 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Fixed in r72796. Will forward-port to py3k shortly. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1689458

[issue6064] Add daemon argument to threading.Thread constructor

2009-05-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6064 ___ ___ Python-bugs-list

[issue6066] POP_MARK was not in pickle protocol 0

2009-05-20 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: Applied in r72792 (trunk), r72793 (py3k), r72808 (release26-maint). -- assignee: - collinwinter resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Here's a patch which renames `_result´ to `_resultForDoCleanups´. Another possibility would be for `doCleanups´ to take the result object as an argument. This would make it harder for applications to call directly, though (I've never

[issue1689458] pdb unable to jump to first statement

2009-05-20 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Merged to py3k in r72809. -- status: open - closed versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1689458 ___

[issue4547] Long jumps with frame_setlineno

2009-05-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think you can apply this. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4547 ___

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2009-05-20 Thread Clifford W Johnson
Clifford W Johnson cliff...@ieee.org added the comment: The following script (based on an extract of test_callbacks.py) demonstrates the problem. When run on a Sparc-based Solaris 10 platform, the output shows correct operation only when the c_longdouble arguments appear first in the function

[issue6073] threading.Timer and gtk.main are not compatible

2009-05-20 Thread Eric Atienza
New submission from Eric Atienza e...@ericaro.net: this simple code: import gtk from threading import Timer from time import sleep def p(): print p Timer(1, p).start() #gtk.main() sleep(10) print done does print p a second after it starts. when I remove the comment of the gtk.main()

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-20 Thread Peter Simanyi
New submission from Peter Simanyi psima...@namcobandaigames.com: Some source code control tools, like Perforce, by default sync files readonly, and it's useful to leave them readonly so that you can mark files changed by making them writeable even if they're not checked out (e.g. working

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
New submission from Kevin Walzer wordt...@users.sourceforge.net: In version 8.6 of Tk (now in beta stage), Tk on OS X will be built on top of the Cocoa API, replacing the deprecated Carbon API. Tk-Cocoa implements some UI behaviors (help menu, application menu) differently than Tk- Carbon. The

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
Changes by Kevin Walzer wordt...@users.sourceforge.net: Added file: http://bugs.python.org/file14027/Bindings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6075 ___

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
Changes by Kevin Walzer wordt...@users.sourceforge.net: Added file: http://bugs.python.org/file14028/macosxSupport.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6075 ___

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: These patches were tested on Python/IDLE 2.6.2 and Tk version 8.5.7. My build of Tk, which runs on top of Cocoa, is based on a fork of Tk hosted at http://github.com/das/tcltk/tree/de-carbon-8-5. Tk-Cocoa will become the main line

[issue6064] Add daemon argument to threading.Thread constructor

2009-05-20 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: Attaching a patch against trunk (at revision 72805). -- keywords: +patch Added file: http://bugs.python.org/file14029/threading.diff ___ Python tracker rep...@bugs.python.org

[issue6076] Missing title for configDialog.py

2009-05-20 Thread Kevin Walzer
New submission from Kevin Walzer wordt...@users.sourceforge.net: The configDialog for IDLE in version 2.6.2 is missing a title in the window: this patch adds a Preferences title to the window. -- components: IDLE files: configDialog.patch keywords: patch messages: 88143 nosy: wordtech

[issue6068] c_ulonglong structure members appear read-only

2009-05-20 Thread higstar
higstar adr...@higstar.com added the comment: Right...I've just found a caveat in section 16.15.1.12 of the html documentation which means this should be a feature request: Bit fields are only possible for integer fields -- type: - feature request

[issue6069] casting error from ctypes array to structure

2009-05-20 Thread higstar
higstar adr...@higstar.com added the comment: After reading the documentation for ctypes (specifically Bit fields are only possible for integer fields from section 16.15.1.12) I've updated the test. --- import ctypes import time class uint(ctypes.BigEndianStructure): _pack_ = 1#

[issue6068] support read/write c_ulonglong type bitfield structures

2009-05-20 Thread higstar
Changes by higstar adr...@higstar.com: -- title: c_ulonglong structure members appear read-only - support read/write c_ulonglong type bitfield structures ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6068

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: This updated patch of macosxSupport.py adds a fix that addresses the preferences dialog, see http://bugs.python.org/issue5232. -- Added file: http://bugs.python.org/file14031/macosxSupport.patch

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-05-20 Thread Kevin Walzer
Changes by Kevin Walzer wordt...@users.sourceforge.net: Removed file: http://bugs.python.org/file14028/macosxSupport.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6075 ___

[issue5232] Setting font from preference dialog in IDLE on OS X broken

2009-05-20 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: Added Brad's snippet to macosxSupport.py: see http://bugs.python.org/issue6075 -- nosy: +wordtech ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5232

[issue5232] Setting font from preference dialog in IDLE on OS X broken

2009-05-20 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: Superceeded by 6075. -- assignee: - kbk nosy: +kbk resolution: - later status: open - closed superseder: - Patch for IDLE/OS X to work with Tk-Cocoa ___ Python tracker rep...@bugs.python.org

[issue6068] support read/write c_ulonglong type bitfield structures

2009-05-20 Thread higstar
higstar adr...@higstar.com added the comment: I added the following to test_bitfields.py and got the results listed below: def test_ulonglong_crossing_32_boundary(self): class X(BigEndianStructure): _fields_ = [(a, c_ulonglong, 16), (b, c_ulonglong, 32),