[issue1963] marshal module is leaking references

2008-02-01 Thread Christian Heimes

Christian Heimes added the comment:

Neal fixed it in r60488

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1963
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2008-02-01 Thread Georg Brandl

Georg Brandl added the comment:

Martin, what do you think?

--
assignee:  - loewis
nosy: +loewis

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1652
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2008-02-01 Thread Colin Watson

Colin Watson added the comment:

To be quite honest I can't think of any incompatibilities that wouldn't
have the basic result of improving matters. I put the migration stuff in
my bug report in case somebody else could, because I don't want the bug
fix to stall on that.

My preference would be for Python to move to behaviour equivalent to
restore_sigpipe=True in the next release, but I would rather that it
gained restore_sigpipe with the wrong default than that it didn't gain
it at all.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1652
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1864] test_locale doesn't use unittest

2008-02-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

I think that we should separate this from #1222, and have two steps:
- first change test_locale, without any modification to localemodule.
- then add features and more tests.

--
nosy: +amaury.forgeotdarc

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1864
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1222] locale.format bug if thousand separator is space (french separator as example)

2008-02-01 Thread Georg Brandl

Georg Brandl added the comment:

Looks good to me.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1222
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue800926] Python version numbers in headers/footers PDF documentation

2008-02-01 Thread Georg Brandl

Georg Brandl added the comment:

Added to Sphinx in r60490.

--
resolution:  - accepted
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue800926

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



[issue1986] io.StringIO allows any parameter

2008-02-01 Thread Georg Brandl

New submission from Georg Brandl:

 x = io.StringIO(1)
 x.read()
'1'

--
components: Extension Modules
messages: 61957
nosy: georg.brandl
priority: high
severity: normal
status: open
title: io.StringIO allows any parameter
type: behavior
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1986
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1864] test_locale doesn't use unittest

2008-02-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well it was how I planned to do it at first (hence this bug entry) :-)
I can still try to split the #1222 patch if it makes things easier (but
does it?).

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1864
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1049816] test_socket PORT conflict with boa-constructor

2008-02-01 Thread Raghuram Devarakonda

Raghuram Devarakonda added the comment:

test_socket.py now seems to use dynamically computed port number so
there should not be any port number conflicts.

--
nosy: +draghuram
resolution:  - out of date
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1049816
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

I think it's worth applying this to 2.5.2 even if the patch is dead
after that.  More unittests are definitely in order.

--
nosy: +gvanrossum
priority: low - normal

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1978
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-02-01 Thread Guido van Rossum

Changes by Guido van Rossum:


--
assignee:  - barry
nosy: +barry

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1975] signals in thread problem

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

Actually I see the same behavior under Linux and OSX: the first ^C
interrupts the select() call, after that ^C is ignored.

--
nosy: +gvanrossum

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1975
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1981] operator is

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

id(a.__abs__) == id(a.__abs__)

has a completely different explanation -- it so happens that the first
instantiation of a.__abs__ is freed after id() is called on it and the
second instantiation happens to reuse that same memory block.

--
nosy: +gvanrossum

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1981
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

I think nobody really cares about freeze any more -- it isn't maintained.

--
nosy: +gvanrossum
priority:  - low

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1985
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1983] Return from fork() is pid_t, not int

2008-02-01 Thread Christian Heimes

Christian Heimes added the comment:

Ryan Stutsman wrote:
 Actually the current trunk of as of this morning (60484) is still broken
 in a couple of ways.  First, converting the pid_t using PyInt is a
 problem  and second the waitpids aren't corrected.  This would cause
 waits on invalid pids.

I'll see what I kind do about it.

Christian

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1983
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1983] Return from fork() is pid_t, not int

2008-02-01 Thread Ryan Stutsman

Ryan Stutsman added the comment:

Actually the current trunk of as of this morning (60484) is still broken
in a couple of ways.  First, converting the pid_t using PyInt is a
problem  and second the waitpids aren't corrected.  This would cause
waits on invalid pids.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1983
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue974019] ConfigParser non-string defaults broken with .getboolean()

2008-02-01 Thread Raghuram Devarakonda

Raghuram Devarakonda added the comment:

With the latest python, get() itself fails with boolean value default. I
tried with this script:

-
from ConfigParser import ConfigParser
cfg = ConfigParser({'var':True})
cfg.add_section('test_section')
print cfg.getboolean('test_section', 'var')
-

and it results in

-
Traceback (most recent call last):
  File t.py, line 4, in module
print cfg.getboolean('test_section', 'var')
  File /localhome/raghu/localwork/cpython/trunk/Lib/ConfigParser.py,
line 349, in getboolean
v = self.get(section, option)
  File /localhome/raghu/localwork/cpython/trunk/Lib/ConfigParser.py,
line 545, in get
return self._interpolate(section, option, value, d)
  File /localhome/raghu/localwork/cpython/trunk/Lib/ConfigParser.py,
line 585, in _interpolate
if %( in value:
TypeError: argument of type 'bool' is not iterable
-

I doubt if it is worth fixing the OP's issue considering that
_interpolate is assuming the value to be string. Can I close this issue?

--
components: +Library (Lib) -None
versions: +Python 2.6


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue974019

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



[issue1090076] Defaults in ConfigParser.get overrides section values

2008-02-01 Thread Raghuram Devarakonda

Raghuram Devarakonda added the comment:

The following two statements from ConfigParser document clearly mention
that what is passed in 'vars' are defaults and defaults come into
picture only when values are not explicitly set.

Default values can be specified by passing them into the ConfigParser
constructor as a dictionary. Additional defaults may be passed into the
get() method which will override all others.

ConfigParser.get(section, option[, raw[, vars]])¶
Get an option value for the named section. All the '%'
interpolations are expanded in the return values, based on the defaults
passed into the constructor, as well as the options vars provided,
unless the raw argument is true.

If we can not change the behaviour (as it will break existing code), we
should explicitly document this fact. Basically, get() looks for options
in the following order:

1) in 'vars'.
2) in the actual section
3) in default section

--
nosy: +draghuram

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1090076
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1090076] Defaults in ConfigParser.get overrides section values

2008-02-01 Thread Raghuram Devarakonda

Changes by Raghuram Devarakonda:


--
components: +Documentation -Library (Lib)
versions: +Python 2.6 -Python 2.3

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1090076
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm against including this in 2.5.2. It reeks of a new feature, and the
code looks like it would risk breaking other apps.

(I'm fine with adding this to 2.6 of course.)

--
nosy: +gvanrossum

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1692335
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1976] pybsddb leak in using cursors

2008-02-01 Thread Gregory P. Smith

Gregory P. Smith added the comment:

yes i'll take a look at this weekend.

jcea is doing his bsddb development in the pybsddb.sf.net project svn
repository for the time being.  I'll be merging his changes back into
the python tree.

We can get him python svn access soon but i wanted to make sure things
were going smoothly first.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1976
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1995] localeconv() does not encode returned strings

2008-02-01 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Some values in the dict returned by localeconv() may be non-ASCII
strings, yet they are not decoded according to the locale's character
set. This can be observed when the currency symbol is the euro sign:

 import locale
 locale.setlocale(locale.LC_MONETARY, 'fr_FR.UTF-8')
'fr_FR.UTF-8'
 locale.localeconv()['currency_symbol']
'\xe2\x82\xac'
 locale.setlocale(locale.LC_MONETARY, 'fr_FR.ISO8859-15')
'fr_FR.ISO8859-15'
 locale.localeconv()['currency_symbol']
'\xa4'

localeconv() is defined in the _locale module, which has no knowledge of
the current encoding - but the locale module does. So we could redefine
localeconv() in locale as a wrapper, to do the proper encoding dance.

--
components: Extension Modules
messages: 61970
nosy: pitrou
severity: normal
status: open
title: localeconv() does not encode returned strings
type: behavior
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1995
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1995] localeconv() does not encode returned strings

2008-02-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here is a patch fixing the problem. Note however that it will make
localeconv() quite slower. Perhaps _locale.localeconv should grow an
encoding parameter instead.

Added file: http://bugs.python.org/file9343/pylocaleconv.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1995
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1983] Return from fork() is pid_t, not int

2008-02-01 Thread Christian Heimes

Christian Heimes added the comment:

Martin v. Löwis wrote:
 If so, Python would now fail to compile under that
 patch. Backporting a change that causes Python to fail
 to compile on some systems is not a good idea.

I added the size comparison to identify systems with sizeof(pid_t) 
sizeof(long).

 If that aspect was fixed also (e.g. by always returning
 long ints on systems where sizeof(pid_t)sizeof(long)),
 a backport would be ok. For a perfect backport, that
 change might still cause a behavior change:  on
 a system where sizeof(pid_t)sizeof(long), yet the
 system only ever uses pid_t values  INT_MAX, people
 would see that the fork return type changes unreasonably;
 a perfect backport would only return longs if the values
 are out of range. This is probably over-cautious, as
 it's fairly unlikely that such systems actually exist.

Your proposal looks sound and good to me, but it involves some work. The
chance would require a new format operator 'p' for argument parsing and
new functions like PyInt_FromPid_t() and PyInt_AsPid_t().

In r60504 I've changed the type for the remaining functions like waitpit
 and getsid to pid_t. It should make it easy to spot the lines that have
to be changed.

Christian

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1983
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1995] localeconv() does not encode returned strings

2008-02-01 Thread Martin v. Löwis

Martin v. Löwis added the comment:

The locale module is completely broken; don't try to work around that
breakage. One option would be to remove it entirely.

--
nosy: +loewis

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1995
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1983] Return from fork() is pid_t, not int

2008-02-01 Thread Martin v. Löwis

Martin v. Löwis added the comment:

 Your proposal looks sound and good to me, but it involves some work. The
 chance would require a new format operator 'p' for argument parsing and
 new functions like PyInt_FromPid_t() and PyInt_AsPid_t().

No, it doesn't require that. You could use conditional compilation
throughout to achieve this, and the function might be more list
int_from_pid_t (i.e. static).

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1983
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1996] float.as_integer_ratio() needs to return fraction in lowest terms

2008-02-01 Thread Raymond Hettinger

New submission from Raymond Hettinger:

Just before the sign bit is restored, add code with the following effect:

while not top1:
top = 1
e += 1

Tests: 
  math.pi -- (884279719003555, 281474976710656)
  7.5 -- (15, 2)
  0.875 -- (7, 8)

--
files: tmp_float_conv.py
messages: 61975
nosy: rhettinger
severity: normal
status: open
title: float.as_integer_ratio() needs to return fraction in lowest terms
Added file: http://bugs.python.org/file9344/tmp_float_conv.py

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1996
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1996] float.as_integer_ratio() needs to return fraction in lowest terms

2008-02-01 Thread Raymond Hettinger

Changes by Raymond Hettinger:


--
assignee:  - jyasskin
components: +Interpreter Core
nosy: +jyasskin
versions: +Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1996
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1997] unicode and string compare should not cause an exception

2008-02-01 Thread Aaron Watters

New submission from Aaron Watters:

As I understand it comparisons between two objects should
always work.  I get this at the interpreter prompt:

Python 2.6a0 (trunk, Jan 11 2008, 11:40:59) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type help, copyright, credits or license for more information.
 unichr(0x)  chr(128)
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0:
ordinal not in range(128)
 

I think the fix for this case is to do something
arbitrary but consistent if possible?

--
components: Interpreter Core
messages: 61976
nosy: aaron_watters
severity: normal
status: open
title: unicode and string compare should not cause an exception
type: behavior
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1997
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1997] unicode and string compare should not cause an exception

2008-02-01 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

The change we did was for == and != comparisons to always work (they now
raise warnings) - mostly because doing otherwise resulted in strange
exceptions when dealing with dictionary lookups. 

However, this was not done for comparisons , =, =,  since these test
for ordering and it's not at all clear what the default outcome should be.

 u'abc' == 'äöü'
UnicodeWarning: Unicode equal comparison failed to convert both
arguments to Unicode - interpreting them as being unequal
False

 u'abc'  'äöü'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0:
ordinal not in range(128)

 1  1j
TypeError: no ordering relation is defined for complex numbers

--
nosy: +lemburg

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1997
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1996] float.as_integer_ratio() needs to return fraction in lowest terms

2008-02-01 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Fixed in revision 60511.

--
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1996
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert

Malte Helmert added the comment:

I can reproduce the bug on trunk (r60511). At first I thought the
behaviour might be caused by the testcase removing items from the
children list while iterating over it, but this is not the case; the
exception is raised upon the first removal already.

Here is a shorter testcase:

from xml.dom import minidom

def testme(xmltext):
node = minidom.parseString(xmltext).documentElement
for child in node.childNodes:
if child.nodeValue == t:
child.nodeValue = 
node.normalize()

child = node.firstChild
while child:
next = child.nextSibling
if child.nodeType == child.TEXT_NODE and child.nodeValue == :
node.removeChild(child)
child = next
return node

print testme(oi/tt/o).toxml()
print testme(oi/t/o).toxml()


The second call to testme fails with an xml.dom.NotFoundErr, but it
should succeed and print oi//o.


While this appears to be a genuine bug, I don't agree with the proposed
fix. I'm not sure if calling removeChild (which mutates self.childNodes)
from within normalize (which iterates over self.childNodes at that time)
is safe, and even if it is, it would make normalize O(N^2) (not taking
into account recursion) where it should be O(N).

--
nosy: +maltehelmert

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1433694
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert

Malte Helmert added the comment:

OK, I think I found the root cause. Node.normalize regenerates the list
of children L with their previousSibling/nextSibling references from
scratch; however, it fails to set the nextSibling reference for the very
last element of L to None at the end. This is necessary iff the last
node in the original child list is removed. The attached patch should
solve the problem.

In cases like this, should I also add a regression test?

Added file: http://bugs.python.org/file9345/MINIDOM-PATCH

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1433694
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert

Malte Helmert added the comment:

Here is a minimal testcase to more clearly expose the root of the
problem, in case a regression test is needed. Without the patch, the
assertion fails.

==
from xml.dom import minidom
node = minidom.parseString(oi/t/o).documentElement
node.childNodes[1].nodeValue = 
node.normalize()
assert node.childNodes[-1].nextSibling == None
==

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1433694
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert

Changes by Malte Helmert:


--
versions: +Python 2.6 -Python 2.4

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1433694
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1997] unicode and string compare should not cause an exception

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

 As I understand it comparisons between two objects should
 always work.

Hi Aaron!  Glad to see you're back.

It used to be that way when you  Jim wrote the first Python book. :-)

Nowadays, comparisons *can* raise exceptions.  Marc-Andre has explained
why.  In 3.0, this particular issue will go away due to a different
treatment of Unicode, but many more cases will raise TypeError when  is
used.  == and != will generally work, though there are no absolute
guarantees.

--
nosy: +gvanrossum
resolution:  - rejected
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1997
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py

2008-02-01 Thread Christian Heimes

Christian Heimes added the comment:

Should freeze be removed if it's no longer maintained? Freeze is partly
used by py2exe and py2app. Maybe the maintainers of the apps can step in
and maintain the parts of the freeze api they require. The rest could
then be deprecated for Python 2.6 and removed from 3.0.

--
nosy: +tiran
versions: +Python 2.5, Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1985
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1998] documentation grammatical error

2008-02-01 Thread Mick Charles Beaver

New submission from Mick Charles Beaver:

On page:
http://docs.python.org/lib/sqlite3-Module-Contents.html

The following:
If you want to use other types, like you have to add support for them
yourself.

Should be:
If you want to use other types, you'll have to add support for them
yourself.

--
components: Documentation
messages: 61985
nosy: mickbeaver
severity: minor
status: open
title: documentation grammatical error
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1998
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1999] wrong tracker

2008-02-01 Thread Mick Charles Beaver

New submission from Mick Charles Beaver:

When I found a small mistake in the documentation, I went to the
following URL, which in turn sent me to SourceForge, which then sent me
to the Roundup bug database.

http://docs.python.org/lib/about.html

--
components: Documentation
messages: 61986
nosy: mickbeaver
severity: urgent
status: open
title: wrong tracker
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1999
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1995] localeconv() does not encode returned strings

2008-02-01 Thread Martin v. Löwis

Martin v. Löwis added the comment:

 Perhaps it is broken - it does look rather fragile - but are there any
 plans to design a replacement?

If people could contribute an ICU wrapper - that would be nice. However,
it's unlikely to happen. So I'll rather rewrite _locale to use wchar_t
functions, and give up on systems where these are not available, or
where wchar_t is not Unicode (not sure how to detect the latter case).

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1995
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1998] documentation grammatical error

2008-02-01 Thread Christian Heimes

Changes by Christian Heimes:


--
assignee:  - georg.brandl
keywords: +easy
nosy: +georg.brandl
priority:  - low
type:  - rfe
versions: +Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1998
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1999] wrong tracker

2008-02-01 Thread Christian Heimes

Changes by Christian Heimes:


--
assignee:  - georg.brandl
nosy: +georg.brandl
priority:  - normal
type:  - rfe

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1999
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1999] wrong tracker

2008-02-01 Thread Martin v. Löwis

Martin v. Löwis added the comment:

This is a duplicate of issue 1462.

--
nosy: +loewis
resolution:  - duplicate
status: open - closed
superseder:  - About this document refers to SourceForge tracker

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1999
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2008-02-01 Thread Bill Janssen

Bill Janssen added the comment:

OK, I'll read it more carefully and compare it to the 2.6 version of the
code.

Bill

On Feb 1, 2008 8:00 AM, Guido van Rossum [EMAIL PROTECTED] wrote:


 Guido van Rossum added the comment:

 I think it's worth applying this to 2.5.2 even if the patch is dead
 after that.  More unittests are definitely in order.

 --
 nosy: +gvanrossum
 priority: low - normal

 __
 Tracker [EMAIL PROTECTED]
 http://bugs.python.org/issue1978
 __


Added file: http://bugs.python.org/file9346/unnamed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1978
__OK, I#39;ll read it more carefully and compare it to the 2.6 version of the 
code.brbrBillbrbrdiv class=gmail_quoteOn Feb 1, 2008 8:00 AM, Guido 
van Rossum lt;a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/agt; 
wrote:br
blockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;brGuido van Rossum added 
the comment:brbrI think it#39;s worth applying this to 2.5.2 even if the 
patch is deadbr
after that. nbsp;More unittests are definitely in 
order.brbr--brnosy: +gvanrossumbrpriority: low -gt; 
normalbrdivdiv/divdiv 
class=Wj3C7cbr__brTracker lt;a 
href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/agt;br
lt;a href=http://bugs.python.org/issue1978; 
target=_blankhttp://bugs.python.org/issue1978/agt;br__br/div/div/blockquote/divbr

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



[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py

2008-02-01 Thread Guido van Rossum

Guido van Rossum added the comment:

Why don't you ask that question on python-dev? Maybe someone volunteers!

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1985
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1514428] NaN comparison in Decimal broken

2008-02-01 Thread Mark Dickinson

Mark Dickinson added the comment:

See issue #1979 for a possible fix.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1514428
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1965] Move trunc() to math module

2008-02-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

Go ahead and fix the docstring. I don't really understand what was
incorrect about the original returns the integral closest to x between
0 and x, so I'm not confident that I'll come up with something you'll like.

--
assignee: jyasskin - rhettinger

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1965
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1965] Move trunc() to math module

2008-02-01 Thread Raymond Hettinger

Raymond Hettinger added the comment:

The latest version in Py2.6 has wording about truncating toward zero.  
This is fine.  Leaving the report closed.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1965
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1965] Move trunc() to math module

2008-02-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

*sigh* That's the version I put there. Did you read the patch before
complaining about it?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1965
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2008-02-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

Whoops, sorry for taking a while to answer. +0 on adding support for
'2.' and '.3', given that they're allowed for float and Decimal. Not +1
because they'll make the regular expression more complicated, and
they're not exactly necessary, but if you want to add them, go ahead.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1682
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1998] documentation grammatical error

2008-02-01 Thread Georg Brandl

Georg Brandl added the comment:

This seems already fixed in SVN.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1998
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com