[issue8678] crashers in rgbimg

2010-05-11 Thread Tomas Hoger

Tomas Hoger  added the comment:

According to PEP-0004, affected module was deprecated in 2.5 and is no longer 
part of 2.6 and later.  Hence 2.5 only, not sure if that version is still 
actively supported upstream.

--
nosy: +thoger
versions:  -Python 2.6, Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

I've tested a variant of the previous patch.
On my laptop, it gives good performance for simple cases, and the penalty for 
real-quoting case is very low.

I've tested a short-circuit for the unquote() function too.

--
nosy: +flox
Added file: http://bugs.python.org/file17290/issue1285086_fast_quote.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file17290/issue1285086_fast_quote.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Added file: http://bugs.python.org/file17291/issue1285086_fast_quote.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Lets also see how this fares in py3k (where quote function takes an encoding ) 
and possibly push it in.
If there is any hesitation we can consult python-dev or wsgi groups where 
frameworks developers might review and voice concerns, if they have any.

--
assignee:  -> orsenthil

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8510] update to autoconf2.65

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Roumen:  good catch!  Indeed, nested functions aren't legal in standard C, and 
the test for -fno-strict-aliasing now fails on my OS X 10.6.3 machine, where it 
used to pass:

  checking whether gcc accepts -fno-strict-aliasing... no

config.log contains:

  configure:5400: checking whether gcc accepts -fno-strict-aliasing
  configure:5418: gcc -fno-strict-aliasing -c -g -O2  conftest.c >&5
  conftest.c: In function 'main':
  conftest.c:27: error: nested functions are disabled, use -fnested-functions 
to re-enable
  configure:5418: $? = 1
  configure: failed program was:
  ...

Fixed these cases above and removed the extra '#include "confdefs.h"' lines 
(which seem harmless, but unnecessary) in r81077 (trunk).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts

New submission from Andrew Bennetts :

set.difference(s), when s is also a set, basically does::

res = set()
for elem in self:
if elem not in other:
res.add(elem)

This is wasteful when len(self) is much greater than len(other):

$ python -m timeit -s "s = set(range(10)); sd = s.difference; empty = 
set()" "sd(empty)"
100 loops, best of 3: 12.8 msec per loop
$ python -m timeit -s "s = set(range(10)); sd = s.difference; empty = set()" 
"sd(empty)"
100 loops, best of 3: 1.18 usec per loop

Here's a patch that compares the lengths of self and other before that loop, 
and if len(self) is greater, swaps them.  The new timeit results are:

$ python -m timeit -s "s = set(range(10)); sd = s.difference; empty = 
set()" "sd(empty)"
100 loops, best of 3: 0.289 usec per loop
$ python -m timeit -s "s = set(range(10)); sd = s.difference; empty = set()" 
"sd(empty)"
100 loops, best of 3: 0.294 usec per loop

--
components: Interpreter Core
files: set-difference-speedup.diff
keywords: patch
messages: 105489
nosy: spiv
priority: normal
severity: normal
status: open
title: set(range(10)).difference(set()) is slow
type: performance
versions: Python 2.7
Added file: http://bugs.python.org/file17292/set-difference-speedup.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts

Andrew Bennetts  added the comment:

Oops, obvious bug in this patch. set('abc') - set('bcd') != set('bcd') - 
set('abc').  I'll see if I can make a more sensible improvement.

See also .  Thanks dickinsm on #python-dev.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8510] update to autoconf2.65

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Merged to py3k, and fixed up an additional nested 'int main()', in r81078.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> rhettinger
nosy: +rhettinger
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8425] a -= b should be fast if a is a small set and b is a large set

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

See also issue 8685.

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8510] update to autoconf2.65

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

BTW, it looks as though the nested functions were introduced in r76030;  
nothing to do with Matthias's autoconf 2.65 update.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts

Andrew Bennetts  added the comment:

Ok, this time test_set* passes :)

Currently if you have large set and small set the code will do len(large) 
lookups in the small set.  When large is >> than small, it is cheaper to copy 
large and do len(small) lookups in large.  On my laptop a size difference of 4 
times is a clear winner for copy+difference_update over the status quo, even 
for sets of millions of entries.  For more similarly sized sets (even only 
factor of 2 size difference) the cost of allocating a large set that is likely 
to be shrunk significantly is greater than the benefit.  So my patch only 
switches behaviour for len(x)/4 > len(y).

This patch is complementary to the patch in issue8425, I think.

--
Added file: http://bugs.python.org/file17293/set-difference-speedup-2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8510] update to autoconf2.65

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Just double checked that r80969 didn't introduce any other non-whitespace 
changes: apart from the now-fixed OS X 10.5 SDK issue), the only other 
non-whitespace change was:

@@ -7018,7 +7023,7 @@
 int
 main ()
 {
-long double x; x = (long double)0.;
+long double x; x = (long double)0;
   ;
   return 0;
 }

which looks harmless to me.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8510] update to autoconf2.65

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Closing.  Roumen, please open a new issue for any other configure issues that 
aren't related to this autoconf update.

--
resolution:  -> accepted
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8684] improvements to sched.py

2010-05-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This must be retargeted to 3.2. Also, the patch lacks some tests.
It seems PEP 8 compliance could be better: function names shouldn't be 
CamelCased.
Is LocalSynchronize() an implementation detail rather than a public API? If so, 
I think it would be better if it started with an underscore.

--
nosy: +pitrou
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-11 Thread INADA Naoki

New submission from INADA Naoki :

http://docs.python.org/library/difflib.html#difflib.SequenceMatcher.quick_ratio
> This isn’t defined beyond that it is an upper bound on ratio(), and is faster 
> to compute.

"beyond" is a bit confusing because it also means "over" and this
sentence refers upper bound.

I think "This isn't defined in detail more than..." is easier.

--
assignee: d...@python
components: Documentation
messages: 105498
nosy: d...@python, naoki
priority: normal
severity: normal
status: open
title: "This isn't defined beyond that" phrase is not friendly to non-native 
English speakers.
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8684] improvements to sched.py

2010-05-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

By the way, the patch lacks docs for new public APIs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray

R. David Murray  added the comment:

There is a reason, and that is that it may break existing code in the field 
relying on the current behavior.  This is (unfortunately) true regardless of 
whether the function is public or private, though the fact that it is 
ostensibly private is likely to reduce the amount of breakage.  The fix needs 
to be evaluated to try to guess whether breakage is likely, and if it is, it 
would not be a candidate for backport to 2.6 or 3.1.

--
nosy: +r.david.murray
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray

R. David Murray  added the comment:

Hmm.  I didn't read your comment carefully enough before I replied.  I think 
you are saying that the bug fix is confined to the routine in question and 
doesn't change even its API, in which case the nature of the function doesn't 
come in to it at all.  The fix still needs to be evaluated for backport, 
though, since it is a behavior change.  (For example, in another issue Senthil 
fixed parsing of unknown schemes to be RFC compliant, but we may need to back 
that fix out of 2.6 since it changes behavior and will most likely break 
currently working 2.6 code).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8684] improvements to sched.py

2010-05-11 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

What are the enhancements introduced by this patch?
A faster cancel() implementation?
If so some simple benchmarks showing the speed improvement of cancel() and 
eventually also other methods like enterabs() and run() would be nice to have.

I've noticed there are no existing tests for the sched module.
This is very bad. I think the first thing to do is adding tests, make sure they 
pass with the current implementation, then apply the patch and make sure they 
keep passing.

Obviously it is also crucial that this patch is fully backward compatible with 
the current implementation.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8687] sched.py module doesn't have a test suite

2010-05-11 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :

sched.py module is currently lacking a test suite.
Possibly this should be resolved before fixing issue 8684.

--
components: Tests
messages: 105503
nosy: giampaolo.rodola, josiah.carlson, josiahcarlson, pitrou
priority: normal
severity: normal
status: open
title: sched.py module doesn't have a test suite
versions: Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8684] improvements to sched.py

2010-05-11 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Created issue 8687 to address the test suite problem.

--
superseder:  -> sched.py module doesn't have a test suite

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-05-11 Thread Ronald Oussoren

New submission from Ronald Oussoren :

The sdist command in distutils calculates the MANIFEST file from a template (by 
default MANIFEST.in). 

The code in sdist assumes that the contents of MANIFEST only depends on 
MANIFEST.in and setup.py, which can cause files to be missed when building an 
sdist.

In particular: given a MANIFEST.in file that includes all documentation in a 
'Doc' subdirectory, using"recursive-include Doc *.txt" in the template, the 
MANIFEST won't get regenerated when a new file is added to the documentation 
subdirectory and hence that new file is not included in sdist distributions.

--
assignee: tarek
components: Distutils
messages: 105505
nosy: ronaldoussoren, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: distutils sdist is too laze w.r.t. recalculating MANIFEST
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8675] audioop module needs an int -> Py_ssize_t upgrade

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Here's a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file17294/audioop_Py_ssize_t.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-11 Thread R. David Murray

R. David Murray  added the comment:

Unfortunately that wouldn't be correct English, as far as I know.

How about "This isn't defined other than that..."  I think that reads a bit 
more clearly than "beyond that" even to a native speaker, even though beyond is 
valid in this context.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-11 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 3.1 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7897] Support parametrized tests in unittest

2010-05-11 Thread Nick Coghlan

Nick Coghlan  added the comment:

I agree with Michael - one test that covers multiple settings can easily be 
done by collecting results within the test itself and then checking at the end 
that no failures were detected (e.g. I've done this myself with a test that 
needed to be run against multiple input files - the test knew the expected 
results and maintained lists of filenames where the result was incorrect. At 
the end of the test, if any of those lists contained entries, the test was 
failed, with the error message giving details of which files had failed and 
why).

What parameterised tests could add which is truly unique is for each of those 
files to be counted and tracked as a separate test. Sometimes the 
single-test-with-internal-failure-recording will still make more sense, but 
tracking the tests individually will typically give a better indication of 
software health (e.g. in my example above, the test ran against a few dozen 
files, but the only way to tell if it was one specific file that was failing or 
all of them was to go look at the error message).

--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8684] improvements to sched.py

2010-05-11 Thread R. David Murray

Changes by R. David Murray :


--
dependencies: +sched.py module doesn't have a test suite
superseder: sched.py module doesn't have a test suite -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8674] audioop: incorrect integer overflow checks

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Fixed one more bogus overflow check in r81079 through r81082.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Sebastien Binet

Sebastien Binet  added the comment:

hi there,

it seems there is still a problem, at least with asinh(-2j)

see:

$ python
Python 2.6.5 (r265:79063, Apr  1 2010, 05:28:39) 
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import numpy as np
>>> np.__version__
'1.4.0'
>>> import cmath
>>> cmath.asinh(-2j)
 (1.3169578969248166-1.5707963267948966j)

>>> np.arcsinh(-2j)
(-1.3169578969248164-1.5707963267948966j)

same behaviour for python3.1:
$ python3
Python 3.1.2 (r312:79147, Apr  1 2010, 09:12:21) 
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import cmath
>>> cmath.asinh(-2j)
(1.3169578969248166-1.5707963267948966j)

cheers,
sebastien.

--
nosy: +bins
versions: +Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8675] audioop module needs an int -> Py_ssize_t upgrade

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

The audioop module was made PY_SSIZE_T_CLEAN in r81083.

--
components: +Extension Modules
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

Python's result looks fine to me, as does numpy's: they're both giving a valid 
inverse hyperbolic sine:

>>> from cmath import sinh
>>> sinh(1.3169578969248166-1.5707963267948966j)  
(1.0605752387249067e-16-1.9998j)
>>> sinh(-1.3169578969248164-1.5707963267948966j)
(-1.0605752387249064e-16-1.9993j)

Perhaps numpy is using different branch cuts?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

New patch, using str.translate instead of regexp.
It is faster for normal cases (85% less time than stdlib quote), and the 
penalty for the real-quoting case is less than 5%.

It should apply to 3.x with some adaptation.

--
Added file: http://bugs.python.org/file17295/issue1285086_using_translate.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8687] sched.py module doesn't have a test suite

2010-05-11 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Patch in attachment.

--
keywords: +patch
Added file: http://bugs.python.org/file17296/test_sched.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

A bit more explanation:  Python takes account of the sign of zero when deciding 
which side of the branch cut a value lies, which is the proper thing to do when 
you have signed zeros available (according to the likes of Kahan, anyway);  I 
suspect that numpy isn't doing that, but is treating all values that lie 
directly on a branch in the same way.

In this case there's a branch cut from -1j down to -1j*inf.  Values just to the 
right of that branch cut (i.e., with positive real part) should have a result 
with positive real part;  values just to the left of it should have negative 
real part:

Some results (using complex() to create the values, since other ways of 
creating complex numbers are prone to changing the sign of a zero):

>>> asinh(complex(0.0, -2.0))
(1.3169578969248166-1.5707963267948966j)
>>> asinh(complex(1e-10, -2.0))
(1.3169578969248166-1.5707963267371616j)
>>> asinh(complex(-0.0, -2.0))
(-1.3169578969248166-1.5707963267948966j)
>>> asinh(complex(-1e-10, -2.0))
(-1.3169578969248166-1.5707963267371616j)

So the cmath module is working as intended here.  numpy may or may not be 
working as intended:  I don't know how much they care about branch cut 
continuity.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

The speed test script did not work on 2.5 (because timeit.Timer does not accept 
a callable).
Fixed version, which benchmarks the str.translate(...) version.

Change the '_new_quote_setup' assignment to test other variants.

--
Added file: http://bugs.python.org/file17297/urllib_quote_speed_test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Sebastien Binet

Sebastien Binet  added the comment:

hi Mark,

that may very well be so, but I'd naively standardize on C/Fortran behaviour 
(but that's probably my physicist bias)

on my platform, the following piece of C-code:

$ cat test_cmath.c
#include 
#include 

int main(int argc, char** argv)
{
  complex c = casinh(-2*I);
  printf("asinh(-2j) = %g + %gi\n", creal(c), cimag(c));
  return 0;
}
/* EOF */

gives:
$ ./a.out 
asinh(-2j) = -1.31696 + -1.5708i

cheers,
sebastien.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

> that may very well be so, but I'd naively standardize on C/Fortran > 
> behaviour (but that's probably my physicist bias)

Yep, that's exactly what Python does. :)  (Also follows the LISP standard).

Note that in your program, you're feeding complex(-0.0, -2.0) to asinh,
not complex(0.0, 2.0).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7897] Support parametrized tests in unittest

2010-05-11 Thread Yaroslav Halchenko

Yaroslav Halchenko  added the comment:

Hi Nick,

Am I reading your right, Are you suggesting to implement this
manual looping/collecting/reporting separately in every unittest
which needs that?

On Tue, 11 May 2010, Nick Coghlan wrote:
> Nick Coghlan  added the comment:

> I agree with Michael - one test that covers multiple settings can easily be 
> done by collecting results within the test itself and then checking at the 
> end that no failures were detected (e.g. I've done this myself with a test 
> that needed to be run against multiple input files - the test knew the 
> expected results and maintained lists of filenames where the result was 
> incorrect. At the end of the test, if any of those lists contained entries, 
> the test was failed, with the error message giving details of which files had 
> failed and why).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

> Note that in your program, you're feeding complex(-0.0, -2.0) to asinh,
> not complex(0.0, 2.0).

Bah;  that should be complex(0.0, -2.0) in the second line, of course.

Anyway, try passing conj(2*I) to asinh in your C program and see what happens.  
:)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1381] cmath is numerically unsound

2010-05-11 Thread Sebastien Binet

Sebastien Binet  added the comment:

> Note that in your program, you're feeding complex(-0.0, -2.0) to asinh,
> not complex(0.0, -2.0).

ah!
(ducking)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7978] SocketServer doesn't handle syscall interruption

2010-05-11 Thread Christophe Simonis

Changes by Christophe Simonis :


--
nosy: +Christophe Simonis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file17297/urllib_quote_speed_test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

actually, there's a simpler implementation, using s.rstrip(always_safe + safe).

It is as fast as the previous one.

--
Added file: http://bugs.python.org/file17298/issue1285086_using_rstrip.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8256] TypeError: bad argument type for built-in operation

2010-05-11 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Added file: http://bugs.python.org/file17299/urllib_quote_speed_test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I have two problems with this proposal:

1. In constrained memory environments, creating a temporary internal copy of a 
large set may cause the difference operation to fail that would otherwise 
succeed.

2. The break-even point between extra lookups and a copy is likely to be 
different on different systems or even on the same system under different loads.

Programs that suffer from poor large_set.difference(small_set) performance can 
be rewritten as large_set_copy = large_set.copy(); 
large_set_copy.difference_updste(small_set) or even simply as 
large_set.difference_updste(small_set) if program logic allows it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-11 Thread Simon Jagoe

New submission from Simon Jagoe :

I have been using sqlalchemy and sqlamp in a project for a while with Python 
2.5.x and Python 2.6.4. With a recent upgrade to Python 2.6.5 (on Ubuntu Lucid 
Lynx), a particular operation began to fail when using sqlite.

I have tracked this to using the sqlite3 module and multiple parameter 
substitution. See below for a simple test case.

Set up the database:

 >>> import sqlite3
 >>> conn = sqlite3.connect('test.sqlite3')
 >>> c = conn.cursor()
 >>> c.execute('create table test (col integer)')
 >>> c.execute('insert into test values (1)')
 >>> conn.commit()

Actual result:

 >>> c.execute('SELECT coalesce(max(test.col), ?) + ? AS col FROM test', (0, 1))
 >>> c.fetchone()
 (None,)

Expected result:

 >>> c.execute('SELECT coalesce(max(test.col), ?) + ? AS col FROM test', (0, 1))
 >>> c.fetchone()
 (2,)

The expected result can be simulated like this:

 >>> c.execute('SELECT coalesce(max(test.col), 0) + 1 AS col FROM test')
 >>> c.fetchone()
 (2,)

--
messages: 105525
nosy: azriphale
priority: normal
severity: normal
status: open
title: sqlite3 parameter substitution breaks with multiple parameters
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1641] asyncore delayed calls feature

2010-05-11 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

> Let the user leverage the existing scheduler API.  Cut out 
> scheduled_task and call_later, which just wraps the scheduler API.  
> The user can simply call scheduled_tasks.enter() or 
> scheduled_tasks.cancel().  It's one less API for them to learn and 
> one less for us to maintain.

I think a wrapper around sched.py is necessary.
Now that I wrote tests for it I realized its API is pretty rusty and old.


Adding a call:

scheduler = sched.scheduler(time.time, time.sleep)
scheduler.enter(10, 1, function, (arg,))

...vs:

asyncore.call_later(10, function, arg)


Cancelling a call:

scheduler = sched.scheduler(time.time, time.sleep)
event = scheduler.enter(10, 1, function, (arg,))
scheduler.cancel(event)

...vs:

event = asyncore.call_later(10, function, arg)
event.cancel()


Moreover, reset() and delay() methods are not implemented in sched.
By using call_later you can do:

event = asyncore.call_later(10, function, arg)
event.reset()
event.delay(10)

By using sched.py you'll have to recreate a new event from scratch 
(scheduler.cancel(event) -> calculate the new timeout, scheduler.enter(newtime, 
1, function, (arg,)).

Other problems which comes to mind are: you can't easily know whether a call 
has already been cancelled, you can't manually fire it before the timeout has 
expired and I'm not even sure whether it's possible to pass kwargs to enter(), 
which is crucial (with call_later you can do it like this: 
asyncore.call_later(10, function, x, y, z='foo')).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1641] asyncore delayed calls feature

2010-05-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Adding a call:
> 
> scheduler = sched.scheduler(time.time, time.sleep)
> scheduler.enter(10, 1, function, (arg,))
> 
> ...vs:
> 
> asyncore.call_later(10, function, arg)

I don't really see the difference. How hard it is to build a scheduler
object at startup and store it somewhere in your globals or on one of
your objects?

The main improvement I could see would be to make the arguments to
sched.scheduler() optional, and default to time.time and time.sleep.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread srid

srid  added the comment:

Still debugging it. In gcmodule.c:collect(..) the value of the variable 
`generation` is 80 - shouldn't it be less than NUM_GENERATIONS (3)?

--
nosy: +ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Still debugging it. In gcmodule.c:collect(..) the value of the
> variable `generation` is 80 - shouldn't it be less than
> NUM_GENERATIONS (3)?

Certainly. Have you tried using different optimization options? Which
compiler are you using?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1641] asyncore delayed calls feature

2010-05-11 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

On Tue, May 11, 2010 at 11:55 AM, Giampaolo Rodola'
 wrote:
> Moreover, reset() and delay() methods are not implemented in sched.
>
> Other problems which comes to mind are: you can't easily know whether a call 
> has already been cancelled, you can't manually fire it before the timeout has 
> expired and I'm not even sure whether it's possible to pass kwargs to 
> enter(), which is crucial (with call_later you can do it like this: 
> asyncore.call_later(10, function, x, y, z='foo')).

These are nice features, but wouldn't it make more sense to add them to sched?

That would provide them to other users of sched, while keeping the
asyncore code simpler.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

I am using "cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]" .. with the 
following options.

cc +DD64 -Ae -D_REENTRANT +Z -c  -g -DNDEBUG -O  -I. -IInclude -I./Include   
-DPy_BUILD_CORE -o Modules/gcmodule.o Modules/gcmodule.c

So that is +O2 level.



Interestingly the following patch fixes the bug, and shows that this is a 
optimization bug in HPUX compiler:

diff -r 549fd95a5eb9 Modules/gcmodule.c
--- a/Modules/gcmodule.cMon May 10 23:51:33 2010 +0200
+++ b/Modules/gcmodule.cTue May 11 11:02:52 2010 -0700
@@ -984,7 +984,8 @@
 /* Find the oldest generation (highest numbered) where the count
  * exceeds the threshold.  Objects in the that generation and
  * generations younger than it will be collected. */
-for (i = NUM_GENERATIONS-1; i >= 0; i--) {
+i = NUM_GENERATIONS-1;
+while (i>=0){
 if (generations[i].count > generations[i].threshold) {
 /* Avoid quadratic performance degradation in number
of tracked objects. See comments at the beginning
@@ -996,6 +997,7 @@
 n = collect(i);
 break;
 }
+   i--;
 }
 return n;
 }



I will try to use a different optimization level now.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8678] crashers in rgbimg

2010-05-11 Thread Brett Cannon

Brett Cannon  added the comment:

Because it's a crasher it could still be patched if someone chose to do the 
work.

--
components: +Extension Modules

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2010-05-11 Thread Jason Baker

New submission from Jason Baker :

The multiprocessing.dummy.Queue class is merely an import of Queue.Queue.  
There are a few methods that this does not provide however:  close, 
join_thread, and cancel_join_thread.

I don't know what the best way to handle this is, but it should be pretty 
trivial to add methods that do nothing or at least throw a NotImplementedError.

--
components: Library (Lib)
messages: 105533
nosy: Jason.Baker
priority: normal
severity: normal
status: open
title: multiprocessing.dummy.Queue does not expose same interface as 
multiprocessing.Queue
versions: Python 2.6, Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Using OPT="-O1" fixes this issue. Please feel free to close it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-11 Thread angri

Changes by angri :


--
nosy: +angri

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread John J Lee

John J Lee  added the comment:

What specific breakage do you expect resulting from my patch being backported?

There is no behaviour change here, except to the minimal extent that all bug 
fixes involve behaviour change.  This seems a clear-cut backport candidate.

It's not a surprise to me that changing module urlparse to be compliant with 
RFC 3986 breaks code -- I suggested adding a new module instead for that reason.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8691] Doc: left alignment is not the default for numbers

2010-05-11 Thread Terry J. Reedy

New submission from Terry J. Reedy :

As reported on python-list by Alan G Isaac,
Lib Ref 6.1.3.1. Format Specification Mini-Language, for instance
http://docs.python.org/dev/py3k/library/string.html#formatstrings

wrongly says in the alignment section

"'<'Forces the field to be left-aligned within the available space (This is 
the default.)"

This latter, of course, is not true for number fields.

"(This is the default.)" could be replaced by "(the string default)."
(in any case, the '.' should be outside the () unless one is added after 
'space' before '(') and "(the number default)" added to the next line. Or 
instead the issue of defaults could be addressed in the text below the table.

I am assuming that this issue affects 2.6/7.

--
assignee: d...@python
components: Documentation
messages: 105536
nosy: d...@python, tjreedy
priority: normal
severity: normal
status: open
title: Doc: left alignment is not the default for numbers
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach

New submission from Daniel Stutzbach :

(Making an educated guess about who to add to the Nosy list)

Attached is a patch to improve math.factorial by using a divide-and-conquer 
algorithm.  The old algorithm performs n-1 multiplications, mostly on numbers 
with a very large number of digits.

The algorithm in this patch:
- implicitly factors out all powers of two and applies a left-shift at the end.
- performs roughly half as many multiplications (around n/2 + 2*lg n)
- groups the multiplications so most multiplications are on small numbers
- uses a lookup table for n <= 12

There are faster factorial algorithms available, but they're significantly more 
complicated and rely on a fast prime factorization function.  This one is 
around 125 lines of code in C (with comments).  I have a pure-Python version 
that's around 25 lines of code, if anyone is interested.

Here are some timing results for different values of n:

n : old algorithm : new algorithm
1   0.14 us  0.10 us
10  0.63 us  0.12 us
13  0.81 us  0.76 us
10012.6  us  4.92 us
1k576us118us
10k53.6  ms  8.16 ms
100k   12.1  s 443ms
1M  27   min23s
10Mforget it20min

I tested that both algorithms return the same answer for all values of n up to 
10,000.

--
assignee: stutzbach
components: Extension Modules
files: factorial.patch
keywords: needs review, patch, patch
messages: 105537
nosy: mark.dickinson, rhettinger, stutzbach
priority: normal
severity: normal
stage: patch review
status: open
title: Use divide-and-conquer for faster factorials
type: performance
versions: Python 3.2
Added file: http://bugs.python.org/file17300/factorial.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4653] Patch to fix typos for Py3K

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue965065] document docs.python.org in PEP-101

2010-05-11 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

PEP 101 now says
  ___ If this is a final release, also unpack the HTML docs to
  /data/ftp.python.org/pub/docs.python.org/release/X.Y[.Z].

___ If this is a major release: Tell the DE to adapt redirects for
  docs.python.org/X.Y in the Apache config for docs.python.org, update
  the script Doc/tools/dailybuild.py to point to the right
  stable/development branches, and to install it and make the initial
  checkout.

Does the above cover the intent of this issue?
(IE, should it be closed?)

--
nosy: +tjreedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2716] Reimplement audioop because of copyright issues

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3006] subprocess.Popen causes socket to remain open after close

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3710] Reference leak in thread._local

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1745035] DoS smtpd vulnerability

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1615] descriptor protocol bug

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7 -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3657] pickle can pickle the wrong function

2010-05-11 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

'works for me' contradicts 'open', so I unset that

--
nosy: +tjreedy
resolution: works for me -> 
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue886488] WinPython 2.3.3 crashes using popen2 to spawn lots of child

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2437] Distutils runtime_library_dirs broken on Windows

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 2.3, Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin

Brian Curtin  added the comment:

Committed in r81088-r81091.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5464] msgfmt.py does not work with plural form

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

bsddb3 isn't in py3k.

--
priority: high -> normal
versions:  -Python 2.5, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3699] test_bigaddrspace broken

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1451466] reading very large files

2010-05-11 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Is this still an issue for 2.7?

--
nosy: +tjreedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

zliberrors.patch looks good to me.

On Mon, May 10, 2010 at 3:37 PM, Antoine Pitrou  wrote:
>
> New submission from Antoine Pitrou :
>
> This is a patch to use our own error descriptions when the zlib doesn't 
> provide anything in particular. It would have made issue8672 easier to 
> diagnose for the reporter (and for us).
>
> --
> components: Extension Modules
> files: zliberrors.patch
> keywords: patch
> messages: 105476
> nosy: gregory.p.smith, pitrou
> priority: normal
> severity: normal
> stage: patch review
> status: open
> title: Make the zlib module emit more detailed error messages
> type: behavior
> versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
> Added file: http://bugs.python.org/file17287/zliberrors.patch
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1599254] mailbox: other programs' messages can vanish without trace

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4608] urllib.request.urlopen does not return an iterable object

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5945] PyMapping_Check returns 1 for lists

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1598083] Top-level exception handler writes to stdout unsafely

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4188] Lib/threading.py causes infinite recursion when running as verbose

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.2 -Python 2.5, Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2122] mmap.flush does not check for errors on windows

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

patch looks good.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2620] Multiple buffer overflows in unicode processing

2010-05-11 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Neal committed changes for 2.4,2.5, so I removed those.
3.0 is dead. Is this an issue for 3.1,3.2 or should it be closed?

--
nosy: +tjreedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7152] urllib2.build_opener() skips ProxyHandler

2010-05-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin

Brian Curtin  added the comment:

I should also note that the 2.6 and 3.1 commits also exposed the *ReflectionKey 
documentation. That documentation was added as part of a feature for 2.7/3.2, 
but those documentation pieces should have been backported on their own but 
were not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue779285] Carbon Event ReceiveNextEvent

2010-05-11 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I have the strong impression that Carbon is no longer used (or is being phased 
out) in modern Mac ports of Python. Reopen is this is wrong and there is a 
problem in 2.6,7 or 3.1,2.

--
nosy: +tjreedy
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I've noticed that your patch changes 

>>> math.factorial(2.**63)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: Python int too large to convert to C long

to

>>> math.factorial(2.**63)
Traceback (most recent call last):
  File "", line 1, in 
ValueError: factorial() not defined for negative values


While the error message is wrong in both cases, I think OverflowError is a 
better exception in this case and there should not be a difference between 
math.factorial(2.**63) and math.factorial(2**63) behavior.

--
nosy: +belopolsky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray

R. David Murray  added the comment:

I don't expect anything; I had written that it looked OK to me but apparently I 
accidentally deleted that text before posting.  But I'm not someone who has 
ever programmed using cookielib so I wouldn't expect my opinion to count for 
too much.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >