[issue4316] Improper use of [] in configure.in leads to useless regexp in configure

2008-11-16 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, applied in r67227. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4316

[issue1721812] A subclass of set doesn't always have __init__ called.

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Fixed in r67232. Don't think this should be backported to the 2.x series as it may break working code relying on the old behavior. -- resolution: - fixed status: open - closed versions: +Python 3.0 -Python 2.5

[issue1721812] A subclass of set doesn't always have __init__ called.

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Improved solution attached. Added file: http://bugs.python.org/file12019/set.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1721812 ___

[issue1694663] Overloading int.__pow__ does not work

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Georg, do you want to take a look at this patch. I've neglected it because I don't see why the argument signature matters (__neg__ and __pow__ take a different number of arguments than the other magic numeric methods that work just fine).

[issue2260] conditional jump to a POP_TOP optimization

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: This looks fine to me. Go ahead and uncomment the memcpy() line (I presume you commented it out in order to demonstrate the basic transformation without the dead code elimination). Be sure to add a testcase. Antoine, the issue with

[issue2260] conditional jump to a POP_TOP optimization

2008-11-16 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Antoine, the issue with JUMP_IF variants is that they interfere with other existing byte code optimizations, resulting in a net loss. Which other byte code optimizations does it interfere with? ___ Python

[issue2260] conditional jump to a POP_TOP optimization

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Am taking this one back. May have a simpler approach. -- assignee: - rhettinger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2260 ___

[issue2260] conditional jump to a POP_TOP optimization

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Adding a simpler approach. It's a bit limited because some common cases have the POP_TOP JUMP_FORWARD 1 pair split across two basic blocks. Those cases should not be optimized away on a first pass. Added file:

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-16 Thread Phillip J. Eby
Phillip J. Eby [EMAIL PROTECTED] added the comment: Then obviously it makes no sense to update wsgiref before the spec. ISTM the correct way to deal with this is update the cgi module to include a WSGI-compatible API. ___ Python tracker [EMAIL PROTECTED]

[issue3106] speedup some comparisons

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: You may get better timings if you more the types-are-equal test inside the types-i-know test. Instead of: + if (Py_TYPE(v) == Py_TYPE(w)) { + if (PyLong_CheckExact(v)) { + if

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-16 Thread Ian Bicking
Ian Bicking [EMAIL PROTECTED] added the comment: cgi started using this argument due to the potential of a DoS attack without the length limit. So undoing this in cgi (even as an option) would be a regression. ___ Python tracker [EMAIL PROTECTED]

[issue4331] Can't use _functools.partial() created function as method

2008-11-16 Thread scott sadler
scott sadler [EMAIL PROTECTED] added the comment: A short update, I believe that the reason that it was working in one instance was because of some abstractions by a base class (Django model, get_absolute_url). ___ Python tracker [EMAIL PROTECTED]

[issue3106] speedup some comparisons

2008-11-16 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Hello, You may get better timings if you more the types-are-equal test inside the types-i-know test. I get no discernable difference. In general, I'm not too keen on adding this kind of dispatch code to ceval.c. It saves the time spent

[issue2260] conditional jump to a POP_TOP optimization

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Georg, would you please give this a second review. It passes the whole test suite for me and triggers often. -- assignee: rhettinger - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL

[issue4331] Can't use _functools.partial() created function as method

2008-11-16 Thread Calvin Spealman
Calvin Spealman [EMAIL PROTECTED] added the comment: I don't think this is any kind of bug, it is simply a product of only function objects being decorated automatically as methods. Your python version works because it is, in fact, a function. _functools.partial objects are not functions, but

[issue4331] Can't use _functools.partial() created function as method

2008-11-16 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Reclassifying as a feature request. A descriptor could be added to partial() so that it too would have automatic method binding just like pure python functions. -- nosy: +rhettinger type: behavior - feature request versions: +Python

[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Christian Becke
New submission from Christian Becke [EMAIL PROTECTED]: asyncore.file_dispatcher stores the file descriptor passed to asyncore.file_dispatcher.__init__ into the map, not the dup()'ed one created by asyncore.file_wrapper. Because of this, a select.error (9, 'Bad file descriptor') is raised in

[issue4333] Reworked Dialog.py

2008-11-16 Thread Guilherme Polo
New submission from Guilherme Polo [EMAIL PROTECTED]: Hi, I have changed the lib-tk/Dialog.py so it handles the cases where one might receive a tuple as a result containing a Tcl_Obj. I've also modified all the rest of it to make it cleaner. It is b/w compatible although I dislike the usage of

[issue4334] Mac Build Script is broken for 2.6 release

2008-11-16 Thread Noah Gift
New submission from Noah Gift [EMAIL PROTECTED]: Just an FYI, the Mac Build script in: Python-2.6 2/Mac/BuildScript/build-installer.py contains broken download URLs for SQLite, and cause the build to fail. I fixed this myself, but noticed this appears to be fixed in the trunk, already.

[issue4334] Mac Build Script is broken for 2.6 release

2008-11-16 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This has been backported and will be fixed in 2.6.1. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - josiahcarlson nosy: +josiahcarlson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4332 ___

[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4332 ___ ___ Python-bugs-list

[issue4252] some missing links in html help index pane

2008-11-16 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: This describes second bug. When multiple target was bound to same keyword, only first target could be browsed. In index_on_firefox.png, we can see operator, [1], [2]. This [?] means multiple targets are linked to same keyword and we can

[issue4252] some missing links in html help index pane

2008-11-16 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12025/resolved.png ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4252 ___

[issue1309567] linecache module returns wrong results

2008-11-16 Thread Rafe Sacks
Rafe Sacks [EMAIL PROTECTED] added the comment: This seems related to http://bugs.python.org/issue1218234 as well. This is my first bug report. I hope I do this right. I posted this to comp.lang.python and was directed here. Here is a chopped paste of that post: I am getting an error on line