[issue3652] Remove DeprecationWarning in _warnings about 'line'

2009-03-10 Thread Brett Cannon
Brett Cannon added the comment: Applied in r70305 on trunk. Apparently I had already applied the patch for py3k. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-10 Thread Rudd-O
Changes by Rudd-O : Added file: http://bugs.python.org/file13301/python-2.4-distutils-bdist-rpm.patch (prerequisite for the patch I wrote which is the prereleaseversion.patch) ___ Python tracker __

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-10 Thread Rudd-O
Rudd-O added the comment: Heads up: The fix requires a patch (distributed with the python 2.4.x RPM in CentOS) to be applied first. I am attaching said patch so you can apply the fix. -- ___ Python tracker ___

[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-10 Thread Rudd-O
New submission from Rudd-O : Description of problem: Building pre-release python distutils packages with python setup.py bdist_rpm works, but the version number is "RPM-higher" than the official release package that is released later. This constitutes a problem because many of the components in

[issue2706] datetime: define division timedelta/timedelta

2009-03-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 10, 2009 at 5:15 PM, Tennessee Leeuwenburg wrote: .. > 2) Allow divmod, the operator '%', to be applied to two timedeltas (e.g. > td1 % td2). I think there is some debate here about whether the return > value be an integer in microsends, or a

[issue1548371] filterwarnings('error') has no effect

2009-03-10 Thread Brett Cannon
Brett Cannon added the comment: At this point the warnings module has been working as it is for so long that this is not going to be able to change without a lot of pain for people. -- resolution: -> wont fix status: open -> closed ___ Python tracke

[issue1538778] pyo's are not overwritten by different optimization levels

2009-03-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue3099] On windows, "import nul" always succeed

2009-03-10 Thread Brett Cannon
Brett Cannon added the comment: Since I don't have access to Windows I am unassigning. Amaury, if this is still a problem should we go ahead and switch to GetFileAttributesEx()? Or just realize this is a problem for people developing Python? -- assignee: brett.cannon -> __

[issue5473] round(float, ndigits<0) sometimes rounds to odd

2009-03-10 Thread Christian Taylor
New submission from Christian Taylor : round(x, n) may unexpectedly round floats upwards to odd multiples of 10**(-n) if n is negative, depending on the system Python 3 is running on. I think this is distinct from issue 1869. Example: >>> round(25.0, -1) 30.0 I used the following function to ch

[issue5472] distutils.test_util fails to restore os.uname

2009-03-10 Thread Tim Golden
New submission from Tim Golden : lib\distutils\tests\test_util.py, run as part of the full testsuite, creates a stub os.uname on an OS which doesn't support it natively. However, it fails to restore it correctly -- ie fails to delete the attribute. As a result, test_platform and test_pep352 fail

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-10 Thread Dan Mahn
Dan Mahn added the comment: I also made some tests for the new code that could be added to the unit tests in test_urllib.py -- message_count: 1.0 -> 2.0 Added file: http://bugs.python.org/file13298/new_urlencode_tests.py ___ Python tracker

[issue5470] MSI installer misses zipdir.zip file in Lib\test

2009-03-10 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> loewis nosy: +loewis nosy_count: 1.0 -> 2.0 priority: -> release blocker ___ Python tracker ___

[issue5467] tools\msi\merge.py is sensitive to lack of config.py

2009-03-10 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> loewis nosy: +loewis nosy_count: 1.0 -> 2.0 priority: -> high ___ Python tracker ___ ___

[issue2706] datetime: define division timedelta/timedelta

2009-03-10 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: Hi all, I'm trying to help out by reviewing issues in the tracker... so this is just a first attempt and I hope it is somewhat useful. This issue covers a number of discrete functional changes. I here review each in turn: 1) Allow truediv, the operato

[issue5471] os.path.expanduser('~') doesnt works correctly when HOME is '/'

2009-03-10 Thread Guilherme Polo
Guilherme Polo added the comment: Patch with a test attached. -- keywords: +patch message_count: 1.0 -> 2.0 nosy: +gpolo nosy_count: 1.0 -> 2.0 versions: +Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file13297/issue_5471.diff ___

[issue5471] os.path.expanduser('~') doesnt works correctly when HOME is '/'

2009-03-10 Thread pancake
New submission from pancake : When the HOME path is just '/' python says that the home path is "" (zero length string) I was able to reproduce this issue in 2.5.2 and 2.6 (no idea about 3.0) Here's an example: $ HOME=/ python -c 'import os;print os.path.expanduser("~")' $ HOME=/tmp python -c

[issue2610] string representation of range and dictionary views

2009-03-10 Thread Brad Miller
Brad Miller added the comment: Just to restart the discussion on the original issue since I see that the latest 3.1 has solved the problem with dict_keys, dict_values, etc al objects. Many thanks! A suggestion was made by Alexander to create a custom displayhook that could be included in th

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

2009-03-10 Thread Guilherme Polo
Guilherme Polo added the comment: Unfortunately this is a tix issue, so we can't fix it from python. See http://sourceforge.net/tracker/index.php?func=detail&aid=1864027&group_id=5649&atid=105649 Leaving this open as a reminder to incldue a newer tix in the next releases. -- message_co

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

2009-03-10 Thread Brad Miller
Brad Miller added the comment: Here's a simple patch that documents the different startup files. It is missing a good use case for .Idle.py but I'd be happy to add that if someone can give me one. -- keywords: +patch message_count: 1.0 -> 2.0 nosy: +bmiller nosy_count: 2.0 -> 3.0 Add

[issue5445] codecs.StreamWriter.writelines problem when passed generator

2009-03-10 Thread Daniel Lescohier
Daniel Lescohier added the comment: OK, I think I see where I went wrong in my perceptions of the file protocol. I thought that readlines() returned an iterator, not a list, but I see in the library reference manual on File Objects that it returns a list. I think I got confused because ther

[issue1019715] distutils ignores configure's --includedir

2009-03-10 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik nosy_count: 3.0 -> 4.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue891930] configure argument --libdir is ignored

2009-03-10 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik nosy_count: 3.0 -> 4.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5470] MSI installer misses zipdir.zip file in Lib\test

2009-03-10 Thread Tim Golden
New submission from Tim Golden : The msi.py determines which files to carry over into the installer for the lib\test directory. zipdir.zip was added recently for test_zipfile and this isn't picked up. The attached patch adds it in. -- components: Installation files: msi-zipdir.patch keyw

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

2009-03-10 Thread Mitchell Model
New submission from Mitchell Model : In the Python Language Reference, in the Naming and binding section of Execution Model, there is a paragraph that states: The following constructs bind names: formal parameters to functions, import statements, class and function definitions (these bind the

[issue2771] test issue

2009-03-10 Thread Daniel Diniz
Daniel Diniz added the comment: Reviewers: , Description: From http://bugs.python.org/issue2771 Testing 1..2..3 Description fetched from: http://bugs.python.org/msg82496 Please review this at http://codereview.appspot.com/22062 Affected files: M static/upload.py -- message_

[issue5445] codecs.StreamWriter.writelines problem when passed generator

2009-03-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-03-10 16:36, Daniel Lescohier wrote: > Daniel Lescohier added the comment: > > Let me give an example of why it's important that writelines > iteratively writes. For: > > rows = (line[:-1].split('\t') for line in in_file) > projected = (keep_fie

[issue5445] codecs.StreamWriter.writelines problem when passed generator

2009-03-10 Thread Daniel Lescohier
Daniel Lescohier added the comment: Let me give an example of why it's important that writelines iteratively writes. For: rows = (line[:-1].split('\t') for line in in_file) projected = (keep_fields(row, 0, 3, 7) for row in rows) filtered = (row for row in projected if row[2]=='1') out_file.wr

[issue5445] codecs.StreamWriter.writelines problem when passed generator

2009-03-10 Thread Daniel Lescohier
Daniel Lescohier added the comment: In Python's file protocol, readlines and writelines is a protocol for iterating over a file. In Python's file protocol, if one doesn't want to iterate over the file, one calls read() with no argument in order to read the whole file in, or one calls write()

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-10 Thread Dan Mahn
New submission from Dan Mahn : urllib.parse.urlencode() uses quote_plus() extensively to create a complete query string, but doesn't effectively/properly take advantage of the flexibility built into quote_plus(). Namely: 1) Instances of type "bytes" are not properly encoded, as str() is used pr

[issue5467] tools\msi\merge.py is sensitive to lack of config.py

2009-03-10 Thread Tim Golden
New submission from Tim Golden : tools\msi\merge.py attempts to import config and fails with an ImportError if it doesn't exist (which it doesn't by default). msi.py catches this exception and ignores it. The attached patch carries the same behaviour over to merge.py -- components: Inst

[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-10 Thread Nigel Galloway
Nigel Galloway added the comment: Not quite an answer to the question. I have built this wrapper with the change to Python indicated. It seems to work. It does not complain about unresolved references. Is this satisfactory for 3.0.1, with perhaps a change to SWIG from 3.1. Or must I obtain Py

[issue4540] typo in a module describes utf-8 as uft-8

2009-03-10 Thread dariusp
dariusp added the comment: This appears to be the same issue as described in 5453 in which I supplied a patch for release30-maint and py3k branches. It's probably useful to address both issue 4540 & 5453 at the same time. I would have added to this issue, but I didn't see it when I raised 5453

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

2009-03-10 Thread Andrew Gregory
New submission from Andrew Gregory : All programs using Tix.Balloon in Python 2.6.1 (Windows XP) crash when a Tix.Balloon object is created. The Balloon.py Tix demo is supplied as an example. Andrew. -- components: Tkinter files: Balloon.py message_count: 1.0 messages: 83430 nosy: and

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-10 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: Thanks, Antione! Then I think for the most part any changes to Regexp will have to wait for 3.2 / 2.7. -- message_count: 71.0 -> 72.0 ___ Python tracker __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Okay, as I said, Atomic Grouping, etc., off a recent 2.6 is already > available and I can do any cleanups requested to those already > mentioned, I just don't want to start any new items at the moment. As > it is, we are still over a year from any of this

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-03-10 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: Okay, as I said, Atomic Grouping, etc., off a recent 2.6 is already available and I can do any cleanups requested to those already mentioned, I just don't want to start any new items at the moment. As it is, we are still over a year from any of this seein

[issue5443] trivial typo in itertools documentation

2009-03-10 Thread Lorenz Quack
Lorenz Quack added the comment: FWIW here is the patch. It is against r70267 of the trunk -- keywords: +patch message_count: 3.0 -> 4.0 Added file: http://bugs.python.org/file13291/itertools.patch ___ Python tracker

[issue5443] trivial typo in itertools documentation

2009-03-10 Thread Lorenz Quack
Lorenz Quack added the comment: Thanks for fixing. But I'm afraid you missed the second typo in this Bug. It's the same thing one line beneath the one you fixed. next time I'll attach a patch. I promise. -- message_count: 2.0 -> 3.0 status: closed -> open _

[issue4510] ValueError for list.remove() not very helpful

2009-03-10 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher nosy_count: 2.0 -> 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4847] csv fails when file is opened in binary mode

2009-03-10 Thread Skip Montanaro
Skip Montanaro added the comment: This issue seems to have simply been overlooked when 3.0 was released. It should be fixed in the next round of 3.0 and 3.1 updates. Any feeback on the idea that the csv.reader constructor (and probably the DictReader and proposed NamedTupleReader constructors)

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: It may also be worth explicitly stating the following in the docs: "Note that automatically numbered and explcitly namged/numbered replacement fields cannot be mixed in a single format string". (This could probably be relegated to a footnote). This proposal is al

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: Terry covered how to document the feature in his original description of the proposal. After the phrase "either the numeric index of a positional argument, or the name of a keyword argument." in the docs, add a sentence along the lines of the following: "If the

[issue4540] typo in a module describes utf-8 as uft-8

2009-03-10 Thread Jervis Whitley
Jervis Whitley added the comment: I can still reproduce on py3 >>> help("modules anything") Traceback (most recent call last): ... This patch works (on Py3.1a1). Amaury, are you still o.k with catching Exception rather than just (SyntaxError, UnicodeDecodeError, ImportError)? The code-ref

[issue5463] Compiler warning get_ulong is never used 3.x

2009-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch! Certainly it's desirable to get rid of this warning, especially as in this case the warning indicates a genuine problem: namely that there's unused code floating around. I think it would not be unreasonable to simply remove the code tha

[issue5445] codecs.StreamWriter.writelines problem when passed generator

2009-03-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: For the common case where list is in fact a sequence of strings, the used implementation is a lot faster and more efficient than the one you propose. Note that the method doesn't pretend to support generators for the list argument, so adding support for ite

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: http://mail.python.org/pipermail/python-ideas/2009-February/002873.html -- message_count: 19.0 -> 20.0 ___ Python tracker ___