[issue5170] logging to file + encoding

2009-04-20 Thread Vinay Sajip
Vinay Sajip added the comment: Can you retry with setting the "encoding" attribute of the file to "cp1251"? That should work and that should be the appropriate method to avoid the problem. test_logging.py in the Python distribution has a test which exercises Unicode functionality using cp1251,

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-20 Thread Husen daudi
Husen daudi added the comment: I have solved this error, My tag has None value for one attribute. But python should check for None value in _write_data function. -- ___ Python tracker __

[issue918368] urllib doesn't correct server returned urls

2009-04-20 Thread Senthil
Senthil added the comment: Fixed this in the revision 71780 for Python 2.7. -- versions: -Python 2.6 ___ Python tracker ___ ___ Pyt

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Fragile solution, but it works. IMO, it's a better design to just have > the file named Python26.chm like it always used to be done. That was also fragile, as this bug report demonstrates. It broke when sphinx decided to put more version information into th

[issue5796] test_posix, test_pty crash under Windows

2009-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you should apply it. You can always change it if it doesn't work. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fragile solution, but it works. IMO, it's a better design to just have the file named Python26.chm like it always used to be done. Now, we've duplicated someones arbitrary logic (ignoring sys.version_info.serial and special casing sys.version_info.release_

[issue3584] Exception for test_urllib2_localnet

2009-04-20 Thread R. David Murray
R. David Murray added the comment: test_urllib2_localnet works for me if something is running on port 8080 on python 2.6. Since python 2.5 is in security-fix-only mode, this bug report is out of date. -- nosy: +r.david.murray priority: -> low resolution: -> out of date stage: -> com

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- assignee: -> kbk nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5796] test_posix, test_pty crash under Windows

2009-04-20 Thread R. David Murray
R. David Murray added the comment: Patch attached. Can you test this for me or should I apply it and wait to see if the buildbot passes? -- keywords: +patch stage: needs patch -> patch review type: crash -> behavior Added file: http://bugs.python.org/file13725/issue5796.patch

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

2009-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Suggested doc change for LibRef / StringServices / string / Format String Syntax 1. In the grammar box, replace the field_name line with " field_name ::= arg_name ("." attribute_name | "[" element_index "]")* arg_name ::= (identifier | integer)? " The c

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2009-04-20 Thread Ilya Sandler
Ilya Sandler added the comment: I think this would be useful for anyone who builds cpython on a non-mainstream platform. I know this would have been useful for me when I tried to build cpython on an older linux distro where libs were installed in a non-std location. -- nosy: +isandler

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think the scripts should just get a "3" appended to them in installation. Unless distutils provides an easy way to do this, a patch should probably just rename the scripts before installing them. -- nosy: +tarek ___

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Guilherme Polo
Guilherme Polo added the comment: Fine, Martin. Patch attached for idle only. -- keywords: +patch Added file: http://bugs.python.org/file13724/issue_5783.diff ___ Python tracker

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Maybe the functions in Doc/tools/sphinxext/patchlevel.py should be moved > to somewhere else then ? IDLE could use them. No. IDLE shouldn't parse the version out of the header file, but instead use sys.version_info to compute the file name, so it's really ju

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Guilherme Polo
Guilherme Polo added the comment: Maybe the functions in Doc/tools/sphinxext/patchlevel.py should be moved to somewhere else then ? IDLE could use them. -- nosy: +gpolo ___ Python tracker __

[issue5692] test_zipfile fails under Windows

2009-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: You should probably just add a check that the path isn't in the root to that condition. -- ___ Python tracker ___ ___

[issue5783] IDLE cannot find windows chm file

2009-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think idle should be updated to look for the correct file name. -- assignee: benjamin.peterson -> ___ Python tracker ___ _

[issue3166] Make conversions from long to float correctly rounded.

2009-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: (Slightly updated version of) patch applied in r71772 (trunk), r71773 (py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-20 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The LZMA implementation from 7-zip has been released as public domain > (since version 4.62 / Nov 2008) in the LZMA SDK: http://www.7-zip.org/ > sdk.html That's good news. Now, if somebody could contribute a Python wrapper for these... > So, there shouldn'

[issue3720] segfault in for loop with evil iterator

2009-04-20 Thread Guido van Rossum
Guido van Rossum added the comment: I'm okay with that hack for 2.6 and 2.5. -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bu

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-20 Thread Dave Baggett
Changes by Dave Baggett : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-20 Thread Dave Baggett
New submission from Dave Baggett : The implementation of encode and decode are slow, and scale nonlinearly in the size of the message to be encoded/decoded. A simple fix is to use an array.array('c') and append to it, rather than using string concatenation. This change makes the code more than

[issue5790] itertools.izip python code has a typo

2009-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. Fixed in r71770 and r71771. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5802] The security descriptors of python binaries in Windows are not strict enough

2009-04-20 Thread Hong Chen
New submission from Hong Chen : The security descriptors of python binaries (like python.exe, pythonw.exe, etc) allow any Authenticated Users to modify these binaries. This may cause a privilege-escalation problem since administrators may use python binaries when performing administrative tasks.

[issue5801] spurious empty lines in wsgiref code

2009-04-20 Thread Tarek Ziadé
New submission from Tarek Ziadé : the wsgiref package is hard to read, there are blocs of empty lines. Can I pep8-fy it ? -- components: Library (Lib) messages: 86200 nosy: pje, tarek severity: normal status: open title: spurious empty lines in wsgiref code versions: Python 2.7, Python

[issue5800] make wsgiref.headers.Headers accept empty constructor

2009-04-20 Thread Tarek Ziadé
New submission from Tarek Ziadé : wsgiref.headers.Headers will let you manage a collection of HTTP response headers, but the constructor forces you to provide a list: >>> from wsgiref.headers import Headers >>> headers = Headers([]) >>> headers.add_header('Content-Type', 'text/plain') A l

[issue5170] logging to file + encoding

2009-04-20 Thread shamilbi
shamilbi added the comment: (python 2.6.2, WinXP) logging to console stopped working. Here is a workaround: logging/__init__.py: class StreamHandler(Handler): ... def emit(self, record): ... if (isinstance(msg, unicode) or getattr(stream,

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-04-20 Thread Koen van de Sande
Koen van de Sande added the comment: The LZMA implementation from 7-zip has been released as public domain (since version 4.62 / Nov 2008) in the LZMA SDK: http://www.7-zip.org/ sdk.html So, there shouldn't be a license issue for Windows. I am not sure if there are already system-provided LZMA

[issue5795] test_distutils failure on the ppc Debian buildbot

2009-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed in r71758, all green under ppc. I am updating the News file now thanks! -- status: open -> closed ___ Python tracker ___ ___

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-04-20 Thread Larry Hastings
New submission from Larry Hastings : This patch changes "ntpath" so all functions handle UNC paths. In a Windows path string, a UNC path functions *exactly* like a drive letter. This patch means that the Python path split/join functions treats them as if they were. For instance: >>> splitd

[issue1944] Documentation for PyUnicode_AsString (et al.) missing.

2009-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5670] Speed up pickling of dicts in cPickle

2009-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, it won't even be integrated in 2.6 actually. It's a new feature, not a bug fix. -- ___ Python tracker ___ ___

[issue5798] test_asynchat fails on Mac OSX

2009-04-20 Thread Ismail Donmez
New submission from Ismail Donmez : Using latest python 2.6 branch; test_asynchat fails with the following error: error: uncaptured python exception, closing channel (:[Errno 9] Bad file descriptor [/Users/cartman/Sources/python-2.6/Lib/asyncore.py|readwrite|107] [/Users/cartman/Sources/python-

[issue1683368] object.__init__ shouldn't allow args/kwds

2009-04-20 Thread Kirit Sælensminde
Changes by Kirit Sælensminde : -- nosy: +KayEss ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1202] zlib.crc32() and adler32() return value

2009-04-20 Thread Gaëtan de Menten
Gaëtan de Menten added the comment: Regarding the issue J. David Ibáñez has, I have a few comments to add: - It's also present on 32bit. - AFAICT: * it's present in both 2.6 branch & trunk (as of 68886), * it's a problem with line 1110 (in 2.6 branch), or line 1122 in trunk, which should re

[issue5795] test_distutils failure on the ppc Debian buildbot

2009-04-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: r71758 fixes it, but I'd like to run the buildbot on the debian ppc slave before I update Misc/NEWS and merge in py3K. I tried to force a build here, but it failed http://www.python.org/dev/buildbot/trunk.stable/ppc%20Debian%20unstable%20trunk I'll ask Matthias

[issue3584] Exception for test_urllib2_localnet

2009-04-20 Thread Dennis Lichtenthäler
Dennis Lichtenthäler added the comment: I get the same behavior on an up-to-date Gentoo machine with Python 2.5.4. It seems, test_urllib2_localnet tries to bind to port 8080. If something else is listening there, I get this error. I changed the test to point to a different port and things seem t