[issue1115] Minor Change For Better cross compile

2007-09-06 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
keywords: +patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2007-09-06 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
assignee:  -> loewis
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue1505257] winerror module

2007-09-06 Thread Martin v. Löwis

Martin v. Löwis added the comment:

Marc-Andre, what should we do about this patch?

_
Tracker <[EMAIL PROTECTED]>

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



[issue1733973] _lsprof.c:ptrace_enter_call assumes PyErr_* is clean

2007-09-06 Thread Armin Rigo

Armin Rigo added the comment:

Thanks for the patch.  Checked in:

 * r58004  (trunk)
 * r58005  (release25-maint)

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



[issue1116] reference in extending doc to non-existing file

2007-09-06 Thread Anthon van der Neut

New submission from Anthon van der Neut:

The extending Python doc for 2.5 (and 2.6) is still referring to
Python/pythonmain.c to look up how to call the Python parser with a
string. However the code (for the -c commandline option) is now in
Modules/main.c

See attached diff.txt fixes Doc/extending/extending.rst (it is probably
quiker to make the change by hand than to check the diff).

--
components: Documentation
files: diff.txt
messages: 55682
nosy: anthon
severity: minor
status: open
title: reference in extending doc to non-existing file
versions: Python 2.5, Python 2.6

__
Tracker <[EMAIL PROTECTED]>

__--- Doc/extending/extending.rst?rev=57065   2007-09-06 10:46:11.0 
+0200
+++ Doc/extending/extending.rst 2007-09-06 10:48:02.0 +0200
@@ -423,7 +423,7 @@
 standard interface to call a Python function.  (I won't dwell on how to call 
the
 Python parser with a particular string as input --- if you're interested, have 
a
 look at the implementation of the :option:`-c` command line option in
-:file:`Python/pythonmain.c` from the Python source code.)
+:file:`Modules/main.c` from the Python source code.)
 
 Calling a Python function is easy.  First, the Python program must somehow pass
 you the Python function object.  You should provide a function (or some other

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



[issue1505257] winerror module

2007-09-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

The winerror module should really be coded in C. Otherwise you don't
benefit from the lookup object approach.

The files I uploaded only server as basis for such a C module. Would be
great if you could find someone to write such a module - preferably
using a generator that creates it from the header files.

I'm not interested in this anymore, so feel free to drop the whole idea.

_
Tracker <[EMAIL PROTECTED]>

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



[issue1116] reference in extending doc to non-existing file

2007-09-06 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
keywords: +patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1505257] winerror module

2007-09-06 Thread Martin v. Löwis

Martin v. Löwis added the comment:

Ok rejecting it.

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



[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-06 Thread Thomas Herve

Thomas Herve added the comment:

object.c is already inconsistent about tabs and space :). It may be
better to fix it in the commit, not to clutter the patch. But I can
provide a new patch if necessary.

_
Tracker <[EMAIL PROTECTED]>

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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread David Ripton

New submission from David Ripton:

Python 3.0a1, Gentoo Linux x86, with OpenSSL 0.9.8e installed.

$ ./configure; make

Failed to find the necessary bits to build these modules:
_sha256   _sha512
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

setup.py says:

if (openssl_ver < 0x00908000):
# OpenSSL doesn't do these until 0.9.8 so we'll bring our
own hash
exts.append( Extension('_sha256', ['sha256module.c']) )
exts.append( Extension('_sha512', ['sha512module.c']) )

But I have openssl 0.9.8e.  So openssl is new enough that I don't need
the _sha256 and _sha512 modules.  And the comment says that "these
aren't strictly missing since they are unneeded", so the error message
is spurious.

--
components: Build
messages: 55686
nosy: dripton
severity: minor
status: open
title: Spurious warning about missing _sha256 and _sha512 when not needed
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



[issue1118] hashlib module fails with TypeError

2007-09-06 Thread David Ripton

New submission from David Ripton:

The hashlib module seems not to work at all:

$ python3.0
Python 3.0a1 (py3k, Sep  5 2007, 08:17:11)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
>>> m = hashlib.md5()
>>> m.update("Nobody inspects")
Traceback (most recent call last):
  File "", line 1, in 
TypeError: object supporting the buffer API required

(Same error with hashlib.sha1(), etc.)

--
components: Library (Lib)
messages: 55687
nosy: dripton
severity: normal
status: open
title: hashlib module fails with TypeError
type: crash
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



[issue1111] Users' directories information

2007-09-06 Thread Maciej Piechorka

Maciej Piechorka added the comment:

It would allow to write in python more cross platform applications
without writing it by hand and/or using special libraries.
Something like:

import sys
import os
import os.path

# ...
os.mkdir(os.path.join(sys.configdir(), ".myprogram"))
# ...

__
Tracker <[EMAIL PROTECTED]>

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



[issue1119] Search index is messed up after partial rebuilding

2007-09-06 Thread Lars Gustäbel

New submission from Lars Gustäbel:

When rebuilding parts of the documentation the search index is emptied.
The problem is that the extensions are not stripped from the filenames
that are given to IndexBuilder.prune() method.

Therefore, the Search widget on http://docs.python.org/dev/3.0/ produces
no results.

--
components: Documentation tools (Sphinx)
files: sphinx-index.diff
keywords: patch
messages: 55689
nosy: lars.gustaebel
severity: normal
status: open
title: Search index is messed up after partial rebuilding

__
Tracker <[EMAIL PROTECTED]>

__Index: builder.py
===
--- builder.py  (revision 58006)
+++ builder.py  (working copy)
@@ -498,7 +498,7 @@
 except (IOError, OSError):
 pass
 # delete all entries for files that will be rebuilt
-self.indexer.prune(set(self.env.all_files) - set(filenames))
+self.indexer.prune([fn[:-4] for fn in set(self.env.all_files) - 
set(filenames)])
 
 def index_file(self, filename, doctree, title):
 # only index pages with title
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1686386] Python SEGFAULT on invalid superclass access

2007-09-06 Thread toxik

toxik added the comment:

Hm, may be so.

Feel free to change title/severity if you'd like to.

_
Tracker <[EMAIL PROTECTED]>

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



[issue1118] hashlib module fails with TypeError

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

David Ripton schrieb:
> New submission from David Ripton:
> 
> The hashlib module seems not to work at all:
> 
> $ python3.0
> Python 3.0a1 (py3k, Sep  5 2007, 08:17:11)
> [GCC 4.1.2 (Gentoo 4.1.2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
 import hashlib
 m = hashlib.md5()
 m.update("Nobody inspects")
> Traceback (most recent call last):
>   File "", line 1, in 
> TypeError: object supporting the buffer API required

hashlib only accepts bytes for its digests, since the algorithms work
on bytes, not characters.

Unfortunately, this isn't documented yet, but I'll do that now.

--
nosy: +georg.brandl
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



[issue1111] Users' directories information

2007-09-06 Thread Martin v. Löwis

Martin v. Löwis added the comment:

I don't think a uniform access to "configuration information" is
possible, or even desirable. The requirements across applications and
systems are too diverse to make this feasible.

In any case, such a new feature should first be field-tested as a
"special library" in a number of applications, and on a number of
systems. Only then inclusion into the standard library could even be
considered.

Closing this as "won't fix".

--
resolution:  -> wont fix
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



[issue1119] Search index is messed up after partial rebuilding

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Lars Gustäbel schrieb:
> New submission from Lars Gustäbel:
> 
> When rebuilding parts of the documentation the search index is emptied.
> The problem is that the extensions are not stripped from the filenames
> that are given to IndexBuilder.prune() method.
> 
> Therefore, the Search widget on http://docs.python.org/dev/3.0/ produces
> no results.

Thanks, fixed in rev. 58009!

Georg

--
nosy: +georg.brandl
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



[issue1101] Is there just no PRINT statement any more? Or it just doesn't work.

2007-09-06 Thread Guido van Rossum

Guido van Rossum added the comment:

OK, I've added a big section about print to the front of the "common
stumbling blocks section, with all the info about print together, and a
few examples to clarify the most common changes.  You can see the
changes in subversion; they'll be live on docs.python.org/dev/3.0/ in
half a day or less.

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



[issue1116] reference in extending doc to non-existing file

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Fixed in rev. 58012, 58013.

--
nosy: +georg.brandl
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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Assigning to Skip.

--
assignee:  -> skip.montanaro
nosy: +georg.brandl, skip.montanaro
title: Spurious warning about missing _sha256 and _sha512 when not needed -> 
Spurious warning about missing _sha256 and _sha512 when   not needed

__
Tracker <[EMAIL PROTECTED]>

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



[issue685846] raw_input defers alarm signal

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Setting patch as superseder

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> fix bug #685846: raw_input defers signals


Tracker <[EMAIL PROTECTED]>


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



[issue706406] fix bug #685846: raw_input defers signals

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Set as superseder of #685846 and #1113.

--
nosy: +georg.brandl


Tracker <[EMAIL PROTECTED]>


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



[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

This is ultimately the same as #685846, for which a patch is at #706406.

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> fix bug #685846: raw_input defers signals

__
Tracker <[EMAIL PROTECTED]>

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



[issue1095] make install failed

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Aki schrieb:

> (cd /usr/local/bin; ln python2.5 python)
> (cd /usr/local/bin; ln -sf python2.5-config python-config)
> ln: cannot create python-config: File exists
> make: *** [bininstall] Error 2

Shouldn't ln -f ignore existing destination files?
What system is that?

--
nosy: +georg.brandl

__
Tracker <[EMAIL PROTECTED]>

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



[issue1095] make install failed

2007-09-06 Thread Aki

Aki added the comment:

> Shouldn't ln -f ignore existing destination files?
> What system is that?

Well, it was on Solaris 9.

Under Solaris, ln -sf won't clobber an existing soft link.
I don't know if there is a work around of this rather than removing the
link explicitly.

Other Unix experts, any help?

Aki-

__
Tracker <[EMAIL PROTECTED]>

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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Skip Montanaro

Skip Montanaro added the comment:

Assigning to me because?  I've had no involvement at all
with SSL or sha code in Python.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Skip Montanaro schrieb:
> Skip Montanaro added the comment:
> 
> Assigning to me because?  I've had no involvement at all
> with SSL or sha code in Python.

IIRC you added the code that collects and displays these messages.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1095] make install failed

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Perhaps Martin knows something?

--
assignee:  -> loewis
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Skip Montanaro

Skip Montanaro added the comment:

>> Assigning to me because?  I've had no involvement at all
>> with SSL or sha code in Python.

Georg> IIRC you added the code that collects and displays these
Georg> messages.

Ah, okay.  I will take a look at that.

Skip

--
title: Spurious warning about missing _sha256 and _sha512 when   not needed -> 
Spurious warning about missing _sha256 and _sha512 when not needed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Skip Montanaro

Skip Montanaro added the comment:

I just checked in r58016.  See if that solves the problem.

--
resolution:  -> fixed
status: open -> pending

__
Tracker <[EMAIL PROTECTED]>

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



[issue1095] make install failed

2007-09-06 Thread Martin v. Löwis

Martin v. Löwis added the comment:

The -f option to ln was not portable, traditionally. So the portable way
to create a symlink if the target might exist is to remove the old
symlink first. I've verified that 'ln -sf' indeed works as reported on
Solaris 9. On Solaris 10, it seems Sun has finally "given in" and
changed the implementation (but not the documentation).

I'm not sure why we bother checking whether the old file exists before
removing it, instead of just doing 'rm -f'; that has been there since
r6352 with no explanation given.

--
assignee: loewis -> 

__
Tracker <[EMAIL PROTECTED]>

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



[issue1095] make install failed

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

[Martin]
> I'm not sure why we bother checking whether the old file exists before
> removing it, instead of just doing 'rm -f'; that has been there since
> r6352 with no explanation given.

So would this patch be acceptable?

Index: Makefile.pre.in
===
--- Makefile.pre.in (Revision 57865)
+++ Makefile.pre.in (Arbeitskopie)
@@ -655,7 +655,8 @@
else true; \
fi
(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
-   (cd $(DESTDIR)$(BINDIR); $(LN) -sf python$(VERSION)-config 
python-config)
+   -rm -f $(DESTDIR)$(BINDIR)/python-config
+   (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)

 # Install the interpreter with $(VERSION) affixed
 # This goes into $(exec_prefix)

__
Tracker <[EMAIL PROTECTED]>

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



[issue1107] 2to3, lambda with non-tuple argument inside parenthesis

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
components: +2to3 (2.x to 3.x conversion tool) -Demos and Tools

__
Tracker <[EMAIL PROTECTED]>

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



[issue1001] 2to3 crashes on input files with no trailing newlines

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
assignee:  -> collinwinter
components: +2to3 (2.x to 3.x conversion tool) -Demos and Tools
nosy: +collinwinter

__
Tracker <[EMAIL PROTECTED]>

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



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
assignee:  -> collinwinter
components: +2to3 (2.x to 3.x conversion tool) -Demos and Tools
nosy: +collinwinter

__
Tracker <[EMAIL PROTECTED]>

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



[issue1111] Users' directories information

2007-09-06 Thread Maciej Piechorka

Maciej Piechorka added the comment:

As a 'special library' I meant for example QT(metioned at least on
#python channel but I can't find it in pyQT documentation) which is a
nonsense in pygtk app.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1001] 2to3 crashes on input files with no trailing newlines

2007-09-06 Thread Collin Winter

Collin Winter added the comment:

I believe this was fixed in r57942; can you test to see if you still
have this problem?

__
Tracker <[EMAIL PROTECTED]>

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



[issue1005] Patches to rename Queue module to queue

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
components: +2to3 (2.x to 3.x conversion tool)

__
Tracker <[EMAIL PROTECTED]>

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



[issue1002] Patch to rename HTMLParser module to lower_case

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
components: +2to3 (2.x to 3.x conversion tool)

__
Tracker <[EMAIL PROTECTED]>

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



[issue1000] Patch to rename *Server modules to lower-case

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
components: +2to3 (2.x to 3.x conversion tool)

__
Tracker <[EMAIL PROTECTED]>

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



[issue1000] Patch to rename *Server modules to lower-case

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
nosy: +collinwinter

__
Tracker <[EMAIL PROTECTED]>

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



[issue1619049] sys.intern() 2to3 fixer

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


--
components: +2to3 (2.x to 3.x conversion tool) -None

_
Tracker <[EMAIL PROTECTED]>

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



[issue1001] 2to3 crashes on input files with no trailing newlines

2007-09-06 Thread Adrian Holovaty

Adrian Holovaty added the comment:

I just checked, and, yes, it's been fixed.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1001] 2to3 crashes on input files with no trailing newlines

2007-09-06 Thread Collin Winter

Changes by Collin Winter:


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



[issue1108] Problem with doctest and decorated functions

2007-09-06 Thread Daniel Larsson

Daniel Larsson added the comment:

Here's a patch that alters the order of checks in DocTestFinder._from_module

__
Tracker <[EMAIL PROTECTED]>

__--- doctest.py.orig	2007-09-05 17:14:55.0 +0200
+++ doctest.py	2007-09-05 17:10:23.0 +0200
@@ -835,12 +835,12 @@
 """
 if module is None:
 return True
+elif inspect.getmodule(object) is not None:
+return module is inspect.getmodule(object)
 elif inspect.isfunction(object):
 return module.__dict__ is object.func_globals
 elif inspect.isclass(object):
 return module.__name__ == object.__module__
-elif inspect.getmodule(object) is not None:
-return module is inspect.getmodule(object)
 elif hasattr(object, '__module__'):
 return module.__name__ == object.__module__
 elif isinstance(object, property):
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread David Ripton

David Ripton added the comment:

Yes, the fix works for me.  Thanks.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1120] "make altinstall" installs pydoc, idle, smtpd.py with broken shebang lines

2007-09-06 Thread David Ripton

New submission from David Ripton:

Gentoo Linux, x86, Python 3.0a

I did a vanilla "./configure; make; make test; make altinstall" build.

The following files were created in /usr/local/bin:
-rwxr-xr-x 1 root root   18036 Sep  6 17:49 smtpd.py
-rwxr-xr-x 1 root root  81 Sep  6 17:49 pydoc
-rwxr-xr-x 1 root root  96 Sep  6 17:49 idle
-rwxr-xr-x 1 root root 3644316 Sep  6 17:58 python3.0
-rwxr-xr-x 1 root root1401 Sep  6 17:59 python3.0-config

As intended, altinstall does not create /usr/local/bin/python, so
"python" is still the pre-existing python2.5.

However, other binaries are installed as though /usr/local/bin/python
were created, so they don't work.

[EMAIL PROTECTED] ~ $ pydoc
bash: /usr/local/bin/pydoc: /usr/local/bin/python: bad interpreter: No
such file or directory
[EMAIL PROTECTED] ~ $ idle
bash: /usr/local/bin/idle: /usr/local/bin/python: bad interpreter: No
such file or directory
[EMAIL PROTECTED] ~ $ smtpd.py
bash: /usr/local/bin/smtpd.py: /usr/local/bin/python: bad interpreter:
No such file or directory

Suggest that "make altinstall" should not put anything in the bin
directory except pythonX.Y and pythonX.Y-config, which are "safe"
because of the embedded version numbers.  Another option would be
installing those other binaries but with fixed shebang lines.

--
components: Build
messages: 55714
nosy: dripton
severity: minor
status: open
title: "make altinstall" installs pydoc, idle, smtpd.py with broken shebang 
lines
type: crash
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



[issue1117] Spurious warning about missing _sha256 and _sha512 when not needed

2007-09-06 Thread Skip Montanaro

Skip Montanaro added the comment:

Thanks.  I'm not sure how this slipped in there (I could check, I
suppose).  It seems to already be on the 2.5 branch, so I added it to
the trunk (r58022) as well.

--
status: pending -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1112] Test debug assertion in bsddb test_1413192.py

2007-09-06 Thread Gregory P. Smith

Gregory P. Smith added the comment:

that looks good to me.

fixed in:

2.6 trunk r58023
release25-maint r58024
py3k r58025

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



[issue1122] PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect

2007-09-06 Thread Andrew Gaul

New submission from 
Andrew Gaul
:

Documentation claims int, API uses Py_ssize_t.

--
components: Documentation
files: pytuple_size.patch
messages: 55718
nosy: gaul
severity: minor
status: open
title: PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

__Index: Doc/c-api/concrete.rst
===
--- Doc/c-api/concrete.rst	(revision 58025)
+++ Doc/c-api/concrete.rst	(working copy)
@@ -1933,12 +1933,12 @@
.. versionadded:: 2.4
 
 
-.. cfunction:: int PyTuple_Size(PyObject *p)
+.. cfunction:: Py_ssize_t PyTuple_Size(PyObject *p)
 
Take a pointer to a tuple object, and return the size of that tuple.
 
 
-.. cfunction:: int PyTuple_GET_SIZE(PyObject *p)
+.. cfunction:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p)
 
Return the size of the tuple *p*, which must be non-*NULL* and point to a tuple;
no error checking is performed.
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-06 Thread Nir Soffer

New submission from Nir Soffer:

>>> b'foo  bar'.split()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: split() takes at least 1 argument (0 given)

>>> b'foo  bar'.split(None)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: expected an object with the buffer interface

str.split and bytes.split should have the same interface, or different 
names.

--
components: Library (Lib)
messages: 55723
nosy: nirs
severity: normal
status: open
title: bytes.split shold have same interface as str.split, or different name
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



[issue1124] Webchecker not parsing css "@import url"

2007-09-06 Thread Edward Abraham

New submission from Edward Abraham:

webchecker and its dependent, websucker, which are distributed with the
python tools, are not following references to stylesheets given with the
@import url(mystyle.css); declaration ...

This means that the websucker isn't copying across stylesheets ...

--
components: Demos and Tools
messages: 55722
nosy: ready.eddy
severity: normal
status: open
title: Webchecker not parsing css "@import url"
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



[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-06 Thread Nir Soffer

Nir Soffer added the comment:

typo in the title

--
title: split(None, maxplit) does not strip whitespace correctly -> split(None, 
maxsplit) does not strip whitespace correctly

__
Tracker <[EMAIL PROTECTED]>

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



[issue1123] split(None, maxplit) does not strip whitespace correctly

2007-09-06 Thread Nir Soffer

New submission from Nir Soffer:

string object .split doc say (http://docs.python.org/lib/string-
methods.html):

"If sep is not specified or is None, a different splitting algorithm 
is applied. First, whitespace characters (spaces, tabs, newlines, 
returns, and formfeeds) are stripped from both ends."

If the maxsplit argument is set and is smaller then the number of 
possible parts, whitespace is not removed.

Examples:

>>> 'k: v\n'.split(None, 1)
['k:', 'v\n']

Expected: ['k:', 'v']

>>> u'k: v\n'.split(None, 1)
[u'k:', u'v\n']

Expected: [u'k:', u'v']

With larger values of maxsplits, it works correctly:

>>> 'k: v\n'.split(None, 2)
['k:', 'v']
>>> u'k: v\n'.split(None, 2)
[u'k:', u'v']

This looks like implementation bug, because there it does not make sense 
that the striping depends on the maxsplit argument, and it will be hard 
to explain such behavior.

Maybe the striping should be removed in Python 3? It does not make sense 
to strip a string behind your back when you want to split it, and the 
caller can easily strip the string if needed.

--
components: Library (Lib)
messages: 55720
nosy: nirs
severity: normal
status: open
title: split(None, maxplit) does not strip whitespace correctly
versions: Python 2.4, Python 2.5, 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



[issue1127] No tests for inspect.getfullargspec()

2007-09-06 Thread Brett Cannon

Changes by Brett Cannon:


--
components: Library (Lib)
keywords: py3k
priority: high
severity: normal
status: open
title: No tests for inspect.getfullargspec()
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



[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-06 Thread Nir Soffer

Nir Soffer added the comment:

set type

--
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue1126] file.fileno and file.isatty() should be implementable by any file like object

2007-09-06 Thread Nir Soffer

New submission from Nir Soffer:

The docs (http://docs.python.org/dev/3.0/library/stdtypes.html#sequence-
types-str-bytes-list-tuple-buffer-range) warn that .fileno and .istty 
should not be implemented by a file like object.

This require client to check if the file object has the attribute before 
they call the method, instead of treating all files the same.

if hasattr(foo, 'istty'):
if foo.istty():
# ...

Instead of:

if foo.istty():
# ...

istty can easily return False. fileno can return invalid file descriptor 
number (-1?).

--
components: Library (Lib)
messages: 55724
nosy: nirs
severity: normal
status: open
title: file.fileno and file.isatty() should be implementable by any file like 
object
type: rfe
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



[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

Anand Patil schrieb:
> Anand Patil added the comment:
> 
> Sorry- Where can I get this patch? The SourceForge patch manager says it's
> closed.

It is - like all other issues - in this tracker at 
http://bugs.python.org/706406.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-06 Thread Georg Brandl

Georg Brandl added the comment:

I don't think so. They can't have the same behavior, and "split" is the most
reasonable name for what the bytes method does.

There have always been subtle differences between the behavior of string and
unicode methods; this was even more objectable because they were supposed to
be interchangeable to some degree; 3k strings and bytes are not.

--
nosy: +georg.brandl

__
Tracker <[EMAIL PROTECTED]>

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



[issue1267884] crash recursive __getattr__

2007-09-06 Thread Brett Cannon

Changes by Brett Cannon:


--
superseder:  -> a bunch of infinite C recursions

_
Tracker <[EMAIL PROTECTED]>

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



[issue1202533] a bunch of infinite C recursions

2007-09-06 Thread Brett Cannon

Brett Cannon added the comment:

Rev. 58032 applied the patch and added a test to test_descr.

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



[issue1014] cgi: parse_qs and parse_qsl misbehave on empty strings

2007-09-06 Thread Nir Soffer

Nir Soffer added the comment:

Addionally, if the default value is empty string, you expect it work with 
empty string. If a non empty value is needed, it would use None as the 
default.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1125] bytes.split shold have same interface as str.split, or different name

2007-09-06 Thread Nir Soffer

Nir Soffer added the comment:

set type

--
type:  -> rfe

__
Tracker <[EMAIL PROTECTED]>

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



[issue1121] Document inspect.getfullargspec()

2007-09-06 Thread Brett Cannon

New submission from Brett Cannon:

inspect.getfullargspec() needs to be documented before it is backported
to 2.6.

--
components: Documentation
keywords: py3k
messages: 55717
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Document inspect.getfullargspec()
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



[issue1121] Document inspect.getfullargspec()

2007-09-06 Thread Brett Cannon

Changes by Brett Cannon:


--
severity: normal -> minor

__
Tracker <[EMAIL PROTECTED]>

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



[issue1113] interrupt_main() fails to interrupt raw_input()

2007-09-06 Thread Anand Patil

Anand Patil added the comment:

Sorry- Where can I get this patch? The SourceForge patch manager says it's
closed.

Thanks,
Anand

On 9/6/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
>
>
> Georg Brandl added the comment:
>
> This is ultimately the same as #685846, for which a patch is at #706406.
>
> --
> nosy: +georg.brandl
> resolution:  -> duplicate
> status: open -> closed
> superseder:  -> fix bug #685846: raw_input defers signals
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

__
Tracker <[EMAIL PROTECTED]>

__Sorry- Where can I get this patch? The SourceForge patch manager says it's 
closed.Thanks,AnandOn 
9/6/07, Georg Brandl 
[EMAIL PROTECTED]> wrote:Georg Brandl added the comment:This is 
ultimately the same as #685846, for which a patch is at #706406.
--nosy: +georg.brandlresolution:  -> 
duplicatestatus: open -> closedsuperseder:  -> fix bug 
#685846: raw_input defers 
signals__Tracker <
mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]>http://bugs.python.org/issue1113>__


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