[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-15 Thread David W. Lambert
David W. Lambert added the comment: Resolution of this may be applicable to Issue3446 as well. "center, ljust and rjust are inconsistent with unicode parameters" -- nosy: +LambertDW ___ Python tracker _

[issue3565] array documentation, method names not 3.0 compliant

2009-03-15 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread James William Pye
James William Pye added the comment: I tested the attached script against v2. It further identifies consistencies between nested with-statements and nested() that should exist(and do in v2). It answers the question: what is the effect of a SkipStatement exception on another, outer CM? with nes

[issue1064] Test issue

2009-03-15 Thread Martin v. Löwis
Martin v. Löwis added the comment: Send more email -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1064] Test issue

2009-03-15 Thread Martin v. Löwis
Martin v. L=C3=B6wis added the comment: Try sending email -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5469] Reference paragraph about the constructs that bind names needs updating for Python 3

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Fixed in trunk in r70397 and 3k in r70398. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5276] IDLE startup file .Idle.py not documented

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, edited a bit and committed in r70395. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue5478] document mistake xml.dom.minidom.Element

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r70393. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5488] nb_inplace_divide slot is missing in docs

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r70392. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5493] Rephrasing the doc of object.__nonzero__

2009-03-15 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5491] Clarify contextlib.nested semantics

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed in r70390. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5493] Rephrasing the doc of object.__nonzero__

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r70387. -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5496] codecs.lookup docstring is misleading

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r70386. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5496] codecs.lookup docstring is misleading

2009-03-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : codecs.lookup is documented as returning a tuple. It actually returns a what the registered lookup function returns, which really *should* be a codecs.CodecInfo instance. If a registered lookup function actually returns a tuple, then codecs.getreader an

[issue5396] os.read not handling O_DIRECT flag

2009-03-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello Eduardo, > 1) to allocated an aligned buffer it is as simple as allocate 4096 + len > (buffer) and truncate address to 4k boundary. Yes, but it is wasteful, especially since the common case is not to use O_DIRECT. Also, os.read does not allocate a buffer

[issue444582] Finding programs in PATH, addition to os

2009-03-15 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5396] os.read not handling O_DIRECT flag

2009-03-15 Thread Eduardo Aguiar
Eduardo Aguiar added the comment: Hi, I think I have a few more issues you can consider: 1) to allocated an aligned buffer it is as simple as allocate 4096 + len (buffer) and truncate address to 4k boundary. 2) I wrote a floppy imager, and without O_DIRECT, it gives me 8 sectors (4k = kernel

[issue1714448] if something as x:

2009-03-15 Thread Matthew Barnett
Matthew Barnett added the comment: Just for the record, I wasn't happy with "~=" either, and I have no problem with just forgetting the whole idea. -- ___ Python tracker ___ _

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2009-03-15 Thread STINNER Victor
STINNER Victor added the comment: This issue is a problem of units. The error text is an utf8 *byte* string and offset is a number of *bytes*. The goal is to get the text *width* of a *character* string. We have to: 1- convert offset from bytes number to character number 2- get the error mes

[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70385. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread STINNER Victor
STINNER Victor added the comment: Attached patch fixes the error message. -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file13339/not_in_tuple.patch ___ Python tracker

[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread Retro
New submission from Retro : >>> t = (0, 1, 2, 3, 4, 5, 6, 7) >>> t.index(8) Traceback (most recent call last): File "", line 1, in ValueError: tuple.index(x): x not in list The error message "x not in list" should have been "x not in tuple". Please fix the error message of the index method of

[issue4951] failure in test_httpservers

2009-03-15 Thread Ger Luijten
Ger Luijten added the comment: Reported Issue 5494 Failure in test_httpservers on Linux with other error message. Maybe there is a relation, maybe not. Greetings, Ger -- nosy: +gerluijten ___ Python tracker ___

[issue5494] Failure in test_httpservers on Linux

2009-03-15 Thread Ger Luijten
New submission from Ger Luijten : Hello developers, While running 'make test' for Python 3.1a1 there was an error reported, obviously a permission problem, but when trying to run the reported server.py script in verbose mode it turned up an error in the regrtest.py script. Manually running the

[issue5493] Rephrasing the doc of object.__nonzero__

2009-03-15 Thread Ezio Melotti
New submission from Ezio Melotti : The doc [1] actually says: object.__nonzero__(self) Called to implement truth value testing, and the built-in operation bool(); should return False or True, or their integer equivalents 0 or 1. When this method is not defined, __len__() is called, if it is d

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file13264/pep377_bench.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2009-03-15 Thread Ger Luijten
New submission from Ger Luijten : Hello developers, Found a small error when using IDLE Version 3.1a1 under Kubuntu Linux 8.10 in the terminal. Kubuntu is fully updated and no installation errors for Python 3.1a1. See the listing from my installation notes below. Greetings, Ger Let's see if

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: I'm definitely not happy with the effect the current patch has on with statement execution speed - I think I'll try to come up with a patch that adds a new SETUP_WITH opcode and see how that performs. -- ___ Python tra

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Updated micro benchmark to also give numbers for direct try/finally execution -- Added file: http://bugs.python.org/file13338/pep377_bench.py ___ Python tracker _

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Version 3 of patch attached - now functionally complete with the correct semantics - compiler package not updated yet - documentation not updated yet Unfortunately, getting the semantics right involves moving context.__enter__ and context.__exit__ to temporary va

[issue5466] Tix.Balloon causes TCLError: unknown color name "{#ffff60}" in Python 2.6.1

2009-03-15 Thread Jani Hakala
Jani Hakala added the comment: I too had trouble with the tix that is shipped with python 2.6(.1) The version seems the bad one that causes those 'unknown color name' errors. I was able to see the error message only after following the useful advice of G. Polo in issue 639266. I downloaded and

[issue4015] [patch] make installed scripts executable on windows

2009-03-15 Thread Benny Bach
Benny Bach added the comment: I think this should be the default. I am a rookie in python, setup.py in particular, but I cannot see how you can write portable setup scripts without this. I agree that the batch script can be improved. Here is how ruby gems do it: @ECHO OFF IF NOT "%~f0" == "~f0

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: To see what is wrong with v2, try something like: class Bizarre(): def __getattr__(self, attr): raise SkipStatement with Bizarre(): print "Not gonna happen, but no exception either!" -- ___ Python

[issue1714448] if something as x:

2009-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Rejecting this after discussion on python-ideas: http://mail.python.org/pipermail/python-ideas/2009-March/003423.html Overview of some of the major objections here: http://mail.python.org/pipermail/python-ideas/2009-March/003440.html -- nosy: +ncoghlan r