[issue2299] Minor typos in newtypes.rst

2008-03-16 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Thanks for the patch, committed as r61414.

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



[issue2300] make html fails

2008-03-16 Thread Christian Heimes

New submission from Christian Heimes <[EMAIL PROTECTED]>:

File "/home/heimes/dev/python/trunk/Doc/tools/sphinx/builder.py", line
236, in write
self.prepare_writing(docnames)
  File "/home/heimes/dev/python/trunk/Doc/tools/sphinx/builder.py", line
301, in prepare_writing
self.load_indexer(docnames)
  File "/home/heimes/dev/python/trunk/Doc/tools/sphinx/builder.py", line
489, in load_indexer
self.indexer.load(f, 'json')
  File "/home/heimes/dev/python/trunk/Doc/tools/sphinx/search.py", line
70, in load
for (k, v) in frozen[2].iteritems())
AttributeError: 'list' object has no attribute 'iteritems'
make: *** [build] Fehler 1

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
messages: 63574
nosy: georg.brandl, tiran
priority: high
severity: normal
status: open
title: make html fails
type: crash
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



[issue2300] make html fails

2008-03-16 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

This should have been fixed a long time ago. Try running "make clean;
make update; make html"?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2301] [Py3k]

2008-03-16 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>:

Following code

# coding: utf-8
print "年"

outputs

C:\Documents and Settings\WhiteRabbit>py3k b.py
  File "b.py", line 3
print "年"

as expected, but following code

# coding: cp932
print "年"

outputs

C:\Documents and Settings\WhiteRabbit>py3k a.py
  File "a.py", line 4
[22605 refs]

Probably this happens because PyUnicode_DecodeUTF8 at
Python/pythonrun.c(1757) assumes err->text to be UTF8, but this is not
true when source file is not encoded with UTF8.

# Sorry there is no patch.

--
components: None
messages: 63576
nosy: ocean-city
severity: normal
status: open
title: [Py3k]
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



[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-16 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>:


--
title: [Py3k] -> [Py3k] No text shown when SyntaxError (when not UTF8)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2300] make html fails

2008-03-16 Thread Facundo Batista

Facundo Batista <[EMAIL PROTECTED]> added the comment:

I was suffering of the same error, so:

make clean: ok

make update:

svn update tools/pygments
svn: requerimiento REPORT falló en '/projects/!svn/vcc/default'
svn: Target path does not exist
make: *** [update] Error 1


Anyway, I went further and made...

make html: and it worked ok!

--
nosy: +facundobatista

__
Tracker <[EMAIL PROTECTED]>

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



[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-16 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

Probably same problem exists in PyErr_ProgramText().

__
Tracker <[EMAIL PROTECTED]>

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



[issue2302] Uses of SocketServer.BaseServer.shutdown have a race

2008-03-16 Thread Jeffrey Yasskin

New submission from Jeffrey Yasskin <[EMAIL PROTECTED]>:

With the code as it stands, calls to shutdown that happen before
serve_forever enters its loop will deadlock, and there's no simple way
for the user to avoid this. The attached patch prevents the deadlock and
allows multiple serve_forever..shutdown cycles, but it's pretty
complicated. I could make it a lot simpler by making shutdown permanent:
any later serve_forever calls would return immediately.

A third choice would be to add a .serve_in_thread function that returns
a token that can be used to shut down exactly that loop, instead of
putting .shutdown() on the server. Any opinions?

--
components: Library (Lib)
files: race_free_shutdown.patch
keywords: patch, patch
messages: 63579
nosy: jyasskin
severity: normal
status: open
title: Uses of SocketServer.BaseServer.shutdown have a race
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9681/race_free_shutdown.patch

__
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-16 Thread Jeffrey Yasskin

New submission from Jeffrey Yasskin <[EMAIL PROTECTED]>:

r58099 added an exception to the common case of PyObject_IsInstance(),
when the class has no __instancecheck__ attribute. This makes
isinstance(3, int) take 4x as long as in python 2.5.

--
assignee: gvanrossum
components: Interpreter Core
messages: 63580
nosy: gvanrossum, jyasskin
severity: normal
status: open
title: isinstance is 4x as slow as in 2.5 because the common case raises
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



[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

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

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

This will involve quite some work to fix. When fetching the code, the 
source encoding must be recognized. Contributions are welcome.
(I personally consider this issue minor, as I would encourage users to use 
UTF-8 as the source encoding, anyway).

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2298] Patch for "string without null bytes" check in getargs.c

2008-03-16 Thread Alexander Belopolsky

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

Note that this patch will expose a bug fixed in issue1950. (See msg63363.)  I 
suggest that the import.c part of issue1950 and this go 
together.  Alexandre?

--
nosy: +alexandre.vassalotti, belopolsky

__
Tracker <[EMAIL PROTECTED]>

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



[issue2304] subprocess under windows fails to quote properly under Windows when shell=True

2008-03-16 Thread Tim Golden

New submission from Tim Golden <[EMAIL PROTECTED]>:

The subprocess.Popen function reorganises the command line for process
creation when shell=True is passed in under Windows. It runs the
existing executable & arguments as arguments to %COMSPEC% /c. However
this fails when a second parameter (typically a filename) has an
embedded space. The patch attached adds extra parameters in this case
and adds appropriate unit tests.

Frankly I'm new to unittests and I more-or-less cloned an existing one
to make this work. Happy to be corrected if there's things done wrong &c.

--
components: Library (Lib)
files: subprocess-r61420.patch
keywords: patch
messages: 63583
nosy: tim.golden
severity: normal
status: open
title: subprocess under windows fails to quote properly under Windows when 
shell=True
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9682/subprocess-r61420.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2291] Catching all exceptions with 'object'

2008-03-16 Thread Alexander Belopolsky

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

I thought some more about this issue and the current behavior seems 
wrong and potentially dangerous.  Consider the following code:

class x: 
pass 
class y(x): 
pass 
try: 
raise y 
except y: 
print "a" 
except: 
print "b" 

It prints 'b'. Now, suppose in preparation for 3.0 transition someone 
adds "__metaclass__ = type" to the module with that code.  The result: 
it prints 'a'.  Since the difference in behavior is in error handling 
code, which in my experience is often not thoroughly tested, the bug 
introduced by a seemingly innocuous move from old to new style classes 
is likely to trigger in the worst possible moment.  (For example a wrong  
roll-back logic is applied after a failed database commit.)

My understanding is that the current logic of bypassing the subclass 
check in PyErr_GivenExceptionMatches in the case of new style class 
which is not a subclass of BaseException, is designed to support string 
exceptions.   Maybe a better choice would be to exclude only string 
subclasses from a subclass check.

I will submit a patch if others agree that this approach is worth 
considering.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2304] subprocess under windows fails to quote properly when shell=True

2008-03-16 Thread Tim Golden

Changes by Tim Golden <[EMAIL PROTECTED]>:


--
title: subprocess under windows fails to quote properly under Windows when 
shell=True -> subprocess under windows fails to quote properly when shell=True

__
Tracker <[EMAIL PROTECTED]>

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



[issue2291] Catching all exceptions with 'object'

2008-03-16 Thread Brett Cannon

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

Actually, if you go back to 2.4, before BaseException even existed, a
try/except with a new-style class in the 'except' clause was also
possible. Actual enforcement of what can be in an 'except' clause is a
new thing added by PEP 352. Suddenly making this any more than a warning
will be too aggressive. And the PEP already stated the transition path.

As I said, I have no problem speeding up PendingDeprecationWarnings in
2.6 and adding Py3K warnings now, but anything more severe in 2.6 (i.e.,
a DeprecationWarning flat-out) would require python-dev approval.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2289] os.path.normpath over-normalizes

2008-03-16 Thread Alexander Belopolsky

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

This is a documented feature:

"""
normpath(path)

Normalize a pathname. ... It should be understood that this may change 
the meaning of the path if it contains symbolic links!
"""

See http://docs.python.org/lib/module-os.path.html .

--
nosy: +belopolsky
type: behavior -> feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue1193577] add server.shutdown() method to SocketServer

2008-03-16 Thread Jeffrey Yasskin

Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment:

So this has a race. See issue 2302 to discuss a fix.

--
resolution:  -> fixed
status: open -> closed
superseder:  -> Uses of SocketServer.BaseServer.shutdown have a race

_
Tracker <[EMAIL PROTECTED]>

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



[issue1689] Backport PEP 3141 to 2.6

2008-03-16 Thread Guido van Rossum

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

Why can't this be closed?

--
nosy: +gvanrossum

__
Tracker <[EMAIL PROTECTED]>

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



[issue2296] [PATCH] Tcl/Tk 8.4.16 patches needed to get an x64 Windows build

2008-03-16 Thread Trent Nelson

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

Oh, another question, do we use tix for anything anymore?

__
Tracker <[EMAIL PROTECTED]>

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



[issue1689] Backport PEP 3141 to 2.6

2008-03-16 Thread Jeffrey Yasskin

Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment:

It can. :)

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



[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-03-16 Thread Daniel Krech

Changes by Daniel Krech <[EMAIL PROTECTED]>:


--
nosy: +eikeon

__
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-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type: behavior -> performance

__
Tracker <[EMAIL PROTECTED]>

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



[issue2305] Update What's new in 2.6

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

Somebody will have to write the "What's new in 2.6" document. I'm doing
3.0 but I'm not doing 2.6 as well.

--
assignee: georg.brandl
components: Documentation
messages: 63591
nosy: georg.brandl, gvanrossum
severity: normal
status: open
title: Update What's new in 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue1285086] urllib.quote is too slow

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type: feature request -> performance

_
Tracker <[EMAIL PROTECTED]>

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



[issue849662] reading shelves is really slow

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type:  -> performance


Tracker <[EMAIL PROTECTED]>


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



[issue984219] hotspot.stats.load is very slow

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type:  -> performance


Tracker <[EMAIL PROTECTED]>


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



[issue2306] Update What's new in 3.0

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

I will be working on this.

--
assignee: gvanrossum
components: Documentation
messages: 63592
nosy: gvanrossum
priority: high
severity: normal
status: open
title: Update What's new in 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue1492860] Integer bit operations performance improvement.

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type: feature request -> performance

_
Tracker <[EMAIL PROTECTED]>

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



[issue735110] Mach-O gcc optimisation flag can boost performance up to 10%

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type: feature request -> performance


Tracker <[EMAIL PROTECTED]>


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



[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-03-16 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
type: resource usage -> performance

__
Tracker <[EMAIL PROTECTED]>

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



[issue2307] Decide what to do with bytes/str when transferring pickles between 2.6 and 3.0

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

A pickled str instance written by 2.6 currently unpickles under 3.0 as a
bytes instance. That would be correct if the intended use is binary
data, but it's wrong if the intended use is text. My hunch is that
there's more pickled text than binary data. (E.g. a dict containing
instance variables uses (8-bit) str instances for the keys; these *must*
be unpacked as (Unicode) str instances in 3.0.)

The inverse issue also exists.

We need to DECIDE this before starting to code (coding is probably
minimal).  I'm assigning the task to DECIDE (after discussion on the
list) to myself.

--
assignee: gvanrossum
components: Library (Lib)
messages: 63593
nosy: gvanrossum
priority: high
severity: normal
status: open
title: Decide what to do with bytes/str when transferring pickles between 2.6 
and 3.0
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



[issue2308] Make structseq more like collections.namedtuple

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

The built-in type structseq (used by e.g. os.stat() for the stat
structure and by the time module for a time tuple) resembles the new
namedtuple type added to the collections module in 2.6.

It would be nice if these had at least a common ABC if not a shared
implementation.

At the same time I think that in 3.0 we should remove the feature of
"hidden fields" which is used to have structs that behave like
fixed-size tuples even though they have a variable number of named
fields (the list of names varies per platform).  We should deprecate the
use of tuple-unpacking for these (except for the first 6 fields of a
timetuple, perhaps).

--
components: Interpreter Core, Library (Lib)
messages: 63594
nosy: gvanrossum
priority: high
severity: normal
status: open
title: Make structseq more like collections.namedtuple
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



[issue2309] Add xturtle to the standard library?

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

Georg Lingl has offered his xturtle for the standard library.  Barring
showstopping problems with dependencies or code qualitiy I think this is
a good thing to add to 3.0 as a replacement for turtle, and to add to
2.6 while keeping the old turtle module.

--
messages: 63595
nosy: gvanrossum
severity: normal
status: open
title: Add xturtle to the standard library?
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



[issue2309] Add xturtle to the standard library?

2008-03-16 Thread Guido van Rossum

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

See http://mail.python.org/pipermail/python-dev/2008-March/077621.html

__
Tracker <[EMAIL PROTECTED]>

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



[issue2310] Reorganize the 3.0 Misc/NEWS file

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

The 3.0 Misc/NEWS file is a mess.  It is vastly incomplete because it
usually gets skipped during merges rather than resolving the conflicts.

--
assignee: georg.brandl
components: Documentation
messages: 63597
nosy: georg.brandl, gvanrossum
severity: normal
status: open
title: Reorganize the 3.0 Misc/NEWS file
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



[issue2311] Update the ACKS file

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

We should keep the ACKS files up to date. Have all the GHOP contributors
been added?

--
assignee: georg.brandl
components: Documentation
messages: 63598
nosy: georg.brandl, gvanrossum
priority: normal
severity: normal
status: open
title: Update the ACKS file
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



[issue735110] Mach-O gcc optimisation flag can boost performance up to 10%

2008-03-16 Thread Just van Rossum

Changes by Just van Rossum <[EMAIL PROTECTED]>:


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



[issue2305] Update What's new in 2.6

2008-03-16 Thread Benjamin Peterson

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

It looks like the author is Kuchling.

--
nosy: +akuchling, benjamin.peterson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2311] Update the ACKS file

2008-03-16 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


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



[issue2312] Update PEP 3135 (super())

2008-03-16 Thread Guido van Rossum

New submission from Guido van Rossum <[EMAIL PROTECTED]>:

The super() PEP currently is completely wrong w.r.t. reality.  The
implementation is solid and won't change.  The PEP just needs to be
rewritten to match reality.

--
assignee: georg.brandl
components: Documentation
messages: 63600
nosy: georg.brandl, gvanrossum
severity: normal
status: open
title: Update PEP 3135 (super())
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



[issue2216] Problems using logging module with idle

2008-03-16 Thread Vinay Sajip

Vinay Sajip <[EMAIL PROTECTED]> added the comment:

Documentation updated in trunk.

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



[issue2309] Add xturtle to the standard library?

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

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

See also issue1513695.

I don't see a principle problem replacing turtle with xturtle, assuming 
its compatible.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue2309] Add xturtle to the standard library?

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

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


--
nosy: +gregorlingl

__
Tracker <[EMAIL PROTECTED]>

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



[issue1513695] new turtle module

2008-03-16 Thread Guido van Rossum

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

(This is no longer the latest version. Gregor, mind uploading a newer one?)

--
nosy: +gvanrossum

_
Tracker <[EMAIL PROTECTED]>

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



[issue2289] os.path.normpath over-normalizes

2008-03-16 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Closing as "Won't fix".

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



[issue2296] [PATCH] Tcl/Tk 8.4.16 patches needed to get an x64 Windows build

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

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

We still try to ship Tix where possible, not for use within Python itself, 
but for applications that use it. This goes back to Issue474836.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2287] Problems using logging module with logging.basicConfig(level=logging.NOTSET)

2008-03-16 Thread Vinay Sajip

Vinay Sajip <[EMAIL PROTECTED]> added the comment:

Updated release25-maint.

--
assignee:  -> vsajip
nosy: +vsajip
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



[issue2302] Uses of SocketServer.BaseServer.shutdown have a race

2008-03-16 Thread Jeffrey Yasskin

Changes by Jeffrey Yasskin <[EMAIL PROTECTED]>:


--
assignee:  -> jyasskin

__
Tracker <[EMAIL PROTECTED]>

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



[issue2313] correct longobject.c type cast

2008-03-16 Thread Joseph Armbruster

New submission from Joseph Armbruster <[EMAIL PROTECTED]>:

longobject.c has a type cast that should be different to take
HAVE_UINTPTR_T into account.

ps: noticed this as i'm merging trunk -> PythonCE to get this working on
my new cellphone, the Wing!

--
components: Interpreter Core
files: longobject.patch
keywords: patch
messages: 63607
nosy: JosephArmbruster, jyasskin
severity: normal
status: open
title: correct longobject.c type cast
versions: Python 2.6
Added file: http://bugs.python.org/file9683/longobject.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2313] correct int / long object type casts

2008-03-16 Thread Joseph Armbruster

Joseph Armbruster <[EMAIL PROTECTED]> added the comment:

it looks like this may also be the case in intobject

--
title: correct longobject.c type cast -> correct int / long object type casts
Added file: http://bugs.python.org/file9684/intobject.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2314] Test issue

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

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

Let's see whether email submission works.

--
assignee: gvanrossum
messages: 63609
nosy: gvanrossum, loewis
severity: normal
status: open
title: Test issue

__
Tracker <[EMAIL PROTECTED]>

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



[issue2304] subprocess under windows fails to quote properly when shell=True

2008-03-16 Thread Gabriel Genellina

Gabriel Genellina <[EMAIL PROTECTED]> added the comment:

You aren't testing the modified code, the Popen call should say 
shell=True.

I think that a more PEP8-compliant style would be nice (removing the 
spaces after open and read, and using consistent indentation)

--
nosy: +gagenellina

__
Tracker <[EMAIL PROTECTED]>

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



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

2008-03-16 Thread Trent Nelson

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

Any chance of getting a test case that demonstrates this?  I'll happily 
test the patch if there's an associated test case I can run to assert 
before/after behaviour.

--
nosy: +Trent.Nelson

__
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-16 Thread Mark Dickinson

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

This issue is currently causing test_tokenize failures in Python 3.0.
There are other ways to fix the test failures, but making tokenize honor 
the source file encoding seems like the right thing to do to me.

Does this still seem like a good idea to everyone?

--
nosy: +marketdickinson
versions: +Python 2.6, Python 3.0 -Python 2.3


Tracker <[EMAIL PROTECTED]>


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



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

2008-03-16 Thread Douglas Greiman

Douglas Greiman <[EMAIL PROTECTED]> added the comment:

Good call.  I've attached an updated patch which includes a testcase in
test_cmd_line.py.

Added file: 
http://bugs.python.org/file9685/py3k-win-codec-recursion-20080316.diff

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



[issue2264] empty specifier for float.__format__ does not always print at least one decimal digit

2008-03-16 Thread Eric Smith

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

I think the best way to handle this is to add a new format code to
PyOS_ascii_formatd, which implements this behavior.  There can be no
backward compatibility issues, because PyOS_ascii_formatd currently
ensures its format specifier type code is in ['e', 'E', 'f', 'F', 'g',
'G', 'n'].  I'm going to use 'Z' (for lack of a better code) to mean
"implement the default behavior from PEP 3101".

__
Tracker <[EMAIL PROTECTED]>

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



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

2008-03-16 Thread Trent Nelson

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

+1, tested on x86 XP and x64 2k8.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2314] Test issue

2008-03-16 Thread Guido van Rossum

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

So what did the email you sent look like?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2314] Test issue

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

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

To: [EMAIL PROTECTED]
Subject: Test issue [assignee=gvanrossum]

The body was msg63609.

The tricky part is to get the property names right. Roundup will reject 
(and return) the message if they are wrong, without telling what the 
right ones are. For issue, we currently have

title
(messagea)
(files)
nosy (*)
superseder
type
components (*)
versions (*)
priority
dependencies (*)
assignee 
status
resolution
keywords (*)

The ones in parentheses are irrelevant for the subject. The ones with an 
asterisk are multilink, so you can not only key=value, but also 
key=+value or key=-value (see the body of the email here for syntax 
examples)

--
components: +Demos and Tools, Documentation
nosy: +nnorwitz
priority:  -> immediate
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



[issue719888] tokenize module w/ coding cookie

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

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

In 3k, the tokenize module should definitely return strings, and, in 
doing so, it should definitely consider the encoding declaration (and 
also the default encoding in absence of the encoding declaration).

For 2.6, I wouldn't mind if it were changed incompatibly so that it 
returns Unicode strings, or else that it parses in Unicode, and then 
encodes back to the source encoding before returning anything.


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-16 Thread Trent Nelson

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

I've attached a patch to test_tokenizer.py and a bunch of text files 
(that should be dropped into Lib/test) that highlight this issue a 
*lot* better than the current state of affairs.

The existing implementation defines roundup() in the doctest, then 
proceeds to define it again in the code body.  The last for loop in the 
doctest is failing every so often -- what it's failing on isn't at all 
clear as a) ten random files are selected out of 332 in Lib/test, and 
b) there's no way of figuring out which files are causing it to fail 
unless you hack another method into the test case to try and replicate 
what the doctest is doing, with some additional print statements (which 
is the approach I took, only to get bitten by the fact that roundup() 
was being resolved to the bogus definition that's in the code body, not 
the functional one in the doctest, which resulted in even more 
misleading behaviour).

FWIW, the file that causes the exception is test_doctest2.py as it 
contains encoded characters.

So, the approach this patch takes is to drop the 'pick ten random test 
files and untokenize/tokenize' approach and add a class that 
specifically tests for the tokenizer's compliance with PEP 0263.

I'll move on to a patch to tokenizer.py now, but this patch is ok to 
commit now -- it'll clean up the misleading errors being reported by 
the plethora of red 3.0 buildbots at the moment at the very least.

--
nosy: +Trent.Nelson


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-16 Thread Trent Nelson

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

Hmm, I take it multiple file uploads aren't supported.  I don't want to 
use svn diff for the text files as it looks like it's butchering the 
bom encodings, so, tar it is!  (Untar in root py3k/ directory.)

Added file: http://bugs.python.org/file9686/test_tokenize_patch.tar


Tracker <[EMAIL PROTECTED]>


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