[issue2297] Patch for fatal stack overflow in Windows caused by -v

2008-03-18 Thread Trent Nelson

Trent Nelson <[EMAIL PROTECTED]> added the comment:

Fixed in r61607, thanks for the report + patch.

--
resolution:  -> accepted
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



[issue2418] Incorrect LaTeX generated (Python 2.6a1)

2008-03-18 Thread Vincent Manis

New submission from Vincent Manis <[EMAIL PROTECTED]>:

The LaTeX code generated by Sphinx in 2.6a1 is incorrect. Some, but not 
all, of the \end{Verbatim}'s come at the ends of lines, rather than on 
lines of their own. Here is an example, at line 435 of reference.tex.

return r# error: inconsistent 
dedent\end{Verbatim}

Each occurrence of this construction results in the `make all-pdf'  
failing. 

Also, at approximately line 42051 of library.tex, the environment classdescni 
is undefined.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2290] [PATCH] Update Lib/distutils/sysconfig.py to handle x64 Windows builds living in pcbuild/amd64.

2008-03-18 Thread Trent Nelson

Trent Nelson <[EMAIL PROTECTED]> added the comment:

Fixed in r61606.

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



[issue2418] Incorrect LaTeX generated (Python 2.6a1)

2008-03-18 Thread Vincent Manis

Changes by Vincent Manis <[EMAIL PROTECTED]>:


--
assignee: georg.brandl
components: Documentation tools (Sphinx)
nosy: georg.brandl, vmanis1
severity: normal
status: open
title: Incorrect LaTeX generated (Python 2.6a1)
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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler

Changes by Paul Winkler <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file9763/python_distutils_1180.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler

Changes by Paul Winkler <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9762/python_distutils_1180.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler

Paul Winkler <[EMAIL PROTECTED]> added the comment:

The attached patch implements a command-line option to disable loading
of $HOME/.pydistutils.cfg.

After talking to Martin Loewis, I decided not to implement the override
part, because if it's a one-time thing you can just pass the settings on
the command line; and if you have two configurations you want to use
frequently, you can just use two user accounts.

The hard part was writing tests, since the existing code was untested
and is environment-sensitive. See the comments in the patch re. what I
still don't like about it. I would like to have a less evil test setup
and teardown, but I'm going on vacation tomorrow so I won't be able to
look at this again until April.

--
keywords: +patch
Added file: http://bugs.python.org/file9762/python_distutils_1180.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon

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

Attached is what I think is a completely working version of warnings 
implemented in a mixture of C and Python. I am not worrying about 
documenting the new C APIs I had to add since they are pretty specific 
to internal stuff. Probably should add a leading '_', but I'm tired. =)

I think the fleshed out tests do a pretty good job of testing new code. 
Even if this patch gets held up the tests should definitely get 
backported as is reasonable.

Assigning to Neal to review (hopefully soon).

--
assignee: brett.cannon -> nnorwitz
Added file: http://bugs.python.org/file9761/c_warnings.diff

_
Tracker <[EMAIL PROTECTED]>

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



[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9667/c_warnings.diff

_
Tracker <[EMAIL PROTECTED]>

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



[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9490/c_warnings.diff

_
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

Removed earlier version

--
nosy: +tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9754/posix-strerror.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, checked in the last piece -- fixer for filter -- in r61598.

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



[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-18 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


--
title: Integer floor division (//): small int check omitted -> [py3k] Integer 
floor division (//): small int check omitted

__
Tracker <[EMAIL PROTECTED]>

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



[issue2417] Integer floor division (//): small int check omitted

2008-03-18 Thread Terry J. Reedy

New submission from Terry J. Reedy <[EMAIL PROTECTED]>:

Python 3.0a3 (r30a3:61161, Mar  1 2008, 22:51:17) [MSC v.1500 32 bit
(Intel)] on win32

>>> a,b=1,1//1
>>> a is b
False

IDLE 3.0a3 
>>> a,b=1,1//1
>>> a is b
True

ditto for 2.5.2 interpreter   

On c.l.p, Duncan Booth wrote
I've had a look to see why this happens: long division (and in Python 3
all integers are longs) allocates a new long to hold the result of the
division so it will never use one of the preallocated 'small int' values.

That maybe explains the change from 2.5 but not the difference from
IDLE.  More important, the small int checks are present with the other
operations:
>>> 1*1 is 1
True
>>> 1+1 is 2
True
>>> 1-1 is 0
True
>>> 1**1 is 1
True

so the omission with // is plausibly a bug.

--
components: Interpreter Core
messages: 64037
nosy: tjreedy
severity: normal
status: open
title: Integer floor division (//): small int check omitted
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



[issue2400] from .foo import * should work

2008-03-18 Thread Martin v. Löwis

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

This is now fixed in r61595.

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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch, based on the previous patches, that fixes the stdlib 
to use optional_import where ImportError was raised.

These need testing on various platforms to make sure all the 
ImportErrors are caught.  I'm on x86 Linux.

Added file: http://bugs.python.org/file9760/issue2409.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue1811] True division of integers could be more accurate

2008-03-18 Thread Terry J. Reedy

Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

To my mind, the inaccurate result is a bug that should be fixed.

Note: (3.0a3)
>>> 10e40/10e39
10.0

The rationale for the division change is that (as far as reasonably
possible) arithmetic operations with same values should give same result
regardless of types.

I have not looked at either algorithm, but if long/long started by
finding divmod(), but added fractional value when remainer is non-zero
instead of tossing it, exact quotients would easily be exact (unless too
large).

--
nosy: +tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Added to future_builtins in r61587.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

The previous winreg refactor patch didn't catch all the changes; 
attaching a new patch that fixes everything, with help from Trent 
Nelson.

Added file: http://bugs.python.org/file9759/winreg-refactor.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Martin v. Löwis

Changes by Martin v. Löwis <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9757/winreg-refactor.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2416] % string formatting does not support %b

2008-03-18 Thread Eric Smith

New submission from Eric Smith <[EMAIL PROTECTED]>:

PEP 3127 "Integer Literal Support and Syntax" says that % string
formatting should support %b.  This needs to be added to both 2.6 and
3.0.  It needs to support the forms %b and %#b.

--
assignee: eric.smith
components: Interpreter Core
messages: 64031
nosy: eric.smith
priority: normal
severity: normal
status: open
title: % string formatting does not support %b
type: behavior
versions: Python 2.6, 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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch that refactors the test_sunaudiodev.py imports.

Added file: http://bugs.python.org/file9758/sunaudiodev-refactor.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch that removes ``from _winreg import *`` in 
test_winreg.py, which will allow usage of optional_import.

Added file: http://bugs.python.org/file9757/winreg-refactor.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2415] bytes() should respect __bytes__

2008-03-18 Thread Barry A. Warsaw

New submission from Barry A. Warsaw <[EMAIL PROTECTED]>:

The bytes() builtin should respect an __bytes__() converter if it exists.
E.g. instead of

>>> class Foo:
...  def __bytes__(self): return b'foo'
... 
>>> bytes(Foo())
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'Foo' object is not iterable
>>> 

bytes(Foo()) should return b'foo'

Here's one use case.  email.header.Header instances represent email headers
(naturally) that conceptually are bytes, but also have a string
representation.  Say for example, a Subject header comes across the wire in
RFC 2033 encoded utf-8.  The unicode representation would be the value
of the
header decoded according to the RFC.  The bytes representation would be the
raw bytes seen on the wire.

The most natural way to retrieve each representation would be

>>> header = msg['subject']
>>> str(header)
'some string with non-ascii'
>>> bytes(header)
b'the rfc 2033 encoded raw header value'

--
components: Interpreter Core
messages: 64027
nosy: barry
priority: normal
severity: normal
status: open
title: bytes() should respect __bytes__
type: feature request
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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch that implements optional_import().

The only arg included from __import__ is fromfile, as it's the only one 
I needed to fix up the stdlib.

--
keywords: +patch
nosy: +jeff.balogh
Added file: http://bugs.python.org/file9756/optional_import.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2414] Fix implicit relative imports

2008-03-18 Thread Martin v. Löwis

New submission from Martin v. Löwis <[EMAIL PROTECTED]>:

There should be a fixer that changes

from foo import bar

into

from .foo import bar

if the import occurs in a package and foo is in the very same package.

Likewise, it should change

import foo

to

from . import foo

--
assignee: David Wolever
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64026
nosy: David Wolever, loewis
severity: normal
status: open
title: Fix implicit relative imports

__
Tracker <[EMAIL PROTECTED]>

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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Skip Montanaro

Skip Montanaro <[EMAIL PROTECTED]> added the comment:

How will this work if I use a build directory?  For example,
my source is in ~/src/python/trunk.  In there I create a
build directory.  When I run it I get

% pwd
/Users/skip/src/python/trunk/build
% ./python.exe ../Tools/coverage/coverage.py 
Running tests...
Traceback (most recent call last):
  File "figleaf-latest/bin/figleaf", line 4, in 
figleaf.main()
  File
"/Users/skip/src/python/trunk/build/figleaf-latest/figleaf/__init__.py",
line 302, in main
execfile(sys.argv[0], __main__.__dict__)
IOError: [Errno 2] No such file or directory: '../../Lib/test/regrtest.py'
Generating html...
CANNOT OPEN: @test
figleaf: HTML output written to ../../coverage

I think this mode should work.  I prefer not to pollute my
source tree with build information.

Skip

--
nosy: +skip.montanaro

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky

New submission from Alexander Belopolsky <[EMAIL PROTECTED]>:

ISO/ANSI C strerror indicates out of range error by setting errno, but 
existing code incorrectly checks for NULL return value.  Attached patch 
(tested n Mac OS X) makes  os.strerror raise ValueError for out of range 
argument.

--
files: posix-strerror.diff
keywords: patch
messages: 64023
nosy: belopolsky
severity: normal
status: open
title: os.strerror does not check for out of range argument
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9754/posix-strerror.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky

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

Please ignore the first patch.  I don't have enough permissions to remove 
it.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file9755/posix-strerror.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky <[EMAIL PROTECTED]>:


--
components: +Extension Modules

__
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-03-18 Thread Christopher Li

Christopher Li <[EMAIL PROTECTED]> added the comment:

Hi,

I am working on a patch to implement the https proxy support for
urllib2. It works fine for me, but feel free to change the patch.

Can any one take a look please?


Thanks

--
nosy: +chrisl
Added file: http://bugs.python.org/file9753/http-tunnel-urllib

_
Tracker <[EMAIL PROTECTED]>

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



[issue1581] xmlrpclib.ServerProxy() doesn't use x509 data

2008-03-18 Thread Bill Janssen

Bill Janssen <[EMAIL PROTECTED]> added the comment:

No test case.  No provision for client validation of server certificate.

--
resolution:  -> rejected

__
Tracker <[EMAIL PROTECTED]>

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



[issue1751] Fast BytesIO implementation + misc changes

2008-03-18 Thread Alexandre Vassalotti

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

Here is a patch against the latest trunk (r61578) that includes the
accelerator module of io.BytesIO with its test suite. The patch also
changes the behavior of the truncate method to imply a seek(). Please
review!

Added file: http://bugs.python.org/file9752/bytesio+misc-fixes-3.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2411] test_nis.py fails if NIS is not configured or used

2008-03-18 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
assignee:  -> brett.cannon
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



[issue2407] warnings.filterwarnings() not isolated between tests

2008-03-18 Thread Jerry Seutter

Jerry Seutter <[EMAIL PROTECTED]> added the comment:

Improved version of the patch that uses context manager to restore old
warning state

Added file: http://bugs.python.org/file9751/warnings_fix_v2.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1633807] from __future__ import print_function

2008-03-18 Thread Eric Smith

Eric Smith <[EMAIL PROTECTED]> added the comment:

Checked in as r61577.

--
resolution:  -> accepted
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



[issue2412] Check 2to3 for support of print function.

2008-03-18 Thread Eric Smith

New submission from Eric Smith <[EMAIL PROTECTED]>:

Issue 1633807 is a backport of the print function to 2.6, using a
__future__ import.  Once it is committed, we need to ensure that 2to3
does the right thing (namely, nothing) with print functions in modules
that have the __future__ import.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64017
nosy: collinwinter, eric.smith
priority: normal
severity: normal
status: open
title: Check 2to3 for support of print function.
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



[issue2411] test_nis.py fails if NIS is not configured or used

2008-03-18 Thread Michael Bishop

New submission from Michael Bishop <[EMAIL PROTECTED]>:

Instead of failing the test which is inaccurate, the test will return
that it was skipped and what the msg is.

--
components: Tests
files: test_nis.patch
keywords: patch
messages: 64016
nosy: MichaelBishop
severity: normal
status: open
title: test_nis.py fails if NIS is not configured or used
type: behavior
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9750/test_nis.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2349] Py3K warn against assigning to True/False

2008-03-18 Thread Raymond Hettinger

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

Back to Brett for application.

--
assignee: rhettinger -> brett.cannon

__
Tracker <[EMAIL PROTECTED]>

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



[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-18 Thread Raymond Hettinger

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

Checked-in r61576

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



[issue2357] sys.exc_{type, values, traceback} should raise a Py3K warning

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch that provides fixers for sys.exc_
{type,value,traceback}

Added file: http://bugs.python.org/file9749/issue2357.diff

__
Tracker <[EMAIL PROTECTED]>

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




[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Simon Percivall

Simon Percivall <[EMAIL PROTECTED]> added the comment:

It's still a problem, as the test case demonstrates.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2367] Fixer to handle new places where parentheses are needed

2008-03-18 Thread Taek Joo Kim

Taek Joo Kim <[EMAIL PROTECTED]> added the comment:

This patch handles the conversion.

--
keywords: +patch
nosy: +taicki
Added file: http://bugs.python.org/file9747/i2367.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Simon Percivall

Changes by Simon Percivall <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file9746/test_pprint30_bug.py

__
Tracker <[EMAIL PROTECTED]>

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



[issue2405] Drop w9xpopen and all dependencies

2008-03-18 Thread Martin v. Löwis

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

Tim Peters once commented that w9xpopen cannot go away as long as people 
still use alternative shells (through COMSPEC) that still have the 
original issue that command.com had.

I don't know how relevant that still is, and whether perhaps breakage is 
acceptable if people install odd shells that are not fully compatible with 
cmd.exe.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Neal Norwitz

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

>   * ../../python.exe changed to sys.executable.
>   * Figleaf is 69kb.  It seems to work fine doing it all in one read()
>  call.  Should it be chunked?

At 69kb, nah.  It should be good enough for the first cut.

>   * Optparse isn't used, partially because I'm lazy and partly because
>  I'm not actually parsing the command line, just chopping the first
>  element off and then passing it off to regrtest.py.  It is the job of
>  regrtest.py to parse the command line. <-- My opinion

Oh sorry, I only meant to remove the import since it wasn't used.  I
wasn't secretly trying to get you to do more work (at least not yet).
:-)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2408] types module can be implemented only in Python

2008-03-18 Thread Benjamin Peterson

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

Okay, I removed the _types module in favor of your Python
implementation. Here's the patch.

--
title: types should expose cell object -> types module can be implemented only 
in Python
Added file: http://bugs.python.org/file9745/types_in_python.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Martin v. Löwis

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

> Is it worth keeping generate_tokens as an alias for tokenize, just
> to avoid gratuitous 2-to-3 breakage?  Maybe not---I guess they're
> different beasts, in that one wants a string-valued iterator and the 
> other wants a bytes-valued iterator.

Exactly so - that was the primary rationale for renaming it. It
shouldn't "silently" return something else, but there should be
an explicit clue that you need to port actively.


Tracker <[EMAIL PROTECTED]>


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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Jerry Seutter

Jerry Seutter <[EMAIL PROTECTED]> added the comment:

Thanks for the input.

 * ../../python.exe changed to sys.executable.
 * Figleaf is 69kb.  It seems to work fine doing it all in one read()
call.  Should it be chunked?
 * Optparse isn't used, partially because I'm lazy and partly because
I'm not actually parsing the command line, just chopping the first
element off and then passing it off to regrtest.py.  It is the job of
regrtest.py to parse the command line. <-- My opinion
 * traceless.  I think I should remove the file.  Having tests that fail
don't hurt figleaf, as far as I know, so there isn't much point to
avoiding failing tests.

Uploading a new version of the .zip file that uses sys.executable and
does not use traceless.

I don't know if figleaf works on windows and I don't have a system to
test with.

Added file: http://bugs.python.org/file9744/coverage.zip

__
Tracker <[EMAIL PROTECTED]>

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



[issue2408] types should expose cell object

2008-03-18 Thread Benjamin Peterson

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

I've attached a patch which uses the Amaury's implementation.

>OTOH, you are unlikely to need it. Do you have a use case, or is it just
>to have the full list of types?
Mostly, I want a full list of types.

Added file: http://bugs.python.org/file9743/expose_cell_python.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2408] types should expose cell object

2008-03-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

While I'm at it, the _types module could be removed, because its exports
can easily be replaced by:

GetSetDescriptorType = type(Exception.args)
MemberDescriptorType = type(EnvironmentError.errno)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-03-18 Thread Raymond Hettinger

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

Attaching a small patch to speed-up one easy case.

--
keywords: +patch
Added file: http://bugs.python.org/file9742/isinst.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2408] types should expose cell object

2008-03-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

The following python code retrieves the cell type, and could be added to
types.py:

def _f(x=None):
   def g():
  x
   return g

CellType = type(_f().func_closure[0])

OTOH, you are unlikely to need it. Do you have a use case, or is it just
to have the full list of types?

--
nosy: +amaury.forgeotdarc

__
Tracker <[EMAIL PROTECTED]>

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



[issue2373] Raise Py3K warnings for comparisons that changed

2008-03-18 Thread Steven Bethard

Steven Bethard <[EMAIL PROTECTED]> added the comment:

Resolved in revision 61570. I can't get svnmerge block to work though.
Since the code and method changes are just backports of Python 3,
someone needs to run ``svnmerge.py block -r 61570``.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
nosy: +benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2196] Fix hasattr's exception problems

2008-03-18 Thread Brett Cannon

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

On Tue, Mar 18, 2008 at 4:48 PM, Benjamin Peterson
<[EMAIL PROTECTED]> wrote:
>
>  Benjamin Peterson <[EMAIL PROTECTED]> added the comment:
>
>  Further comments?

I have not looked at the patch yet (and I don't know when I will get to it).

__
Tracker <[EMAIL PROTECTED]>

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



[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Mark Dickinson

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

All tests pass for me on OS X 10.5.2 and SuSE Linux 10.2 (32-bit)!


Tracker <[EMAIL PROTECTED]>


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



[issue2373] Raise Py3K warnings for comparisons that changed

2008-03-18 Thread Steven Bethard

Steven Bethard <[EMAIL PROTECTED]> added the comment:

I took a closer look at sliceobject.c and it looks like both 2.6 and 3.0
compare them basically as tuples. So there don't need to be any warnings
about using < and > since these are still well defined.

I'll have a patch for codeobject.c and methodobject.c soon.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2196] Fix hasattr's exception problems

2008-03-18 Thread Benjamin Peterson

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

Further comments?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Mike Coleman

Mike Coleman <[EMAIL PROTECTED]> added the comment:

[Tracker bounced this the first time...]

> I haven't run it, but just browsing the trunk source, it appears to
>  still be present.  In fact, asynchat.py and asyncore.py have
>  apparently not been changed in two years.  Andrew Kuchling would seem
>  to be the closest to this code (?), since medusa is apparently dead.
>
>  (More broadly, if these modules are going to stay, they really need to
>  be preened and better documented.  It's not at all obvious, for
>  example, how the handle_error, handle_expt, and handle_close functions
>  all fit together.  Is handle_error supposed to call handle_close, or
>  will the modules make that happen internally?  etc.)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Benjamin Peterson

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

I made a little decorator which silences py3k warnings. It could be
useful for test.test_support.

def silence_py3k(func):
def decorator(*args, **kwargs):
warnings.simplefilter("ignore", warnings.DeprecationWarning)
func(*args, **kwargs)
warnings.simplefilter("default", warnings.DeprecationWarning)
if sys.flags_py3kwarning:
return decorator
else:
return func

__
Tracker <[EMAIL PROTECTED]>

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



[issue2410] absolute import doesn't work for standard python modules

2008-03-18 Thread Bruce Frederiksen

New submission from Bruce Frederiksen <[EMAIL PROTECTED]>:

Try this to reproduce error:

$ mkdir -p test/email
$ cd test
$ touch __init__.py email/__init__.py
$ cat < foo.py
from __future__ import absolute_import
import smtplib
!
$ python
>>> import foo
...
  File "/usr/lib/python2.6/smtplib.py", line 46, in 
import email.utils
ImportError: No module named utils

If you rename the email subdirectory, it will find email.utils where it
should find it.

Strangely, this doesn't happen if you have an 'os' subdirectory and try
to import shlex, which does: import os.path ??

--
components: Interpreter Core
messages: 63993
nosy: dangyogi
severity: normal
status: open
title: absolute import doesn't work for standard python modules
type: behavior
versions: Python 2.5, Python 2.6, 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



[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Neal Norwitz

New submission from Neal Norwitz <[EMAIL PROTECTED]>:

Guido mentioned this in python-3000-checkins.  I agree the problem
should be fixed.

"""
I think the automatic skip on ImportError is harmful.

We should add a helper function to test_support so that you can write

foobar = test_support.import_optional('foobar')

and it will skip the test if foobar cannot be imported; all other
failing imports should cause the test to *fail*.

This should be an easy two-part task.
"""

--
components: Tests
messages: 63992
nosy: nnorwitz
priority: high
severity: normal
status: open
title: regrtest should not just skip imports that fail
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



[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-03-18 Thread Raymond Hettinger

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

No doubt it would take some work.  IMO, code for a slot is worth it;
otherwise, many apps will have to pay the price for ABCs even if they
don't use the feature.  For my company, that would deter an upgrade to 2.6.

__
Tracker <[EMAIL PROTECTED]>

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



[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Michael Foord

Michael Foord <[EMAIL PROTECTED]> added the comment:

*Full* patch (excluding the new dependent test text files) for Python 3.
Includes fixes for standard library and tools usage of tokenize.

If it breaks anything blame Trent... ;-)

--
versions:  -Python 2.6
Added file: http://bugs.python.org/file9741/tokenize_patch.diff


Tracker <[EMAIL PROTECTED]>


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



[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Steven Bethard

Steven Bethard <[EMAIL PROTECTED]> added the comment:

Fair enough. I agree that the deprecated APIs should still be tested.
But there are a lot of other warnings, e.g. where the standard lib uses
``has_key`` instead of ``in``. These should be removed. The only
warnings should be those that are actively testing deprecated APIs.

Testing of deprecated APIs should probably temporarily suppress the Py3K
warnings while they're executing, though that's not really crucial.

Reducing the flood of warnings is really worthwhile -- I just fixed a
bug in test_atexit which only appeared when -3 was supplied.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2408] types should expose cell object

2008-03-18 Thread Benjamin Peterson

New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

types currently exposes all types used by the interpreter except cell
objects. This patch adds support for that and adds to the docs. I
couldn't find a way to access the cell type through Python, so I added
it to the _types module.

--
components: Interpreter Core, Library (Lib)
files: expose_cell.patch
keywords: patch
messages: 63988
nosy: benjamin.peterson
severity: normal
status: open
title: types should expose cell object
type: feature request
versions: Python 2.6
Added file: http://bugs.python.org/file9740/expose_cell.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1581] xmlrpclib.ServerProxy() doesn't use x509 data

2008-03-18 Thread Guido van Rossum

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

Let's tentatively say this needs to go into 2.6.  Bill, if in the end
you decide against it, just reject the patch.

--
priority:  -> critical
versions: +Python 2.6 -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



[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-03-18 Thread Guido van Rossum

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

Yeah, but tp_ slots are expensive themselves (mostly in the amount of
code that needs to be changed -- see typeobject.c).

__
Tracker <[EMAIL PROTECTED]>

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



[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Benjamin Peterson

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

No, *correct usage* of the stdlib should not result in Py3k warnings.
Old APIs should still be tested, which I suppose is part of the reason
that there are so many warnings from testing.

--
nosy: +benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2407] warnings.filterwarnings() not isolated between tests

2008-03-18 Thread Jerry Seutter

New submission from Jerry Seutter <[EMAIL PROTECTED]>:

Some tests were not cleaning up warning filters.  Fixed the problem by
making regrtest.py restore default filters before each module is executed.

This exposed other errors which are also fixed in the patch.

The patch only affects test files.

--
components: Tests
files: warnings_fix.patch
keywords: patch, patch
messages: 63984
nosy: jseutter
priority: low
severity: normal
status: open
title: warnings.filterwarnings() not isolated between tests
versions: Python 2.6
Added file: http://bugs.python.org/file9739/warnings_fix.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Guido van Rossum

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

I know nothing about asyncore.  Does this problem still exist in the
trunk (2.6)?

__
Tracker <[EMAIL PROTECTED]>

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



[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Michael Foord

Michael Foord <[EMAIL PROTECTED]> added the comment:

If you remove the following line from the tests (which generates
spurious additional output on stdout) then the problem goes away:


print('testing: %s' % path, end='\n')


Tracker <[EMAIL PROTECTED]>


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



[issue2406] Improvement suggestions for the gzip module documentation

2008-03-18 Thread M.-A. DARCHE

New submission from M.-A. DARCHE <[EMAIL PROTECTED]>:

The documentation for the gzip python module as found at
http://docs.python.org/lib/module-gzip.html could be improved by code
examples. Those examples are really lacking.

Here below are the code snippets I propose. This is inspired by
http://xahlee.org/perl-python/python_doc_gzip.html but done with respect
and with another useful (I think) example.

# Example of how to decompress a file
import gzip
file_obj = gzip.GzipFile('/home/joe/file.txt.gz', 'rb');
file_content = file_obj.read()
file_obj.close()

# Example of how to create a compressed GZIP file
import gzip
file_content = "Lots of content here"
file_obj = gzip.GzipFile('/home/joe/file.txt.gz', 'wb');
file_obj.write(file_content)
file_content.close()

# Example of how to compress an existing file
import shutil
import gzip
file_obj_in = file('/home/joe/file.txt', 'rb')
file_obj_out = gzip.GzipFile('/home/joe/file.txt.gz', 'wb');
shutil.copyfileobj(file_obj_in, file_obj_out)
file_obj_out.close()


Best regards.

--
assignee: georg.brandl
components: Documentation
messages: 63981
nosy: georg.brandl, madarche
severity: normal
status: open
title: Improvement suggestions for the gzip module documentation

__
Tracker <[EMAIL PROTECTED]>

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



[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Mark Dickinson

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

With the patch, 

./python.exe Lib/test/regrtest.py test_tokenize

fails for me with the following output:

Macintosh-2:py3k dickinsm$ ./python.exe Lib/test/regrtest.py test_tokenize
test_tokenize
test test_tokenize produced unexpected output:
**
*** lines 2-5 of actual output doesn't appear in expected output after line 1:
+ testing: 
/Users/dickinsm/python_source/py3k/Lib/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
+ testing: 
/Users/dickinsm/python_source/py3k/Lib/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
+ testing: 
/Users/dickinsm/python_source/py3k/Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
+ testing: 
/Users/dickinsm/python_source/py3k/Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
**
1 test failed:
test_tokenize
[65880 refs]

I get something similar on Linux.


Tracker <[EMAIL PROTECTED]>


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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Neal Norwitz

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

Thanks for the patch.  It would be nice to get more instrumentation like
coverage, performance, etc.

Here are some things I noticed while reviewing the patch:

 * This won't work on unix other than OSX.  Can you change
../../python.exe to sys.executable?  
 * How big is figleaf?  Should you try to read/write the file in chunks?
 * optparse doesn't seem to be used.
 * Can you change `cat file` to read the file and pass those as
arguments so this could work on windows?

BTW, does figleaf work on Windows?

--
nosy: +nnorwitz

__
Tracker <[EMAIL PROTECTED]>

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



[issue2405] Drop w9xpopen and all dependencies

2008-03-18 Thread Trent Nelson

New submission from Trent Nelson <[EMAIL PROTECTED]>:

Python 2.6+ drops support for Windows 95/98, which removes the need for
w9xpopen.  Get rid of the module and all dependencies (such as in the .msi).

--
assignee: Trent.Nelson
components: Build
messages: 63978
nosy: Trent.Nelson
severity: normal
status: open
title: Drop w9xpopen and all dependencies
type: feature request
versions: Python 2.6, 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



[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> gvanrossum
nosy: +gvanrossum
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2100] unit test UnicodeWarning

2008-03-18 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> mhammond
nosy: +mhammond
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2404] Backport ctypes support for buffer protocol to Python 2.6 (ref issue1971)

2008-03-18 Thread Travis Oliphant

Changes by Travis Oliphant <[EMAIL PROTECTED]>:


--
assignee:  -> theller
components: +ctypes
nosy: +theller
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



[issue2404] Backport ctypes support for buffer protocol to Python 2.6 (ref issue1971)

2008-03-18 Thread Travis Oliphant

New submission from Travis Oliphant <[EMAIL PROTECTED]>:

The ctypes object will support the PEP 3118 buffer protocol.  This
support can be back-ported to Python 2.6

--
messages: 63977
nosy: teoliphant
severity: normal
status: open
title: Backport ctypes support for buffer protocol to Python 2.6 (ref issue1971)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2090] __import__ with fromlist=[''] causes double initialization of modules

2008-03-18 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> brett.cannon
nosy: +brett.cannon
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Jerry Seutter

Jerry Seutter <[EMAIL PROTECTED]> added the comment:

To test:

1. Unzip the zipfile in the base python directory.  The zipfile will
create Tools/coverage*.
2. cd Tools; patch -p0 README.patch
3. cd coverage
4. ../../python.exe coverage.py

The script will download figleaf, then run regrtest.py.  Any extra stuff
on the command line will be supplied to regrtest.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2077] Interpreter crash on shutdown

2008-03-18 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
priority:  -> high

__
Tracker <[EMAIL PROTECTED]>

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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Jerry Seutter

Changes by Jerry Seutter <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file9738/coverage.zip

__
Tracker <[EMAIL PROTECTED]>

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



[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Jerry Seutter

New submission from Jerry Seutter <[EMAIL PROTECTED]>:

This issue adds support for figleaf unit test coverage information.  The
diffs apply against trunk

--
components: Tests
files: README.patch
keywords: patch, patch
messages: 63975
nosy: jseutter
priority: low
severity: normal
status: open
title: Add figleaf coverage metrics
versions: Python 2.6
Added file: http://bugs.python.org/file9737/README.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2076] xmlrpclib closes connection after each call

2008-03-18 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> effbot
nosy: +effbot
priority:  -> normal
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



[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-18 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a patch that operator.{isCallable,sequenceIncludes}, 
including tests.

--
keywords: +patch
Added file: http://bugs.python.org/file9736/issue2370.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Filter has been fixed in r61546.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

I don't know if this is still relevent, if it is please provide a test
that demonstrates it.  I've checked the code and found that the code to
be patched no longer exists.  To me, it looks like it might be resolved.

--
keywords: +patch
nosy: +jafo
priority:  -> normal
resolution:  -> out of date
status: open -> closed
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue1747858] chown broken on 64bit

2008-03-18 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

backported to 2.5 in r61542 and r61544.

it'll go into py3k via the regular merges from trunk.

The fix just changed the int -> long and 'ii' -> 'll' and added unit
test coverage.

The patch attached to this bug was rejected as too complex:  If
conditional treatment of the types is ever needed it should be done at
build time via autoconf and not at runtime.

--
keywords:  -patch
resolution: remind -> fixed
status: open -> closed
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



[issue2392] Sean is testing tracker bug.

2008-03-18 Thread Martin v. Löwis

Changes by Martin v. Löwis <[EMAIL PROTECTED]>:


--
resolution:  -> invalid
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



[issue2392] Sean is testing tracker bug.

2008-03-18 Thread Martin v. Löwis

Changes by Martin v. Löwis <[EMAIL PROTECTED]>:


__
Tracker <[EMAIL PROTECTED]>

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



[issue2048] IRIX: Seg-fault while building tests with gmake on test_xml_etree.

2008-03-18 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Created issue #2401 for the Solaris problem.  Repurposing this issue to
just be the IRIX issue.

--
nosy: +jafo
priority:  -> normal
title: Python 2.5.1 woes on IRIX, Solaris -> IRIX: Seg-fault while building 
tests with gmake on test_xml_etree.
type:  -> compile error

__
Tracker <[EMAIL PROTECTED]>

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



[issue2138] Add a factorial function

2008-03-18 Thread Raymond Hettinger

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

I prefer factorial as a method (like Ruby and Smalltalk).  Given the
usual notation (n!) or pronounciation (n factorial), it is natural to
write this as:  n.factorial().

Compared to  numbits() and isqrt(), a factorial() method is more basic
in that it is self explanatory and everyone knows what it means by the
time they are in middle school.

FWIW, if separate RFEs were opened for numbits() and isqrt(), I would
support their being int methods too.  Their implementations are helped
by access to the underlying representation, and a case could be made
that these no argument calls are just properties of the number (just
like the sign bit).

__
Tracker <[EMAIL PROTECTED]>

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



[issue2401] Solaris: ctypes tests being skipped despite following #1516

2008-03-18 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

This is me:

Martin: I believe the report is that the user followed #1516 but ctypes
was not built, or at least the test was skipped.

Assigning to theller, because that's whom #1516 is assigned to.

--
assignee: loewis -> theller
nosy: +theller

__
Tracker <[EMAIL PROTECTED]>

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



[issue2401] Solaris: ctypes tests being skipped despite following #1516

2008-03-18 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Martin v. Löwis (loewis) replies:

What is the specific problem that you are reporting?
I.e. what behavior did you expect instead?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2401] Solaris: ctypes tests being skipped despite following #1516

2008-03-18 Thread Sean Reifschneider

New submission from Sean Reifschneider <[EMAIL PROTECTED]>:

This is a break-out of the multi-issue #2048.

Original poster Atro Tossavainen (atossava) reports:Building and testing
on Solaris 8 on SPARC with Sun compilers:
cc: Sun C 5.8 2005/10/13
CC: Sun C++ 5.8 2005/10/13

281 tests OK.
40 tests skipped:
test_aepack test_al test_applesingle test_bsddb test_bsddb185
test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_ctypes
test_curses test_gdbm test_gl test_imgfile test_linuxaudiodev
test_macfs test_macostools test_nis test_normalization
test_ossaudiodev test_pep277 test_plistlib test_scriptpackages
test_socket_ssl test_socketserver test_sqlite test_startfile
test_sunaudiodev test_tcl test_timeout test_unicode_file
test_urllib2net test_urllibnet test_winreg test_winsound
test_zipfile64
4 skips unexpected on sunos5:
test_tcl test_sunaudiodev test_ctypes test_nis

...
test_tcl skipped -- No module named _tkinter
...

I have applied the _ctypes patch in #1516, however.  What gives?

--
assignee: loewis
components: Build
messages: 63965
nosy: atossava, jafo, loewis
priority: normal
severity: normal
status: open
title: Solaris: ctypes tests being skipped despite following #1516
type: compile 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



  1   2   >