[issue3224] Small typo in 2.6 what's new

2008-06-27 Thread Chris AtLee
New submission from Chris AtLee <[EMAIL PROTECTED]>: Index: Doc/whatsnew/2.6.rst === --- Doc/whatsnew/2.6.rst(revision 64571) +++ Doc/whatsnew/2.6.rst(working copy) @@ -1284,7 +1284,7 @@ Here are all of the changes t

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: The patch does not work. The -xlibmieee flag is included in the cc command lines, like cc -c -xtarget=native -xlibmieee -DNDEBUG -xO5 -I. However, the resulting build produces to wron

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-27 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- assignee: -> ncoghlan ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-27 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The _new__/__init__ stuff showed up on my diff as well (obviously) - that seemed to be doing a pretty good job of maintaining backwards compatibility. I'll dig into this further today and tomorrow - I'll probably start by reverting the relevant

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: I've checked it again, using the font preferences rather than the zoom setting, and I can reproduce the problem. Part of the problem stems from using pixels to set the margin, rather than ems (or whatever the text box is based on). However, alth

[issue3168] cmath test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: 3 different Python 2.6b1 builds: 1) 64-bit Python 2.6b1 on Solaris 10 built with SUN C (no -xlibmieee): Python 2.6b1 (r26b1:64398, Jun 19 2008, 20:27:39) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>

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

2008-06-27 Thread Christopher Li
Christopher Li <[EMAIL PROTECTED]> added the comment: Hi NL, Can you please try this patch on top of the original patch? Thanks Chris --- .pc/fix-up/urllib2.py 2008-02-06 01:13:10.0 -0800 +++ urllib2.py 2008-06-27 15:45:34.0 -0700 @@ -253,7 +253,7 @@ class Request:

[issue3219] repeated keyword arguments

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Don't do this for 2.5 please. -- nosy: +gvanrossum versions: +Python 3.0 -Python 2.5 ___ Python tracker <[EMAIL PROTECTED]>

[issue3215] Can't import sqlite3 in Python 2.6b1

2008-06-27 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-b

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

2008-06-27 Thread nfl
nfl <[EMAIL PROTECTED]> added the comment: Hi, looks like the attached patch only works if I use urllib2.ProxyHandler({'https' : proxy}) at the start, but not when I use request.set_proxy(proxy, 'https') per request. I tested with Python 2.5.1 on Win32. -- nosy: +nfl __

[issue3218] 2to3 Fix_imports optimization

2008-06-27 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: Here are the changes we talked about to fix_imports.py which remove the functionality for members. This causes a substantial performance boost, as fix_imports was the main bottleneck for 2to3. Added file: http://bugs.python.org/file10756/fix_impor

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Running FF3.0 on Windows it looks fine at various font sizes. Maybe this is unique to the Ubuntu build. Also, I looked at the style sheet and didn't see anything odd. -- nosy: +rhettinger ___ P

[issue3222] inf*inf gives inf, but inf**2 gives overflow error

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: This is a known problem, that's unlikely to change unless there's a serious overhaul of Python's floating point. The warning at the end of the math module documentation should probably be taken to apply equally to all the built-in floating-

[issue3221] SystemError: Parent module 'foo' not loaded on import statement

2008-06-27 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: The following short program work in python 2.5, but does die with a SystemError in python2.6: ~/ cat t.py #! /usr/bin/env python res = dict(__package__='foo') exec "from os import path" in res ~/ python2.5 t.py ~/ python2.6 t.py Traceback

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: closed -> pending ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bug

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: When someone reports a problem in a web site, one of the worst answers is "it's a browser bug - we're not going to fix it". I agree this should be moved to a lower priority, but closing it is a bad decision IMO.

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: test_multiprocessing is also still hanging for me, perhaps 30% of the times I run the test suite. When running the test by itself it seems to pass much more often, but not always. I just got the following output (on OS X 10.5.3/Intel). The

[issue3221] SystemError: Parent module 'foo' not loaded on import statement

2008-06-27 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> twouters nosy: +twouters ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3223] py3k warn on use of frame.f_exc*

2008-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: f_exc_value and friends are no longer available in 3.0 and should get a Py3k warning on use. -- keywords: easy messages: 68855 nosy: benjamin.peterson priority: high severity: normal status: open title: py3k warn on use of frame.

[issue3168] cmath test fails on Solaris 10

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: This one's quite baffling. Jean, can you confirm whether cmath.log(0.01, 0.5) and cmath.log(100., 2.0) give the correct answer or not? They should both give (6.6438561897747244-0j) (the sign on the imaginary part might turn out as + inste

[issue3222] inf*inf gives inf, but inf**2 gives overflow error

2008-06-27 Thread Mike Speciner
New submission from Mike Speciner <[EMAIL PROTECTED]>: Tried this on wintel 32-bit (3.0b1 (r30b1:64403M, Jun 19 2008, 14:56:09) [MSC v.1500 32 bit (Intel)] -- messages: 68853 nosy: ms severity: normal status: open title: inf*inf gives inf, but inf**2 gives overflow error type: behavior v

[issue3219] repeated keyword arguments

2008-06-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: The attached patch gives a SyntaxError. -- keywords: +patch nosy: +benjamin.peterson priority: -> critical Added file: http://bugs.python.org/file10755/repeated_kwargs.patch ___ Python tracker

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > I agree that if the type of the 2nd arg isn't int or long it should be > rejected. That should not slow down the common path (two ints). Sounds good. Some care might be needed to avoid invalidating Fraction(n, d) where n and d are instance

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Jean, Could you try the attached patch and see if it fixes the problem? And I'd welcome comments from others on the patch---I'm not much of an autoconf hacker. -- keywords: +patch Added file: http://bugs.python.org/file10754/issue3

[issue3220] Improve Bytes and Byte Array Methods doc

2008-06-27 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Lib Ref/Built-in Types/Sequence Types/Bytes and Byte Array Methods The following set/frozenset and dict sections repeat (and for dicts, expands upon) the constructor interface from the Built-in Functions section. The sequence type sections

[issue3219] repeated keyword arguments

2008-06-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue3219] repeated keyword arguments

2008-06-27 Thread ganges master
New submission from ganges master <[EMAIL PROTECTED]>: under python 2.5 (and possibly 2.6 beta), the following code runs successfully: >>> def f(**kwargs): ... print kwargs ... >>> f(a=5,b=7,a=8) {'a': 8, 'b': 7} while in python 2.4, it fails as expected (complaining that "a" is given twice

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: In that case, I think we can only advise to change the font size and/or make a Firefox bug report. -- resolution: -> works for me status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <

[issue3112] implement PEP 3134 exception reporting

2008-06-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Here is the final patch. Features: - cleanup of internal APIs - standardize traceback indentation (source lines are prefixed with 4 spaces) - break cycles along the context chain (a synthetic benchmark with a 6-level deep context chain shows a

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Changing the default font in FF to 14 points seems to fix the problem (my default is 22). ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I think it's okay to accept Fraction('1.23', 1) -- if only because rejecting it means changing the default for the 2nd arg to None and that would slow it down again. I agree that if the type of the 2nd arg isn't int or long it should be rej

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I see the big search box on http://docs.python.org/dev/. The "gray box" is just me highlighting the problematic area in the picture, not in the actual web site. Sorry I wasn't clear about that. My settings is FF3 on Untuntu 8.04 __

[issue754016] urlparse goes wrong with IP:port without scheme

2008-06-27 Thread Senthil
Changes by Senthil <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10570/issue754016.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue754016] urlparse goes wrong with IP:port without scheme

2008-06-27 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: I am attaching the modified patch, which addresses the port issue properly and handles 'http:', 'https:' only URLS. Also included the tests for it. Facundo, I gave sufficient thought on raising an Exception for URLS not staring with '//', and I am -

[issue3218] 2to3 Fix_imports optimization

2008-06-27 Thread Nick Edds
New submission from Nick Edds <[EMAIL PROTECTED]>: This is an optimization in pytree.py specifically for the bare_name pattern from fix_imports.py. It also has the isinstance change I previously suggested piggybacked onto it. Because the bare_name pattern is so massive (764 nodes!), it is very sl

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-27 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks for giving this some time. I think that backwards compatibility should be a higher priority than being able to issue -3 warnings -- if the warnings can't be generated, too bad, we'll just have to document it. (I don't think that check

[issue3168] cmath test fails on Solaris 10

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Nasty. Here is the test extracted from test/test_cmath.py import math, cmath test_values = [0.01, 0.1, 0.2, 0.5, 0.9, 0.99] positive = test_values + [1.] + [1./x for x in test_values] for base in [0.5, 2., 10.]: for v in positive:

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: The 64-bit version did the right thing, all along. The 32-bit result is correct only when compiled with option -xlibmieee. But the latter sets errno value to EDOM and that should be 0, rather remain unmodified.

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Does that mean that both do the right thing or the wrong thing? -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3197] Documentation for fractions module needs work

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > Shouldn't make the second '.' optional or this will match plain > numerators too. Thanks. Fixed, and committed in r64561 (trunk), and r64562 (py3k). -- resolution: -> fixed status: open -> closed

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: It would have been helpful if you had given the url in your message instead of requiring respondents to read a fuzzy image. In any case, there is no gray box on Windows XP with FF3 at any zoom level nor with IE7. I suggest closing this as id

[issue3197] Documentation for fractions module needs work

2008-06-27 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: > [sign] integer '.' [fraction] | [sign] ['.'] fraction Shouldn't make the second '.' optional or this will match plain numerators too. Otherwise, looks good. Thanks for fixing this! ___ Python tracker <

[issue3217] make text is broken

2008-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: Traceback (most recent call last): File "/temp/python/trunk/Doc/tools/sphinx/__init__.py", line 135, in main app.builder.build_update() File "/temp/python/trunk/Doc/tools/sphinx/builder.py", line 199, in build_update 'out of d

[issue3216] errors in msilib documentation

2008-06-27 Thread Sjoerd Mullender
New submission from Sjoerd Mullender <[EMAIL PROTECTED]>: There are several errors in the msilib documentation. I'm sure I haven't found them all, but here are some: - add_data is documented to have two arguments. In reality it has three. - Execute on a View object is documented to have an opt

[issue3215] Can't import sqlite3 in Python 2.6b1

2008-06-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Confirmed here. As a workaround, you may rename sqlite3.dll to SQLITE3.pyd, with some uppercase letters: the dll loader won't care, but the python import does check for case consistency. There is a problem in PCBuild/sqlite3.vcproj, whi

[issue3214] Suggest change to glossary explanation: "Duck Typing"

2008-06-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Georg, you may also want to amend this entry for ABCs. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> _

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-27 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Amaury's patch doesn't currently remove the new-in-2.6 code that turns "tp_hash = NULL" at the C level into "__hash__ = None" at the Python level. I suspect that will prove to be a problem (and may be the cause of Django's woes, if I remember Gl

[issue3215] Can't import sqlite3 in Python 2.6b1

2008-06-27 Thread Craig Holmquist
New submission from Craig Holmquist <[EMAIL PROTECTED]>: This is observed on Windows XP; I don't know if it affects other platforms. Trying to import sqlite3 gives this error: >>> import sqlite3 Traceback (most recent call last): File "", line 1, in import sqlite3 File "C:\Python26\Lib

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Okay, I get the point. With including unicode.defenc I already included a referenced object which was ruled out in the first place. And this for a good reason. What bugs me, though, is that this leaves out a potentially significant amount

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

2008-06-27 Thread Martijn Pieters
Martijn Pieters <[EMAIL PROTECTED]> added the comment: I've created a python 2.4 compatible distribution of the python 2.5 urllib2 and httplib modules with the patch attached to this issue. This has proven especially useful in zc.buildout or other setuptools environments: http://pypi.python.or

[issue3197] Documentation for fractions module needs work

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's an updated doc patch; it fixes an indentation issue in the previous patch, and adds documentation for the exported gcd function. Added file: http://bugs.python.org/file10750/fractions_doc2.patch _

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Hmm. I don't much like this, though: >>> Fraction('1.23', 1.0) Fraction(123, 100) >>> Fraction('1.23', 1+0j) Fraction(123, 100) I'd say these should definitely be TypeErrors. ___ Python tracker <[EMAIL P

[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.

2008-06-27 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Trailing 'L's removed in r64557. A couple more minor issues: (1) fractions.gcd is exported but not documented. I'll add some documentation for it, unless anyone feels that it shouldn't have been exported in the first place. If so, please

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > Caching itself is no criteria, but allocating memory without giving > the user a chance to find out should be (in this context). > ... calling match.regs creates a > tuple which is not there before, but cannot be removed > afterwards.

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: I was refering to the fact that something on the C level is cached without the Python user ever noticing that it wasn't there before. Caching itself is no criteria, but allocating memory without giving the user a chance to find out should

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I don't understand the relation between "the member is cached" and "it counts in the object's sizeof". What does "cached" mean? Does 'self.x = 3' create a cached member? ___ Python tracker <[EMAIL P

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-06-27 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: You are right, the rule is to not include referenced objects. But, and this has been rather informal up to now, I handled transparently cached information as something that is added to the memory used by an object (see unicode.defenc). The