[issue2922] "No windows home dir" doc error

2008-05-19 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

The problem is that any modern Windows does not just have a single home
directory for a user, but many of them. For example, there are the
HOMEDRIVE, HOMESHARE, and HOMEPATH variables, which may or may not be set.

In the light of these, I would argue that USERPROFILE is *not* the
user's "home" directory - it is the user's "profile" directory.

So I think that the text is practically correct as it stands.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2882] Create the html package

2008-05-19 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. <[EMAIL PROTECTED]> added the comment:

Python 2.6 changes reverted in revision 63481.

Does anyone really want to pickle HTML parser state, or references to
the helper functions in the htmlentitydefs module?  I suspect head
examinations may be in order.  :-(

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

__
Tracker <[EMAIL PROTECTED]>

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



[issue2928] Allow set/frozenset for __all__

2008-05-19 Thread Adam Olsen

New submission from Adam Olsen <[EMAIL PROTECTED]>:

Patch allows any iterable (such as set and frozenset) to be used for
__all__.

I also add some blank lines, making it more readable.

--
files: python-importall.diff
keywords: patch
messages: 67104
nosy: Rhamphoryncus
severity: normal
status: open
title: Allow set/frozenset for __all__
Added file: http://bugs.python.org/file10384/python-importall.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2927] expose html.parser.unescape

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The plan is to add html.escape(). Adding html.unescape() wouldn't hurt.

--
nosy: +brett.cannon

__
Tracker <[EMAIL PROTECTED]>

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



[issue2927] expose html.parser.unescape

2008-05-19 Thread Tom Pinckney

New submission from Tom Pinckney <[EMAIL PROTECTED]>:

There is currently a private method inside of html.parser.HTMLParser to 
unescape HTML &...; style escapes. This would be useful to expose for 
other users who want to unescape a piece of HTML.

Additionally, many websites don't use proper unicode or iso-8859-1 
encodings and accidentally use Microsoft Code Page 1252 extensions. I 
added code to map these to their appropriate unicode values.

The unescaping logic was slightly simplified too.

This is my first Python patch submission, so please let me know if I've 
done anything wrong.

A new test case was also added for this functionality.

--
components: Library (Lib)
files: unescape.diff
keywords: patch
messages: 67102
nosy: thomaspinckney3
severity: normal
status: open
title: expose html.parser.unescape
type: feature request
versions: Python 2.6
Added file: http://bugs.python.org/file10383/unescape.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Write UserDict fixer for 2to3

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The that needs to be added to 2to3.

--
status: closed -> open
title: Backport UserDict move in 3.0 -> Write UserDict fixer for 2to3

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Backport UserDict move in 3.0

2008-05-19 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

The DictMixin class gets renamed to collections.MutableMapping.  So, it 
is just another 2-to-3 converter job.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-19 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Create the html package, Moving lib-tk to tkinter package, 
Rename repr to reprlib, Revert ConfigParser rename in 2.6, Revert Queue rename 
in 2.6, Revert SocketServer rename in 2.6, Revert copy_reg rename in 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2839] Moving lib-tk to tkinter package

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The changes in 2.6 need to be reverted, leaving only a note in the docs.

--
nosy: +brett.cannon
resolution: accepted -> 
status: closed -> open

__
Tracker <[EMAIL PROTECTED]>

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



[issue2882] Create the html package

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The changes in 2.6 need to be reverted, leaving only a note in the docs.

--
resolution: fixed -> 
status: closed -> open
versions:  -Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2880] Rename repr to reprlib

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The rename of repr in 2.6 needs to be removed with only a note in the docs 
to remain.

--
resolution: fixed -> 
status: closed -> open
versions:  -Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2926] Revert SocketServer rename in 2.6

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The rename of SocketServer in 2.6 needs to be reverted; only a note in the 
docs should remain.

--
components: Library (Lib)
messages: 67096
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Revert SocketServer rename in 2.6
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2925] Revert Queue rename in 2.6

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The rename of Queue in 2.6 needs to be reverted with only a note in the 
docs to remain.

--
components: Library (Lib)
messages: 67095
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Revert Queue rename in 2.6
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2924] Revert copy_reg rename in 2.6

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The rename of copy_reg in 2.6 needs to reverted, leaving on a note in the 
docs.

--
components: Library (Lib)
messages: 67094
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Revert copy_reg rename in 2.6
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2923] Revert ConfigParser rename in 2.6

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

The rename of ConfigParser in 2.6 needs to be reverted. Only a note in the 
docs should remain.

--
components: Library (Lib)
messages: 67093
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Revert ConfigParser rename in 2.6
type: behavior
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2879] Rename _winreg to winreg

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

The rename is now mostly a 3.0 thing.

--
versions:  -Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2877] Backport UserString move from 3.0

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Is MutableString in the UserString module (and any other class) properly 
handled in 2.6 for transitioning to 3.0?

And there is currently no fixer for UserString (same for UserDict).

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Backport UserDict move in 3.0

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

And it is a release blocker as we are trying to get all deprecations into 
b1.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2876] Backport UserDict move in 3.0

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

You only kept the UserDict class, right? Well, that means you need to 
deprecate DictMixin and any other classes in that module.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2875] Rename the thread module to _thread

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Renames are only occurring in 3.0, not 2.6.

--
versions:  -Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2861] Patch to rename markupbase to _markupbase

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

This does not need to happen in 2.6; only 3.0.

--
versions: +Python 3.0 -Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2621] rename test_support to support

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

No renames will occur in 2.6, only in 3.0, which means this can happen 
whenever.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Because of pickle compatibility in 2.x, all renames in the trunk need to 
be reverted. Work in 3.0 is still fine and won't be touched.

I have already updated the PEP with the new steps required for renames.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1574217] isinstance swallows exceptions

2008-05-19 Thread Neal Norwitz

Neal Norwitz <[EMAIL PROTECTED]> added the comment:

> I'd like to clarify the approach to fixing these types of problems.
> ...
> However, I like constricting it to AttributeError only as that would
> make it much less confusing. This might be something to bring up on
> python-dev.

I suspect that it might be on a case by case basis whether we want to
constrain more or less.  Bringing these cases up on python-dev should
lead to speedy decisions.

_
Tracker <[EMAIL PROTECTED]>

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



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

2008-05-19 Thread Cameron Simpson

Cameron Simpson <[EMAIL PROTECTED]> added the comment:

Chris, I'm trying your patch out now. My quick reading of it looks ok.

_
Tracker <[EMAIL PROTECTED]>

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



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

2008-05-19 Thread Cameron Simpson

Changes by Cameron Simpson <[EMAIL PROTECTED]>:


--
nosy: +cameron

_
Tracker <[EMAIL PROTECTED]>

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



[issue1775025] zipfile: Allow reading duplicate filenames

2008-05-19 Thread Graham Horler

Graham Horler <[EMAIL PROTECTED]> added the comment:

Updated to latest revision, and converted documentation part of the 
patch to reST.

Removed the line that pointlessly computes 'filepos', as requested by 
Scott Dial.

(Please excuse my reST, I'm new to it and it's getting late).

Added file: http://bugs.python.org/file10382/zipfile_62920.diff

_
Tracker <[EMAIL PROTECTED]>

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



[issue1775025] zipfile: Allow reading duplicate filenames

2008-05-19 Thread Scott Dial

Scott Dial <[EMAIL PROTECTED]> added the comment:

In the patch you commented "why is 'filepos' computed next? It's never
referenced." The answer is that back at r54152 (#1121142) the method was
rewrote removing any reference to 'filepos', but the patch author failed
to remove that line. Please remove it.

--
nosy: +scottdial

_
Tracker <[EMAIL PROTECTED]>

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



[issue1775025] zipfile: Allow reading duplicate filenames

2008-05-19 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
type:  -> feature request
versions: +Python 2.6

_
Tracker <[EMAIL PROTECTED]>

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



[issue2819] Full precision summation

2008-05-19 Thread Jean Brouwers

Changes by Jean Brouwers <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10381/test_math_sum5.py

__
Tracker <[EMAIL PROTECTED]>

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



[issue2819] Full precision summation

2008-05-19 Thread Jean Brouwers

Changes by Jean Brouwers <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10380/cmathmodule5.c.2.6a3.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2819] Full precision summation

2008-05-19 Thread Jean Brouwers

Jean Brouwers <[EMAIL PROTECTED]> added the comment:

Here is another patch for the mathmodule.c and cmathmodule.c files updated 
with the suggested and other modifications.  Note, if FLT_RADIX is not 2, 
the sum functions still exist but will raise a NotImplementedError.

An update of the test script is also attached.  The tests all pass on the 
same 4 Python 2.6a3 builds mentioned before.

/Jean Brouwers

Added file: http://bugs.python.org/file10379/mathmodule5.c.2.6a3.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2922] "No windows home dir" doc error

2008-05-19 Thread John Burnett

Changes by John Burnett <[EMAIL PROTECTED]>:


--
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2921] enable embedding: declare/#define only py* symbols in #includes

2008-05-19 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
components: +Interpreter Core -None

__
Tracker <[EMAIL PROTECTED]>

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



[issue2922] "No windows home dir" doc error

2008-05-19 Thread John Burnett

New submission from John Burnett <[EMAIL PROTECTED]>:

http://docs.python.org/inst/alt-install-windows.html

The above says "Windows has no concept of a user's home directory, and
since the standard Python installation under Windows is simpler than
under Unix, the --prefix option has traditionally been used to install
additional packages in separate locations on Windows."

However, any modern Windows OS does have that concept (i.e. see the
%USERPROFILE% env variable).  Not sure how to best change the above, but...

--
assignee: georg.brandl
components: Documentation
messages: 67079
nosy: georg.brandl, [EMAIL PROTECTED]
severity: normal
status: open
title: "No windows home dir" doc error
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2921] enable embedding: declare/#define only py* symbols in #includes

2008-05-19 Thread Hallvard B Furuseth

New submission from Hallvard B Furuseth <[EMAIL PROTECTED]>:

It can be cumbersome to embed Python in a program which also #includes
a config.h from autoconf, because Python's and the program's autoconf
macros may interfere with each other.  Assuming it compiles at all,
both could define the same features, sometimes the same way and
sometimes differently.  Or one could be compiled with a feature macro
undefined and another with it defined, resulting in binary
incompatibility with the library which was compiled with the macro
undefined.

So one has to do something like: put the Python calls in one set of
files, the calls to the embedding program in another set, and make
them communicate via some glue code.


For this reason, please do not declare/#define symbols other than
those starting with 'py' in the include files that an embedded program
needs.  Thus, do not #include at least pyconfig.h, pymath.h and
pyport.h as they are today.

Or to keep backwards compatibility, wrap such definitions in
#ifndef PYTHON_NAMESPACE_ONLY
which an application can #define before #including Python files.

Instead, you can #define/declare symbols that match the current
autoconf symbols but are prefixed with PY_, and make use of those in
#ifdefs in the include files.  The files defining this can hopefully
be autogenerated, e.g. generate a .c file like

#include "pyconfig.h"
int main() {
#ifdef HAVE_WHATEVER
puts("PY_HAVE_WHATEVER");
#endif
...
}

Things like acosh() from pymath.h which you define if the system lacks
it, could become something like this:

#include  /* get acosh etc */
...
extern double py_acosh(double); /* always present in python */
#if !defined(PYTHON_NAMESPACE_ONLY) && !defined(HAVE_ACOSH)
/* an other package's autoconf might do the same, so hide this
 * if requested */
extern double acosh(double);
#endif
#if !defined(PYTHON_NAMESPACE_ONLY) || defined(HAVE_ACOSH)
#define py_acosh acosh /* optimization - hide wrapper function */
#endif

--
components: None
messages: 67078
nosy: hfuru
severity: normal
status: open
title: enable embedding: declare/#define only py* symbols in #includes
type: feature request
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2008-05-19 Thread Alexandre Vassalotti

Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment:

Overall, the patch looks good. I made a couple of fixes to make the
changes more robust.

--
nosy: +alexandre.vassalotti
priority:  -> normal
type:  -> feature request
Added file: http://bugs.python.org/file10378/symbolic-errno.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2854] Add gestalt back into Python 3.0

2008-05-19 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

This is just a reminder to myself that when this is checked in, I need
to unblock and merge r63460 and r63464.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2898] Add memory footprint query

2008-05-19 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

> I'm torn about the extra slot; I'd rather not add one, but I can't see
> how to make this flexible enough without one.

I think adding a default __sizeof__ implementation into object
(__basicsize__ + len()*__itemsize__), plus overriding that in
subclasses, should do the trick.

Not adding the default into object would cause an exception to be
raised whenever sys.sizeof checks for __sizeof__, which is fairly
expensive.

Having to look __sizeof__ up in the class dictionary, and
creating an argument list, is still fairly expensive (given that the
application we have in mind will apply sizeof to all objects,
repeatedly), however, this being a debugging facility, this overhead is
probably ok.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2920] Patch to print symbolic value or errno in EnvironmentError.__str__()

2008-05-19 Thread Yannick Gingras

New submission from Yannick Gingras <[EMAIL PROTECTED]>:

EnvironmentError and its subclass OSError add the value of errno in 
their error message.  This value is an integer but the specific value 
in an implementation detail and the C runtime recommends that 
programmers use the symbolic values instead.  Ex: one should use 
ENODATA instead of 61.  For the same reason, the Python interpreter 
should try to return the symbolic value or errno when possible.

The attached patch replaces errno in EnvironmentError.__str__() by its 
symbolic value when possible.

--
components: Interpreter Core
files: python-26-sympolic-errno.diff
keywords: patch
messages: 67074
nosy: ygingras
severity: normal
status: open
title: Patch to print symbolic value or errno in EnvironmentError.__str__()
versions: Python 2.6
Added file: http://bugs.python.org/file10377/python-26-sympolic-errno.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-19 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
dependencies: +Merge StringIO/cStringIO in 3.0, Merge profile/cProfile in 3.0, 
merge pickle and cPickle in 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2919] Merge profile/cProfile in 3.0

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

cProfile should go away in 3.0 (as a public module) and just be what 
profile uses when available.

--
components: Library (Lib)
messages: 67073
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Merge profile/cProfile in 3.0
type: behavior
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2918] Merge StringIO/cStringIO in 3.0

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

PEP 3108 calls for StringIO (which is io.StringIO in 3.0) to have an 
accelerated version behind it when available. Alexandre has been working 
on this so assigning to him.

--
assignee: alexandre.vassalotti
components: Library (Lib)
messages: 67072
nosy: alexandre.vassalotti, brett.cannon
priority: release blocker
severity: normal
status: open
title: Merge StringIO/cStringIO in 3.0
type: behavior
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2917] merge pickle and cPickle in 3.0

2008-05-19 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

cPickle should be gone in 3.0 and pickle should have an accelerated 
version behind it, when available.

Alexandre has been working on this (might even be checked in), so 
assigning to him to help track for PEP 3108 work.

--
assignee: alexandre.vassalotti
components: Library (Lib)
messages: 67071
nosy: alexandre.vassalotti, brett.cannon
priority: release blocker
severity: normal
status: open
title: merge pickle and cPickle in 3.0
type: behavior
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2775] Implement PEP 3108

2008-05-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

OK, so it turns out the way renames have been handled breaks pre-existing 
pickles. That means that the stubs in 2.6 will actually have to be the new 
names and not the old ones.

I will work with the stdlib-sig to try to come up with a reasonable way to 
rectify the situation, but until then do NOT check in any rename patches.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2755] IDLE ignores module change before restart

2008-05-19 Thread Mark Veldhuis

Mark Veldhuis <[EMAIL PROTECTED]> added the comment:

Sure, and thank you for your efforts. It will be interesting to see if
it really is the package. If there is anything I can do to test, just
drop a note.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2791] subprocess.py leaks fd in communicate

2008-05-19 Thread Rafael Zanella

Rafael Zanella <[EMAIL PROTECTED]> added the comment:

I don't know a lot about the matter at hand, that's why I'm not gonna
append a patch.

On "_communicate()" after a pipe is read it's closed, doing the same on
"communicate()" seems to solve the issue of the extra pipe:

"""
 if [self.stdin, self.stdout, self.stderr].count(None) >= 2:
stdout = None
stderr = None
if self.stdin:
if input:
self.stdin.write(input)
self.stdin.close()
elif self.stdout:
stdout = self.stdout.read()
+ self.stdout.close()
elif self.stderr:
stderr = self.stderr.read()
+ self.stderr.close()
self.wait()
return (stdout, stderr)

"""

Tested on "Python 2.6a2+ (trunk:62767M, May 19 2008, 13:11:07)".

--
nosy: +zanella

__
Tracker <[EMAIL PROTECTED]>

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



[issue2819] Full precision summation

2008-05-19 Thread Mark Dickinson

Mark Dickinson <[EMAIL PROTECTED]> added the comment:

The latest mathmodule patch (file 10371) looks pretty good to me.  I 
haven't looked at the complex version yet.  A few comments:

 - for setting _do_sum_pow_2 I think you should use ldexp instead of pow;  
there's a much greater chance of pow giving inexact results.

 - trying to support FLT_RADIX != 2 seems futile;  for a start, the whole 
algorithm and its proof would need to be reexamined.  Any code specific to 
FLT_RADIX != 2 would be very difficult to test---all of the Python 
buildbots are IEEE 754, for example.  I'm not sure what the best solution 
is:  perhaps math.sum should only be included when FLT_RADIX = 2, or (even 
better) when IEEE 754 is in use.  It shouldn't be too hard to add autoconf 
tests to detect the float format.

 - there are long lines in _do_sum, in violation of PEP 7;  maybe 
factoring out the memory-management code for the partials array would 
help?

 - it would be nice to have some brief comments before each of the _do_sum 
functions indicating its purpose.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2916] urlgrabber.grabber calls setdefaulttimeout

2008-05-19 Thread Mads Kiilerich

Changes by Mads Kiilerich <[EMAIL PROTECTED]>:


--
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2916] urlgrabber.grabber calls setdefaulttimeout

2008-05-19 Thread Mads Kiilerich

New submission from Mads Kiilerich <[EMAIL PROTECTED]>:

Module docstring says """Setting this option causes urlgrabber to call
the settimeout method on the Socket object used for the request.""" But
actually it temporarily changes the global default timeout. 

If other threads are creating sockets in this short timespan they might
fail in unexpected ways.

There might not be any other easy way to set a timeout. The long term
solution should be to provide a way to do it right. A short term
workaround it to update the documentation to describe current behaviour.

--
components: Library (Lib)
messages: 67066
nosy: kiilerix
severity: normal
status: open
title: urlgrabber.grabber calls setdefaulttimeout
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue2915] PyObject_IsInstance() doesn't find bases named in type(name, bases, dict)

2008-05-19 Thread Stefan Behnel

New submission from Stefan Behnel <[EMAIL PROTECTED]>:

While porting the code that Cython generates to Py3a5 (almost completed,
BTW), I noticed a problem with class creation. We are currently using
this call to create a new class in Py3:

PyObject_CallFunctionObjArgs((PyObject *)&PyType_Type,
 name, bases, dict, NULL);

As an example, I subtype the built-in "list" type like this (Cython code!):

class B(list):
def append(self, *args):
for arg in args:
list.append(self, arg)

which calls type() as shown above with name="B" and bases=(PyList_Type,).

Surprisingly to me, the call to .append() then fails in the method
descriptor code with a type error on "self". I tried calling super(...)
instead, and it gives a similar error. I read through the descriptor
code and the thing that fails here is

PyObject_IsInstance(self, (PyObject *)(descr->d_type))

in line 229 of descrobject.c, which internally calls

PyObject_TypeCheck(inst, (PyTypeObject *)cls)

in line 2543 of abstract.c. The problem here is that this checks the
ob_type, which holds a "type" and not a "B", so it doesn't find the base
type "list" of the "B" type and instead looks through the base types of
"type". The result is that PyObject_IsInstance() does not consider the
result of the above call to type(name, bases, dict) an instance of the
types that were named in "bases".

As this works in Python 2.5.1 and also for equivalent Python code in the
interpreter of Python 3.0a5, I assume that this is a bug in the alpha
version.

--
components: Interpreter Core
messages: 67065
nosy: scoder
severity: normal
status: open
title: PyObject_IsInstance() doesn't find bases named in type(name, bases, dict)
type: behavior
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-05-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

The workaround is actually setting wantobjects to 0, which I doubt
everyone will like. 
I've talked with a tcl developer and some interesting points were raised
from the talk:

1) Looking at typePtr in _tkinter isn't actually good (this is used to
convert the tcl object to a proper python object), because it may not
work always, like in this case. But the person also mentioned he didnt't
know of any good solutions to that problem.
2) Cause of the problem -- most likely: something else in the code that
creates the message box is using the literal string "5" as a
-borderwidth or a -padding or as something else that's passed to a
widget. And the compiler uses the same Tcl_Obj * for that "5" and the
"5" that you pass to [tk_dialog].

Apparently trying to fix this in Python would case some (major?) changes
in _tkinter.

_
Tracker <[EMAIL PROTECTED]>

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



[issue2898] Add memory footprint query

2008-05-19 Thread Guido van Rossum

Guido van Rossum <[EMAIL PROTECTED]> added the comment:

I'm torn about the extra slot; I'd rather not add one, but I can't see
how to make this flexible enough without one.

It should definitely not be a built-in; the sys module is fine though
(e.g. sys.getrefcount() lives there too).

__
Tracker <[EMAIL PROTECTED]>

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



[issue2897] include structmember.h in Python.h

2008-05-19 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

Note that structmember.h pollutes global namespace with macros that do not  
have conventional Py_ or PY_ prefix.  READONLY and RESTRICTED macros seem 
to be most likely to conflict with other code.  I would be -0 on including 
tructmember.h in Python.h if flags macros are not properly renamed.  +0 
otherwise.  T_* macros are probably OK, but T prefix is reminiscent of 
popular (in some circles) Taligent naming conventions:

http://pcroot.cern.ch/TaligentDocs/TaligentOnline/DocumentRoot/1.0/Docs/bo
oks/WM/WM_63.html#HEADING77

--
nosy: +belopolsky

__
Tracker <[EMAIL PROTECTED]>

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



[issue2914] Logging TimedRotatingFileHandler Feature Request

2008-05-19 Thread Val Schmidt

New submission from Val Schmidt <[EMAIL PROTECTED]>:

I would like the TimedRotatingFileHandler in the logging package to 
optionally rotate on UTC time rather than local time. In my world 
(oceanographic research ships) important things like log files must 
always use UTC time rather than relative local time because local time 
changes alot!

Also it would be helpful to be able to configure the end-of-line 
termination explicitly for logging. For example, if one echos log 
entries out a serial port using the StreamHandler, one might want to 
specify \r, \n or some other such thing because of the funny gear on the 
other side of the serial line. The formatter method seems to default to 
\n (which I generally like) but there's no way to change it.

--
messages: 67061
nosy: vschmidt
severity: normal
status: open
title: Logging  TimedRotatingFileHandler Feature Request
type: feature request
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue615772] Tkinter.Misc has no __contains__ method

2008-05-19 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
type:  -> feature request


Tracker <[EMAIL PROTECTED]>


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



[issue2913] idlelib/EditorWindow.py uses xrange()

2008-05-19 Thread Mark Summerfield

New submission from Mark Summerfield <[EMAIL PROTECTED]>:

In Py30a5 idlelib/EditorWindow.py line 292 uses xrange() when it should
use range().

--
components: IDLE
messages: 67060
nosy: mark
severity: normal
status: open
title: idlelib/EditorWindow.py uses xrange()
versions: Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue615772] Tkinter.Misc has no __contains__ method

2008-05-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Can you tell me why anyone would do `option in widget` ? I don't see the
benefit of making tkinter widgets more "dict-like". Do you have some
good use cases ?

--
nosy: +gpolo


Tracker <[EMAIL PROTECTED]>


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



[issue2445] Use The CygwinCCompiler Under Cygwin

2008-05-19 Thread Jeevan Varshney

Jeevan Varshney <[EMAIL PROTECTED]> added the comment:

The following will also let environment variables be passed to the
CygwinCCompiler.

--- orig/sysconfig.py   2008-05-19 00:26:03.953125000 -0700
+++ copy/sysconfig.py   2008-05-19 00:14:51.609375000 -0700
@@ -145,7 +145,7 @@
 Mainly needed on Unix, so we can plug in the information that
 varies across Unices and is stored in Python's Makefile.
 """
-if compiler.compiler_type == "unix":
+if compiler.compiler_type in ("unix", "cygwin"):
 (cc, cxx, opt, cflags, ccshared, ldshared, so_ext) = \
 get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
 'CCSHARED', 'LDSHARED', 'SO')

--
nosy: +jayvee

__
Tracker <[EMAIL PROTECTED]>

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



[issue2849] Remove usage of rfc822 from the stdlib

2008-05-19 Thread Humberto Diogenes

Humberto Diogenes <[EMAIL PROTECTED]> added the comment:

Tried to just replace rfc822.Message with email.message_from_file in 
cgi.py but it didn't work. I still have to figure out how to fix 
FieldStorage.read_multi.

Added file: http://bugs.python.org/file10376/remove_rfc822-cgi-incomplete.py

__
Tracker <[EMAIL PROTECTED]>

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