[issue1161031] Neverending warnings from asyncore

2009-02-12 Thread Tony Meyer

Tony Meyer  added the comment:

None of my arguments have really changed since 2.4.  I still believe 
that this is a poor choice of default behaviour (and if it is meant to 
be overridden to be useable, then 'pass' or 'raise 
NotYetImplementedError' would be a better choice).

However, my impression is that nothing I say will convince you of that, 
so I'll give up on that.  It would have been interesting to hear from 
Andrew the reason for the code.

However, this is definitely a documentation bug (as outlined 
previously), and so should be fixed, not closed.  I can provide a patch 
if it stands a chance of being accepted.

___
Python tracker 

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



[issue1161031] Neverending warnings from asyncore

2009-02-12 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

A documentation patch would be appreciated, thanks!

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue5215] change value of local variable in debug

2009-02-12 Thread mproeller

mproeller  added the comment:

This is the pdb session at the tracepoint in line 4 in the function func
()
So I did the following first:

> c:\test.py(5)func()
-> a = b + 2
(Pdb) p b
13
(Pdb) !b=5
(Pdb) p b
13
(Pdb) n
> c:\test.py(6)func()
-> print a
(Pdb) n
15

I tried to change the value of b but it didn't work, as the
print a statement printed 15, but it should have printed 7
because I set b to 5!!
Then I did the same again:

> c:\test.py(5)func()
-> a = b + 2
(Pdb) p b
13
(Pdb) !b = 5
(Pdb) n
> c:\test.py(6)func()
-> print a
(Pdb) n
7

Note that I changed the value of b to 5 and than didn't print the value
of b and it seems to work as the print statement printed 7.

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

> > - avoids comparing an unsigned long to -1

Just out of interest, why?  The cast is unnecessary:  there's no ambiguity 
or undefinedness (the int -1 gets promoted to unsigned long, with 
wraparound semantics), and neither gcc nor MSVC complains.

Other than that, the patch looks fine to me;  x ^= x >> 4 would be fine  
too.  I really don't see that it makes much difference either way, since 
both transformations are reversible and fast enough.

___
Python tracker 

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



[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-12 Thread David Jones

David Jones  added the comment:

The following program does a very basic do-i-get-back-what-i-wrote test.  
sunau can't cope; I am investigating.

#!/usr/bin/env python
# $Id$
# Audio File Tests

import aifc
import sunau
import wave

import struct
import sys
from StringIO import StringIO

frames = struct.pack('256B', *range(256))
log = sys.stderr

# Basic test of reproducability.
# We test that a set of frames (an entirely artifical set, see `frames`, 
# above) can be written to an audio file and read back again to get the 
# same set of frames.
# We test mono/stereo, 8-bit/16-bit, and a few framerates.
# As of 2009-02-12 sunau does not pass these tests, so I recommend that 
# you remove it.
for af in (aifc, sunau, wave):
  for nchannels in (1, 2):
for sampwidth in (1, 2):
  for framerate in (11000, 44100, 96000):
print >> log, "%s %d/%d/%d" % (af.__name__,
  nchannels, sampwidth, framerate)
f = StringIO()
w = af.open(f, 'w')
w.setnchannels(nchannels)
w.setsampwidth(sampwidth)
w.setframerate(framerate)
w.writeframesraw(frames)
w.close()
s = f.getvalue()
f = StringIO(s)
w = af.open(f)
assert w.getnchannels() == nchannels
assert w.getsampwidth() == sampwidth
assert w.getframerate() == framerate
assert w.readframes(len(frames)//nchannels//sampwidth) == frames
assert w.readframes(1) == ''

___
Python tracker 

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



[issue5032] itertools.count step

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

A couple of comments:

> Also, improved the utility over its cousin, range() by allowing floating
> point arguments.

Is this wise?  From a numerical perspective, it seems to me that using
count with floating-point arguments is almost always going to be the
wrong thing to do (unless those floats are integral), and that allowing
floating-point arguments invites misuse.  For example, I'd be suspicious
of code that looked like:

for x in count(0.0, 0.1):
do_something_with_x

where it seems quite likely that what's intended is the more robust:

for i in count():
x = i/10.0
do_something_with_x


Second (unrelated) comment:  on my machine, list(count()) appears to
hang, and is unresponsive to keyboard interrupts.  Is there any easy way
to make this interruptible?  While list(count()) is clearly a stupid
thing to type, it would be nice if it didn't hang the interpreter.

--
nosy: +marketdickinson

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Mark:
> Just out of interest, why?  The cast is unnecessary:  there's no ambiguity 
> or undefinedness (the int -1 gets promoted to unsigned long, with 
> wraparound semantics), and neither gcc nor MSVC complains.

Well, I had memories of a weird signed/unsigned problem (issue4935) and
I wasn't sure whether it could raise its head in the present case or
not.

Raymond:
> The latter doesn't
> require any special-casing for various pointer sizes.

The special casing is just there so as to make all pointer bits
participate in the final hash (which is what the original implementation
does). Otherwise we could just unconditionally cast to unsigned long.

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I don't think backporting to 2.6 is fine, people may be relying on the
current behaviour.
As for 3.0.1, you'd better be quick, it's scheduled for tomorrow.

--
nosy: +pitrou

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2009-02-12 Thread STINNER Victor

Changes by STINNER Victor :


___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

Wooops, my mouse clicked on Remove!? I removed Message73550, sorry 
gregory. Here was the content of the message:
---
agreed.  most platforms should be using the openssl version, i will
update the non-openssl implementations to behave the same.

I don't think this is worth being a release blocker.  I'll do it for 
3.0.1.
---

--
nosy: +haypo

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

I agree with pitrou: leave python 2.6 unchanged, but please backport 
to 3.0.1 ;-)

___
Python tracker 

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



[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2009-02-12 Thread Guilherme Polo

Guilherme Polo  added the comment:

agreed.  most platforms should be using the openssl version, i will
update the non-openssl implementations to behave the same.

I don't think this is worth being a release blocker.  I'll do it for 3.0.1.

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2009-02-12 Thread Guilherme Polo

Changes by Guilherme Polo :


___
Python tracker 

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



[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2009-02-12 Thread Guilherme Polo

Changes by Guilherme Polo :


___
Python tracker 

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



[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2009-02-12 Thread Guilherme Polo

Changes by Guilherme Polo :


--
nosy:  -gregory.p.smith

___
Python tracker 

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



[issue3745] _sha256 et al. encode to UTF-8 by default

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

gpolo gave me the solution to restore a deleted message:
http://bugs.python.org/issuexx...@action=edit&@a...@messages=msgnum

___
Python tracker 

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



[issue4751] Patch for better thread support in hashlib

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

@ebfe: Did you wrote the patch (for python 2.7)? Are you still 
interrested to write the patch?

___
Python tracker 

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



[issue5223] infinite recursion in PyErr_WriteUnraisable

2009-02-12 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue637094] print to unicode stream should __unicode

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

ajaksu2> Not sure it's still important after 3.0 release.

Python2 has too much issues related to unicode. It's easier to switch 
to Python3 which use unicode by default for most functions (eg. 
print).

The issue can't be fixed in Python2 without breaking the compatibility 
(introduce regression). I think that the issue is fixed in Python3.

If you disagree, reopen this issue and *attach your patch* ;-)

--
nosy: +haypo
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

> Well, I had memories of a weird signed/unsigned problem (issue4935) and
> I wasn't sure whether it could raise its head in the present case or
> not.

I'm 99.9% sure that it's not a problem here.  If it is a problem then it
needs to be fixed in long_hash in longobject.c as well, which uses
exactly the same code.

The relevant section of the C99 standard is 6.3.1.8, para. 1 (try
googling for 'n1256' if you don't have a copy of the standard).  The
only really nasty cases are those of the form unsigned_int +
signed_long, or more generally,

low_rank_unsigned_integer binary_op higher_rank_signed_integer

where the type of the expression depends on the relative sizes (not just
ranks) of the integer types, giving potential portability problems.  And
there are similar problems with the integer promotions (6.3.1.1, para. 2).

I guess it comes down to personal taste, but my own preference is to
leave out casts where the conversion they describe is already implied by
the C language rules, adding them back in to silence compiler warnings
if necessary.  I find it reduces noise in the code and makes the
important casts more visible, but chacun à son goût.

___
Python tracker 

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



[issue5032] itertools.count step

2009-02-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Not too worried about either issue.  For the first, it makes the code
closer to its pure python equivalent.  Better to add some math module
function like Matlab's linspace().  It's hard to prevent people from
creating numerical mistakes no matter what.  Besides, now it's possible
to write:  count(Decimal('1.1'), Decimal('.1')) and get exact
progressions.  

For the second, the non-interruptability issue is everpresent throughout
the language.  If we get some uniform way of dealing with it, that would
be great (though I expect it will slow down lots of things we care about
and provide nearly zero benefit).  Since count() and repeat() came out
in itertools eons ago, there have been zero bug reports or user
complaints about the issue.  So, I'll take it as a non-issue.

___
Python tracker 

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



[issue660095] GNU readline version confusion

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

This issue is related to old versions:
 - readline 4.2: current is 5.2
 - gcc 3.2.1: current is 4.3.3
 - python 2.2.2: current is 2.6.1
 - etc.

If the problem is still valid today, please reopen this issue.

--
nosy: +haypo
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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ned Deily

New submission from Ned Deily :

ANALYSIS   The script used by the Python installer to update the user's
   shell script has a hard-coded version number.  This script
   is also installed in the "/Applications/Python n.n" directory
   as "Update Shell Profile.command".  The installer is not
   updating the version in the command so the wrong version
   of Python may be inserted into the user's shell path.

SOLUTION   Ensure that the build major version is auto-updated in both.

APPLIESpy3k, 3.0, trunk, 2.6

NOTE   Patch is in two parts:
  patch-nad0005.txt (this file) py3k, 3.0, trunk, 2.6
   and one of:
  patch-nad0005-py3k-30.txt py3k, 3.0
  patch-nad0005-trunk.txt   trunk
  patch-nad0005-26.txt  2.6

--
components: Macintosh
files: patch-nad0005.txt
messages: 81747
nosy: nad
severity: normal
status: open
title: OS X installer: "Update Shell Profile" script is not updated
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13045/patch-nad0005.txt

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13046/patch-nad0005-py3k-30.txt

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13047/patch-nad0005-trunk.txt

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13048/patch-nad0005-26.txt

___
Python tracker 

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



[issue5032] itertools.count step

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

> to write:  count(Decimal('1.1'), Decimal('.1')) and get exact
> progressions.  

That's pretty cool. :-)

> in itertools eons ago, there have been zero bug reports or user
> complaints about the issue.  So, I'll take it as a non-issue.

Fair enough.

___
Python tracker 

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



[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2009-02-12 Thread Ned Deily

New submission from Ned Deily :

An instance of the shell script "Update Shell Profile.command"
 is installed in each "/Applications/Python x.x" folder.
 Clicking on the script allows the user to change the default
 Python version.  If the scripts are run more than once - say
 first to make 3.0 the default then 2.6 the default then back
 to 3.0 again - the script will fail to update the user's $PATH,
 forcing users to manually edit their shell profile.

SOLUTION Ensure that $PATH is updated if there are other Python
 frameworks already on its head.

 (This is not the most elegant solution since it leaves the
 previous versions later in the path but it is safer to
 only append to the user's profile - and a backup copy
 is made.)

APPLIES  py3k, 3.0, trunk, 2.6

--
components: Macintosh
files: patch-nad0020.txt
messages: 81749
nosy: nad
severity: normal
status: open
title: OS X "Update Shell Profile" may not update $PATH if run more than once
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13049/patch-nad0020.txt

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Other than that, the patch looks fine to me;  x ^= x >> 4 would be fine  
> too.

I've just tried x ^= x >> 4 and the speedup is smaller on our
microbenchmark (time_object_hash.py). I conjecture that trying to
maintain the sequentiality of adresses may have beneficial cache
locality effects. Should we care?

___
Python tracker 

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



[issue5214] Add KOI8-RU as a known encoding

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

I found this file http://ra.dkuug.dk/i18n/charmaps/KOI8-RU. I 
converted it to a format compatible with gencodec.py. Here is the 
resulting file: copy it into /encodings/.

--
nosy: +haypo
Added file: http://bugs.python.org/file13050/koi8_ru.py

___
Python tracker 

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



[issue5226] OS X installer: Welcome and Readme files are out-of-date

2009-02-12 Thread Ned Deily

New submission from Ned Deily :

The information in the installer Welcome and README is out-of-date.

APPLIES py3k, 3.0, trunk, 2.6

NOTEpatch-nad0019-py3k-30.txt   py3k, 3.0
patch-nad0019-trunk-26.txt  trunk, 2.6

--
components: Macintosh
files: patch-nad0019-py3k-30.txt
messages: 81752
nosy: nad
severity: normal
status: open
title: OS X installer: Welcome and Readme files are out-of-date
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13051/patch-nad0019-py3k-30.txt

___
Python tracker 

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



[issue5226] OS X installer: Welcome and Readme files are out-of-date

2009-02-12 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13052/patch-nad0019-trunk-26.txt

___
Python tracker 

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



[issue5214] Add KOI8-RU as a known encoding

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

Attach file used as gencodec.py input: koi8-ru.

dwayne: Does the result look correct?

Added file: http://bugs.python.org/file13053/koi8-ru

___
Python tracker 

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



[issue5214] Add KOI8-RU as a known encoding

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

My version of iconv (2.6.1) doesn't support KOI8-RU, only:
 - CSKOI8R
 - KOI-7
 - KOI-8
 - KOI8-R: supported by python trunk
 - KOI8-T
 - KOI8-U: supported by python trunk
 - KOI8
 - KOI8R
 - KOI8U

Note: python trunk doesn't support KOI8R nor KOI8U (which are just 
aliases to KOI8-R and KOI8-U).

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

+1 for checking in pointer_hash4.patch, provided Raymond approves.

___
Python tracker 

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



[issue5214] Add KOI8-RU as a known encoding

2009-02-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Could you please clarify the official status of this encoding. According
to this page:

http://www.terena.org/activities/multiling/koi8-ru/index.html

it is currently only a proposed draft which hasn't been updated since 1997.

--
nosy: +lemburg
versions: +Python 2.7 -Python 2.6

___
Python tracker 

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



[issue637094] print to unicode stream should __unicode

2009-02-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

On 2009-02-12 12:49, STINNER Victor wrote:
> STINNER Victor  added the comment:
> 
> ajaksu2> Not sure it's still important after 3.0 release.
> 
> Python2 has too much issues related to unicode. It's easier to switch 
> to Python3 which use unicode by default for most functions (eg. 
> print).

I don't agree with that statement. Python3 has better Unicode I/O
support, but apart from that it's pretty much the same show.

> The issue can't be fixed in Python2 without breaking the compatibility 
> (introduce regression). I think that the issue is fixed in Python3.

Python3 fixes the "print" statement to be a function, which allows
much better extensibility of the concept.

You can have the same in Python2 with a little effort: just create
your own myprint() function and have it process Unicode in whatever
way you want.

___
Python tracker 

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



[issue5032] itertools.count step

2009-02-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

More coolness:

   count(Fraction(2,3), Fraction(1,6))

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Consider it approved.  Though I prefer you switch to x ^= x >> 4.

--
resolution:  -> accepted

___
Python tracker 

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



[issue5227] Py_Main() does not return on sys.exit()

2009-02-12 Thread Rogi

New submission from Rogi :

From teh documentation:
http://docs.python.org/c-api/veryhigh.html

int Py_Main(int argc, char **argv)¶
The main program for the standard interpreter. This is made
available for programs which embed Python. The argc and argv parameters
should be prepared exactly as those which are passed to a C program’s
main function. It is important to note that the argument list may be
modified (but the contents of the strings pointed to by the argument
list are not). The return value will be the integer passed to the
sys.exit() function, 1 if the interpreter exits due to an exception, or
2 if the parameter list does not represent a valid Python command line.

However, if teh user type sys.exit(whatever), Py_Main() is call exit()
instead of returning, which cause program termination before cleanup and
stuff.

--
components: None
messages: 81760
nosy: Rogi
severity: normal
status: open
title: Py_Main() does not return on sys.exit()
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



[issue637094] print to unicode stream should __unicode

2009-02-12 Thread STINNER Victor

STINNER Victor  added the comment:

> Python3 fixes the "print" statement to be a function, which allows
> much better extensibility of the concept.
>
> You can have the same in Python2 with a little effort: just create
> your own myprint() function and have it process Unicode in whatever
> way you want.

About myprint(): sure, it's possible to write a custom issue. But the feature 
request was to use obj.__unicode__() instead of obj.__str__() for an "unicode 
aware stream".

The problem with Python2 is that there is not clear separation between "bytes 
stream" ("raw stream"?) and "unicode aware stream" (like io.open or 
codecs.open). I think that fixing this issue (#637094) was one of the goal of 
the new I/O library (io in Python3).

Using __unicode__() for some object and __str__() for some other sounds 
strange/dangerous to me. I prefer bytes-only stream or unicode-only stream, 
but not bytes-and-sometimes-unicode stream.

Python2 has only bytes stream. Python3 has both: open(name, 'rb') is bytes 
only, and open(name, 'r') is unicode only.

lemburg> Does your message mean that you want to reopen the issue?

___
Python tracker 

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



[issue4998] __slots__ on Fraction is useless

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

This needs to be merged before 3.0.1 goes out.  I can't do it right now
since I don't have ssh access;  will do it when I get home if no-one
beats me to it.

--
priority: critical -> release blocker

___
Python tracker 

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



[issue4151] Separate build dir broken

2009-02-12 Thread Matthias Klose

Matthias Klose  added the comment:

still seen on the 2.6 branch. applying r69374 on the branch doesn't fix
it there.

--
nosy: +doko
resolution: fixed -> 
status: closed -> open
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



[issue637094] print to unicode stream should __unicode

2009-02-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

On 2009-02-12 14:22, STINNER Victor wrote:
> STINNER Victor  added the comment:
> 
>> Python3 fixes the "print" statement to be a function, which allows
>> much better extensibility of the concept.
>>
>> You can have the same in Python2 with a little effort: just create
>> your own myprint() function and have it process Unicode in whatever
>> way you want.
> 
> About myprint(): sure, it's possible to write a custom issue. But the feature 
> request was to use obj.__unicode__() instead of obj.__str__() for an "unicode 
> aware stream".
> 
> The problem with Python2 is that there is not clear separation between "bytes 
> stream" ("raw stream"?) and "unicode aware stream" (like io.open or 
> codecs.open). I think that fixing this issue (#637094) was one of the goal of 
> the new I/O library (io in Python3).

True, but the point of the original request was that the stream
should decide how to print the object, ie. you pass the object to
the stream's .write() method instead of first running str() on
it and then passing this to the .write() method.

This is easy to have using a custom print function and indeed
a good way to proceed if you want to port to Python3 at some
later point.

> Using __unicode__() for some object and __str__() for some other sounds 
> strange/dangerous to me. I prefer bytes-only stream or unicode-only stream, 
> but not bytes-and-sometimes-unicode stream.

If you use a StreamWriter instance in Python2 which uses one of
the Unicode codecs, then it will accept ASCII strings or Unicode
as input for .write(), ie. the stream decides on how to process
the input.

> Python2 has only bytes stream. Python3 has both: open(name, 'rb') is bytes 
> only, and open(name, 'r') is unicode only.

That's not entirely correct. Python2's codecs.py module provides
streams which can implement several different type combinations
for input and output.

> lemburg> Does your message mean that you want to reopen the issue?

No, I just wanted to correct your statement :-)

___
Python tracker 

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



[issue4751] Patch for better thread support in hashlib

2009-02-12 Thread Lukas Lueg

Lukas Lueg  added the comment:

yes, I got lost on that one. I'll create a patch for 2.7 tonight.

___
Python tracker 

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



[issue5228] multiprocessing not compatible with functools.partial

2009-02-12 Thread ndbecker

New submission from ndbecker :

from multiprocessing import Pool

def power (x, pwr=2):
return x**pwr

import functools
run_test = functools.partial (power, pwr=3)

if __name__ == "__main__":

pool = Pool()
cases = [3,4,5]
results = pool.map (run_test, cases)

TypeError: type 'partial' takes at least one argument
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-
self.run()
  File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-
self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-
task = get()
  File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-
return recv()
TypeError: type 'partial' takes at least one argument

--
components: Library (Lib)
messages: 81766
nosy: jnoller, ndbecker
severity: normal
status: open
title: multiprocessing not compatible with functools.partial
type: behavior
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



[issue5228] multiprocessing not compatible with functools.partial

2009-02-12 Thread Jesse Noller

Changes by Jesse Noller :


--
assignee:  -> jnoller
nosy: +christian.heimes

___
Python tracker 

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



[issue5228] multiprocessing not compatible with functools.partial

2009-02-12 Thread Jesse Noller

Jesse Noller  added the comment:

See this mail thread:
http://mail.python.org/pipermail/python-dev/2009-February/086034.html

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

> Though I prefer you switch to x ^= x >> 4.

Okay, how about this one?  Short and sweet.  No loss of information
except when sizeof(void *) > sizeof(long) (unavoidable until someone
finds a way to fit all 64-bit pointers into a 32-bit integer type...)

Added file: http://bugs.python.org/file13054/pointer_hash5.patch

___
Python tracker 

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



[issue5194] OS X IDLE.app and bin/idle: missing/extra menu options

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've fixed this for 3.1 in r69532. Fixed for 3.0 in r69533 (backport of 
the other patch).

The actual checkin is based on "patch-nad0014-py3k-30.txt", but with some 
minor tweaks (I use "idlelib.macosxSupport.runningAsOSXApp" throughout, 
instead of sometimes doing the same check by hand).

--
nosy: +ronaldoussoren
resolution:  -> accepted

___
Python tracker 

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



[issue5195] OS X IDLE.app and bin/idle: incorrect key defaults in 3.x

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Applied the patch as r69534 (3.1) and r69534 (3.0)

--
nosy: +ronaldoussoren
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5196] OS X IDLE.app: may not launch on 3.x

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Applied as r69536 (3.1) and r69537 (3.0)

--
nosy: +ronaldoussoren
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I don't like this patch because it could grow the users profile without 
bounds when switching back and forth between two python versions.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue5226] OS X installer: Welcome and Readme files are out-of-date

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Applied patch for 3.1 (r69538) and 3.0 (r69539).

--
nosy: +ronaldoussoren
resolution:  -> accepted

___
Python tracker 

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



[issue5226] OS X installer: Welcome and Readme files are out-of-date

2009-02-12 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
status: open -> closed

___
Python tracker 

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



[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've applied both the fix and tests in r69540 (3.1) and r69541 (3.0)

--
status: open -> closed

___
Python tracker 

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



[issue3883] Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their text.

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've committed the ronald-configDialog.patch to 3.1 and 3.0. This does 
mostly the same as Kevin's patch, but only on OSX (that is, I check for 
OSX and don't add the padding arguments in that case). 

I haven't applied Kevin's patch as is because I don't know if that will 
break other platforms and the 3.0.1 release is very near. 

Committed as r69542 (3.1) and r69543 (3.0)

Still need to commit the same patch for 2.6

--
nosy: +ronaldoussoren
resolution:  -> accepted
Added file: http://bugs.python.org/file13055/ronald-configDialog.patch

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Committed as r69544 (3.1) and r69545 (3.0)

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-12 Thread Jim Baker

Jim Baker  added the comment:

Ideally packages should not need to add "optimize=1" to their setup.cfg, 
as this currently breaks Jython compatibility. This is because Jython, 
including 2.5, does not support the -O flag.

--
nosy: +jbaker

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Okay, how about this one? 

Apart from the misindentation (the file should use tabs not spaces),
have you run the benchmark script with it?

___
Python tracker 

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



[issue5226] OS X installer: Welcome and Readme files are out-of-date

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

reopened because this issue was only fixed for python 3.x

--
status: closed -> open

___
Python tracker 

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



[issue5210] zlib does not indicate end of compressed stream properly

2009-02-12 Thread Travis Hassloch

Travis Hassloch  added the comment:

Here is a patch which adds a member called is_finished to decompression
objects that allows client code to know when it has reached the end of
the compressed stream.

--
keywords: +patch
Added file: http://bugs.python.org/file13056/zlibmodule.diff

___
Python tracker 

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



[issue5224] OS X installer: "Update Shell Profile" script is not updated

2009-02-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Reopened the issue because it is only fixed for 3.x at the moment.

--
status: closed -> open

___
Python tracker 

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



[issue2263] struct.pack() + numpy int raises SystemError

2009-02-12 Thread engelbert gruber

engelbert gruber  added the comment:

Including Py_TPFLAGS_INT_SUBCLASS in numpy's BASEFLAGS cures this.
This is an external problem then.
But I could not find any reference to Py_TPFLAGS_*_SUBCLASS in the
documentation, that is a python problem.

___
Python tracker 

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



[issue2263] struct.pack() + numpy int raises SystemError

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Ok, so Python has to improve its C-API documentation, and numpy to fix
its int types :)

--
assignee:  -> georg.brandl
components: +Documentation -Library (Lib)
nosy: +georg.brandl, pitrou
priority:  -> normal
versions: +Python 2.6, Python 3.0, Python 3.1 -Python 2.5

___
Python tracker 

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



[issue1537445] urllib2 httplib _read_chunked timeout

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Should this one be closed and docs discussed in a new one? Volunteers? :)

--
assignee:  -> georg.brandl
components: +Documentation, Library (Lib) -None
nosy: +ajaksu2, georg.brandl, orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
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



[issue1448934] urllib2+https+proxy not working

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
dependencies: +Added HTTP{,S}ProxyConnection
nosy: +orsenthil
stage:  -> test needed
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



[issue1595365] User-agent header added by an opener is "frozen"

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib) -None
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue1520831] urrlib2 max_redirections=0 disables redirects

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

rus_r_orange: Can you share your patch and tests?

--
nosy: +ajaksu2, orsenthil
stage:  -> test needed
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



[issue1160328] urllib2 post error when using httpproxy

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue1368312] fix for scheme identification in urllib2?

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
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



[issue979407] urllib2 digest auth totally broken

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib) -None
dependencies: +urllib2 doesn't handle username/password in url
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
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



[issue1508475] transparent gzip compression in liburl2

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib)
nosy: +orsenthil
stage:  -> test needed
type:  -> feature request
versions: +Python 2.7 -Python 2.4

___
Python tracker 

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



[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Patch has docs, tests needed.

--
nosy: +ajaksu2, orsenthil
stage:  -> test needed
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



[issue4894] Docs for urllib.request.HTTPRedirectHandler.redirect_request missing "hdrs" paramether

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
keywords: +easy
nosy: +orsenthil
stage:  -> patch review
title: documentaion doesn't include parameter in 
urllib.request.HTTPRedirectHandler.redirect_request -> Docs for 
urllib.request.HTTPRedirectHandler.redirect_request missing "hdrs" paramether
type:  -> feature request

___
Python tracker 

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



[issue3244] multipart/form-data encoding

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
dependencies: +Support iterable bodies in httplib
keywords: +easy
nosy: +orsenthil
stage:  -> test needed

___
Python tracker 

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



[issue3066] FD leak in urllib2

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Has (non-unittest) test and proposed (non-diff) patch inline.

--
nosy: +ajaksu2, orsenthil
stage:  -> test needed
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil

___
Python tracker 

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



[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


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



[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Tests -Library (Lib)
nosy: +orsenthil
stage:  -> test needed
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



[issue1453973] addheaders for urlopen / open / xxxx_open

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue1519816] urllib2 proxy does not work in 2.4.3

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue3702] test_urllib2.test_trivial fails when run from another Windows drive

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed

___
Python tracker 

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



[issue2244] urllib and urllib2 decode userinfo multiple times

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
versions: +Python 3.0 -Python 2.5

___
Python tracker 

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



[issue5228] multiprocessing not compatible with functools.partial

2009-02-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Rather than implement a multiprocessing-specific fix, it would certainly
be better to make functools.partial picklable, as pointed out in the ML
thread Jesse linked to.

--
nosy: +pitrou

___
Python tracker 

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



[issue5228] multiprocessing not compatible with functools.partial

2009-02-12 Thread Jesse Noller

Jesse Noller  added the comment:

> Antoine Pitrou  added the comment:
>
> Rather than implement a multiprocessing-specific fix, it would certainly
> be better to make functools.partial picklable, as pointed out in the ML
> thread Jesse linked to.
>

I would tend to agree

___
Python tracker 

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



[issue4998] __slots__ on Fraction is useless

2009-02-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

Merged (manually) to py3k in r69547;  svnmerged to 3.0 and 2.6 in r69548, 
r69549.

--
status: open -> closed

___
Python tracker 

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



[issue618023] imap handler in urllib(2)

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Does imaplib cover this?

--
components: +Library (Lib) -Extension Modules
nosy: +ajaksu2, orsenthil
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue1285440] Digest Authentication not working in all cases

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib) -Extension Modules
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.4

___
Python tracker 

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



[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib) -None
nosy: +orsenthil
stage:  -> test needed
title: prompt_user_passwd() in FancyURLopener -> prompt_user_passwd() in 
FancyURLopener masks 401 Unauthorized error page
type:  -> behavior
versions: +Python 2.6, Python 3.0 -Python 2.5

___
Python tracker 

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



[issue1634770] Please provide rsync-method in the urllib[2] module

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker 

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



[issue1682241] Problems with urllib2 read()

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Patch has tests too (might need updating).

--
nosy: +ajaksu2, orsenthil
stage:  -> patch review
type:  -> behavior
versions: +Python 2.6 -Python 2.5

___
Python tracker 

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



[issue1682241] Problems with urllib2 read()

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


___
Python tracker 

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



[issue1682241] Problems with urllib2 read()

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage: patch review -> test needed

___
Python tracker 

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



[issue1673007] urllib2 requests history + HEAD support

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Patch has tests too, might need updating.

:)

--
nosy: +ajaksu2, orsenthil
stage:  -> patch review
type:  -> feature request
versions: +Python 2.7 -Python 2.6

___
Python tracker 

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



[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
dependencies: +urllib2 POSTs on redirect
nosy: +orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6, Python 3.0 -Python 2.4

___
Python tracker 

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



[issue1067702] urllib fails with multiple ftps

2009-02-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

OP supplied a detailed test. Needs confirmation.

--
nosy: +ajaksu2, orsenthil
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.3

___
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

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +orsenthil
stage:  -> test needed

___
Python tracker 

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



  1   2   3   >